From 0b781b7451af4d017ff1022b38c2e39411cf3eb6 Mon Sep 17 00:00:00 2001 From: paspo Date: Sun, 29 Sep 2024 11:07:53 +0200 Subject: [PATCH] homepage highlight icons cliccabili --- assets/sass/custom.scss | 4 ++++ data/en/homepage.yml | 2 ++ data/it/homepage.yml | 2 ++ .../partials/homepage/blocks/highlights.html | 22 +++++++++++++++++++ 4 files changed, 30 insertions(+) create mode 100644 layouts/partials/homepage/blocks/highlights.html diff --git a/assets/sass/custom.scss b/assets/sass/custom.scss index 147aba1..c5164f6 100644 --- a/assets/sass/custom.scss +++ b/assets/sass/custom.scss @@ -205,3 +205,7 @@ article header div.author { background-repeat: no-repeat; background-image: url("images/mattermost_logo.svg"); } + +.icon.major { + cursor: pointer; +} diff --git a/data/en/homepage.yml b/data/en/homepage.yml index decd120..806b372 100644 --- a/data/en/homepage.yml +++ b/data/en/homepage.yml @@ -26,11 +26,13 @@ items: items: - title: Events icon: fa-calendar-day + url: /en/events/ content: > Come to our events! You would learn all that there is to know about free software and *open source* - title: Schools icon: fa-graduation-cap + url: /it/tags/scuola/ content: > Follow our volunteers on their activities by schools in the province of Bergamo. diff --git a/data/it/homepage.yml b/data/it/homepage.yml index 0aff8f3..4e12717 100644 --- a/data/it/homepage.yml +++ b/data/it/homepage.yml @@ -26,11 +26,13 @@ items: items: - title: Eventi icon: fa-calendar-day + url: /it/eventi/ content: > Accorri agli eventi che organizziamo! Avrai modo di imparare tutto quello che c'è da sapere sul software libero o *open source* - title: Scuole icon: fa-graduation-cap + url: /it/tags/scuola/ content: > Segui i nostri volontari nelle loro attività presso le scuole della provincia di Bergamo diff --git a/layouts/partials/homepage/blocks/highlights.html b/layouts/partials/homepage/blocks/highlights.html new file mode 100644 index 0000000..a81f0f4 --- /dev/null +++ b/layouts/partials/homepage/blocks/highlights.html @@ -0,0 +1,22 @@ +
+
+
+ {{- $item_cols := (div 12 (.item.items_per_row | default 3)) }} + {{- range .item.items }} +
+
+ {{- if .url -}} + + {{- end -}} + +

{{ .title }}

+ {{- if .url -}} +
+ {{- end -}} +

{{ .content | markdownify }}

+
+
+ {{- end }} +
+
+
-- 2.47.2