diff --git a/assets/more-icon.png b/assets/more-icon.png new file mode 100644 index 0000000..eb20355 Binary files /dev/null and b/assets/more-icon.png differ diff --git a/assets/style-refractored.scss b/assets/style-refractored.scss index 2786005..34c4592 100644 --- a/assets/style-refractored.scss +++ b/assets/style-refractored.scss @@ -360,6 +360,29 @@ $gray: #919EB1; padding-bottom: 50%; position: relative; height: 0px; + + &.img-black-filter::after { + content: ""; + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + + background-color: rgb(0, 0, 0); + opacity: 0.8; + } + + .more-icon { + position: absolute; + top: 0; + left: 0; + height: 100%; + width: 100%; + + background-size: 100% 100%; + z-index: 1; + } } img{ diff --git a/layouts/partials/pic_set.html b/layouts/partials/pic_set.html index 45f5215..a825969 100644 --- a/layouts/partials/pic_set.html +++ b/layouts/partials/pic_set.html @@ -11,18 +11,30 @@
{{ range $num, $a := $pic_set }} - {{ if resources.Get $a }} - {{ $a = (resources.Get $a).Permalink }} - {{ end }} -
-
-
- - pictures - + {{ if resources.Get $a }} + {{ $a = (resources.Get $a).Permalink }} + {{ end }} + + {{ $display := "block"}} + {{ if gt $num 8 }} {{ $display = "none"}} {{ end }} +
+
+ {{ if and (eq $num 8) (gt (len $pic_set) 9) }} + + {{ else }} +
+ + pictures + +
+ {{ end }}
-
{{ end }}
\ No newline at end of file