From 180fc8d16ef2a4c203b14c58f2b6bb89af0124a1 Mon Sep 17 00:00:00 2001 From: paspo Date: Thu, 19 Sep 2024 20:48:21 +0200 Subject: [PATCH] initial commit --- config.yml | 1 + content/locations/_index.en.md | 3 +++ content/locations/_index.it.md | 3 +++ i18n/en.yaml | 2 ++ i18n/it.yaml | 2 ++ layouts/_default/single.html | 3 +++ layouts/locations/list.html | 17 +++++++++++++++++ layouts/partials/sidebar/en_sidebar-eventi.html | 1 + layouts/partials/sidebar/it_sidebar-eventi.html | 1 + layouts/partials/sidebar/locationlist.html | 11 +++++++++++ 10 files changed, 44 insertions(+) create mode 100644 content/locations/_index.en.md create mode 100644 content/locations/_index.it.md create mode 100644 layouts/locations/list.html create mode 100644 layouts/partials/sidebar/locationlist.html diff --git a/config.yml b/config.yml index 7815447..85e2afd 100644 --- a/config.yml +++ b/config.yml @@ -53,6 +53,7 @@ params: taxonomies: tag: tags author: author + location: locations languages: it: diff --git a/content/locations/_index.en.md b/content/locations/_index.en.md new file mode 100644 index 0000000..f64b182 --- /dev/null +++ b/content/locations/_index.en.md @@ -0,0 +1,3 @@ +--- +title: All locations +--- diff --git a/content/locations/_index.it.md b/content/locations/_index.it.md new file mode 100644 index 0000000..b21ee44 --- /dev/null +++ b/content/locations/_index.it.md @@ -0,0 +1,3 @@ +--- +title: Tutte le location +--- diff --git a/i18n/en.yaml b/i18n/en.yaml index ec2e9e8..bb1b425 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -2,3 +2,5 @@ license: License footer_license_note: Except where otherwise noted, content on this site is published under [CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/) license. all_posts_by: "All {{ . }}'s posts" +location: Location +all_events_in: All events in diff --git a/i18n/it.yaml b/i18n/it.yaml index bff28de..016b773 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -2,3 +2,5 @@ license: Licenza footer_license_note: Eccetto dove diversamente indicato, ogni contenuto di questo sito รจ pubblicato con licenza [CC-BY-SA](https://creativecommons.org/licenses/by-sa/4.0/). all_posts_by: "Tutti i post di {{ . }}" +location: Dove +all_events_in: Tutti gli eventi in diff --git a/layouts/_default/single.html b/layouts/_default/single.html index d5a52cc..6311a32 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -14,6 +14,9 @@ {{ if .Site.Params.show_post_dates | default true }} {{- with .Date }}{{ end }} {{ end }} + {{- with .Params.location_link -}} +
{{ T "location" }}: {{ . | markdownify }}
+ {{ end }} {{- with .Params.license -}}
{{ T "license" }}: {{ . | markdownify }}
{{ end }} diff --git a/layouts/locations/list.html b/layouts/locations/list.html new file mode 100644 index 0000000..078550e --- /dev/null +++ b/layouts/locations/list.html @@ -0,0 +1,17 @@ +{{ define "main" }} +
+

{{ T "all_events_in" }} {{ .Title }}

+ {{ with .Description -}} +

{{ . }}

+ {{- end }} +
+ + {{- if .Params.image }} + {{ .Params.image_alt }} + {{ end }} + + {{ range .RegularPages }} + {{ .Render "shortblock" }} + {{ end }} + +{{ end }} diff --git a/layouts/partials/sidebar/en_sidebar-eventi.html b/layouts/partials/sidebar/en_sidebar-eventi.html index 671f443..f89eaf2 100644 --- a/layouts/partials/sidebar/en_sidebar-eventi.html +++ b/layouts/partials/sidebar/en_sidebar-eventi.html @@ -1,2 +1,3 @@ {{- partial "sidebar/en_vieni-a-trovarci.html" . -}} {{- partial "sidebar/en_taglist.html" . -}} +{{- partial "sidebar/locationlist.html" . -}} diff --git a/layouts/partials/sidebar/it_sidebar-eventi.html b/layouts/partials/sidebar/it_sidebar-eventi.html index 0777034..b9f18da 100644 --- a/layouts/partials/sidebar/it_sidebar-eventi.html +++ b/layouts/partials/sidebar/it_sidebar-eventi.html @@ -1,2 +1,3 @@ {{- partial "sidebar/it_vieni-a-trovarci.html" . -}} {{- partial "sidebar/it_taglist.html" . -}} +{{- partial "sidebar/locationlist.html" . -}} diff --git a/layouts/partials/sidebar/locationlist.html b/layouts/partials/sidebar/locationlist.html new file mode 100644 index 0000000..51918f7 --- /dev/null +++ b/layouts/partials/sidebar/locationlist.html @@ -0,0 +1,11 @@ +
+ {{- $hiddenTags := slice "Linuxday-Featured" -}} +

Locations

+ +