diff --git a/config.yml b/config.yml index dca67be..c724e33 100644 --- a/config.yml +++ b/config.yml @@ -10,7 +10,7 @@ copyright: 2024 © Bergamo Linux Users Group paginate: 20 timeout: 1800s enableRobotsTXT: true -params: +params: description: Bergamo Linux Users Group social: - title: Mattermost @@ -52,6 +52,7 @@ params: taxonomies: tag: tags + author: author languages: it: diff --git a/content/author/_index.en.md b/content/author/_index.en.md new file mode 100644 index 0000000..0206e9a --- /dev/null +++ b/content/author/_index.en.md @@ -0,0 +1,3 @@ +--- +title: BgLUG's authors +--- diff --git a/content/author/_index.it.md b/content/author/_index.it.md new file mode 100644 index 0000000..f761fab --- /dev/null +++ b/content/author/_index.it.md @@ -0,0 +1,3 @@ +--- +title: Gli autori del BgLUG +--- diff --git a/i18n/en.yaml b/i18n/en.yaml index c7304b9..ec2e9e8 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -1,3 +1,4 @@ --- 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" diff --git a/i18n/it.yaml b/i18n/it.yaml index a4734e2..bff28de 100644 --- a/i18n/it.yaml +++ b/i18n/it.yaml @@ -1,3 +1,4 @@ --- 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 {{ . }}" diff --git a/layouts/_default/author.html b/layouts/_default/author.html new file mode 100644 index 0000000..f4f52f3 --- /dev/null +++ b/layouts/_default/author.html @@ -0,0 +1,17 @@ +{{ define "main" }} +
+

{{ i18n "all_posts_by" .Title }}

+ {{ with .Description -}} +

{{ . | markdownify }}

+ {{- end }} +
+ + {{- if .Params.image }} + {{ .Params.image_alt }} + {{ end }} + + {{ range .RegularPages }} + {{ .Render "shortblock" }} + {{ end }} + +{{ end }} diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html new file mode 100644 index 0000000..6c04d22 --- /dev/null +++ b/layouts/_default/taxonomy.html @@ -0,0 +1,17 @@ +{{ define "main" }} +
+

{{ .Title }}

+ {{ with .Description -}} +

{{ . | markdownify }}

+ {{- end }} +
+ + {{- if .Params.image }} + {{ .Params.image_alt }} + {{ end }} + + {{ range .Pages }} + {{ .Render "taxonomyshortblock" }} + {{ end }} + +{{ end }} diff --git a/layouts/_default/taxonomyshortblock.html b/layouts/_default/taxonomyshortblock.html index 9b511a4..73ae12a 100644 --- a/layouts/_default/taxonomyshortblock.html +++ b/layouts/_default/taxonomyshortblock.html @@ -44,9 +44,9 @@ {{ end }}

{{ with .Description }} - {{- . | truncate 400 }} + {{- . | markdownify | truncate 400 }} {{- else }} - {{- .Summary | truncate 400 }} + {{- .Summary | markdownify | truncate 400 }} {{- end }}

{{ partial "tags.html" . }}