From ddb95c4a87bfb58c8aaf333207ed98b136c40c8b Mon Sep 17 00:00:00 2001 From: paspo Date: Thu, 10 Oct 2024 13:53:10 +0200 Subject: [PATCH 1/4] style css integrity --- layouts/partials/head/head.html | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/layouts/partials/head/head.html b/layouts/partials/head/head.html index bfaa21c..8e0917f 100644 --- a/layouts/partials/head/head.html +++ b/layouts/partials/head/head.html @@ -3,7 +3,12 @@ {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ .Title }} | {{ .Site.Title }}{{ end }} - -{{- partial "analytics/google-tag-manager/head.html" . -}} +{{ if hugo.IsDevelopment }} + +{{ else }} + {{ with $style | minify | fingerprint }} + + {{ end }} +{{ end }} {{- partial "head/custom.html" . -}} {{- template "_internal/twitter_cards.html" . -}} -- 2.47.2 From d93493acbb1c5444d745255d21c18d36143601ca Mon Sep 17 00:00:00 2001 From: paspo Date: Sun, 27 Oct 2024 22:25:04 +0100 Subject: [PATCH 2/4] wip integrity --- config.yml | 10 +++++++--- data/globalheader.yml | 2 +- layouts/partials/custom_head.html | 2 +- static/{ => images}/logo.svg | 0 static/{ => images}/logo_tondo.svg | 0 5 files changed, 9 insertions(+), 5 deletions(-) rename static/{ => images}/logo.svg (100%) rename static/{ => images}/logo_tondo.svg (100%) diff --git a/config.yml b/config.yml index 26d1d9d..2438593 100644 --- a/config.yml +++ b/config.yml @@ -3,7 +3,7 @@ baseURL: https://bglug.it languageCode: it-IT title: BgLUG subtitle: Bergamo Linux Users Group -logo: logo_tondo.svg +logo: images/logo_tondo.svg author: BgLUG theme: hugo-arcana copyright: 2024 © Bergamo Linux Users Group @@ -259,8 +259,12 @@ imaging: module: mounts: - source: static/.well-known - target: static/.well-known + - source: static/.well-known + target: static/.well-known + - source: static/images + target: static/images + - source: static/favicon + target: static/favicon pagination: pagerSize: 20 diff --git a/data/globalheader.yml b/data/globalheader.yml index 0dbbb7b..8fca984 100644 --- a/data/globalheader.yml +++ b/data/globalheader.yml @@ -1,5 +1,5 @@ --- title: "BgLUG --- Bergamo Linux Users Group" -image: logo.svg +image: images/logo.svg image_alt: Logo BgLUG image_width: 300 diff --git a/layouts/partials/custom_head.html b/layouts/partials/custom_head.html index 89f478d..33fe814 100644 --- a/layouts/partials/custom_head.html +++ b/layouts/partials/custom_head.html @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/static/logo.svg b/static/images/logo.svg similarity index 100% rename from static/logo.svg rename to static/images/logo.svg diff --git a/static/logo_tondo.svg b/static/images/logo_tondo.svg similarity index 100% rename from static/logo_tondo.svg rename to static/images/logo_tondo.svg -- 2.47.2 From 687702ce163b2d1d20e0ace38f71ebe9fbb5fdb7 Mon Sep 17 00:00:00 2001 From: paspo Date: Sun, 27 Oct 2024 22:33:44 +0100 Subject: [PATCH 3/4] fix taglist --- assets/js/taglist.js | 5 +++++ layouts/partials/sidebar/taglist.html | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 assets/js/taglist.js diff --git a/assets/js/taglist.js b/assets/js/taglist.js new file mode 100644 index 0000000..4bcce0d --- /dev/null +++ b/assets/js/taglist.js @@ -0,0 +1,5 @@ +function show_all_tags(e) { + $(".tags-sidebar li").css("display","inline-block"); + $(e).css("display","none"); + return false; + } diff --git a/layouts/partials/sidebar/taglist.html b/layouts/partials/sidebar/taglist.html index 9655d38..b8112ae 100644 --- a/layouts/partials/sidebar/taglist.html +++ b/layouts/partials/sidebar/taglist.html @@ -1,12 +1,12 @@
- + {{ $js := resources.Get "js/taglist.js" }} + {{ with $js | minify | fingerprint }} + + {{ end }}

Tags

    -- 2.47.2 From bbf091b43cc544264f47afbfbfef7be499751de6 Mon Sep 17 00:00:00 2001 From: paspo Date: Sun, 27 Oct 2024 22:36:17 +0100 Subject: [PATCH 4/4] fix homepage banner --- data/en/homepage.yml | 2 +- data/it/homepage.yml | 2 +- static/{ => images}/homepage_banner.webp | Bin 3 files changed, 2 insertions(+), 2 deletions(-) rename static/{ => images}/homepage_banner.webp (100%) diff --git a/data/en/homepage.yml b/data/en/homepage.yml index 6d091c6..05c857e 100644 --- a/data/en/homepage.yml +++ b/data/en/homepage.yml @@ -1,7 +1,7 @@ --- banner: enable: true - image: homepage_banner.webp + image: images/homepage_banner.webp contents: "What is Bergamo Linux Users Group?" button: contents: "Learn more..." diff --git a/data/it/homepage.yml b/data/it/homepage.yml index ed86fe2..718ef20 100644 --- a/data/it/homepage.yml +++ b/data/it/homepage.yml @@ -1,7 +1,7 @@ --- banner: enable: true - image: homepage_banner.webp + image: images/homepage_banner.webp contents: "Cos'è il Bergamo Linux Users Group?" button: contents: "Scopri di più..." diff --git a/static/homepage_banner.webp b/static/images/homepage_banner.webp similarity index 100% rename from static/homepage_banner.webp rename to static/images/homepage_banner.webp -- 2.47.2