diff --git a/assets/css/_styles.scss b/assets/css/_styles.scss index 46a2e0a2..85fd7d41 100644 --- a/assets/css/_styles.scss +++ b/assets/css/_styles.scss @@ -266,7 +266,7 @@ section.gallery { border-radius: 1rem; } - & > img, & figure > img { + & > img, & figure > img, & noscript > img, & noscript > figure > img { transition-duration: 150ms; transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); diff --git a/assets/css/no_script.css b/assets/css/no_script.css new file mode 100644 index 00000000..1ea70eb3 --- /dev/null +++ b/assets/css/no_script.css @@ -0,0 +1,10 @@ + +img.lazyload { + display: none; +} + +#gallery { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); + gap: 20px; +} \ No newline at end of file diff --git a/layouts/partials/album-card.html b/layouts/partials/album-card.html index e804fef8..763d091d 100644 --- a/layouts/partials/album-card.html +++ b/layouts/partials/album-card.html @@ -2,6 +2,9 @@ {{ with $gallery }}
+ {{ .page.Title }}
diff --git a/layouts/partials/gallery.html b/layouts/partials/gallery.html index 72607f17..48fbafcb 100644 --- a/layouts/partials/gallery.html +++ b/layouts/partials/gallery.html @@ -1,5 +1,5 @@ diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 68163731..44de5004 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -21,6 +21,9 @@ {{ partial "opengraph.html" . }} {{ $css := resources.Get "/css/main.scss" | toCSS | minify | fingerprint }} + {{ $css_noscript:= resources.Get "/css/no_script.css" | toCSS | minify | fingerprint }} + + {{ $params := dict "closeTitle" (i18n "closeTitle") "zoomTitle" (i18n "zoomTitle") diff --git a/layouts/partials/menu.html b/layouts/partials/menu.html index d54bc630..33e0d227 100644 --- a/layouts/partials/menu.html +++ b/layouts/partials/menu.html @@ -1,5 +1,5 @@ {{ with site.Menus.main }} -