forked from BgLUG/bglug.it
initial commit (#241)
fixes #202 Reviewed-on: BgLUG/bglug.it#241 Co-authored-by: paspo <paolo@asperti.com> Co-committed-by: paspo <paolo@asperti.com>
This commit is contained in:
parent
0c08f7b777
commit
ee19fe05ee
@ -53,6 +53,7 @@ params:
|
||||
taxonomies:
|
||||
tag: tags
|
||||
author: author
|
||||
location: locations
|
||||
|
||||
languages:
|
||||
it:
|
||||
|
3
content/locations/_index.en.md
Normal file
3
content/locations/_index.en.md
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
title: All locations
|
||||
---
|
3
content/locations/_index.it.md
Normal file
3
content/locations/_index.it.md
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
title: Tutte le location
|
||||
---
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -14,6 +14,9 @@
|
||||
{{ if .Site.Params.show_post_dates | default true }}
|
||||
{{- with .Date }}<time>{{ . | time.Format ":date_medium" }}</time>{{ end }}
|
||||
{{ end }}
|
||||
{{- with .Params.location_link -}}
|
||||
<div class="location">{{ T "location" }}: {{ . | markdownify }}</div>
|
||||
{{ end }}
|
||||
{{- with .Params.license -}}
|
||||
<div class="license">{{ T "license" }}: {{ . | markdownify }}</div>
|
||||
{{ end }}
|
||||
|
17
layouts/locations/list.html
Normal file
17
layouts/locations/list.html
Normal file
@ -0,0 +1,17 @@
|
||||
{{ define "main" }}
|
||||
<header>
|
||||
<h2>{{ T "all_events_in" }} {{ .Title }}</h2>
|
||||
{{ with .Description -}}
|
||||
<p>{{ . }}</p>
|
||||
{{- end }}
|
||||
</header>
|
||||
|
||||
{{- if .Params.image }}
|
||||
<span class="image featured"><img src="{{ .Params.image | relURL }}" alt="{{ .Params.image_alt }}" /></span>
|
||||
{{ end }}
|
||||
|
||||
{{ range .RegularPages }}
|
||||
{{ .Render "shortblock" }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
@ -1,2 +1,3 @@
|
||||
{{- partial "sidebar/en_vieni-a-trovarci.html" . -}}
|
||||
{{- partial "sidebar/en_taglist.html" . -}}
|
||||
{{- partial "sidebar/locationlist.html" . -}}
|
||||
|
@ -1,2 +1,3 @@
|
||||
{{- partial "sidebar/it_vieni-a-trovarci.html" . -}}
|
||||
{{- partial "sidebar/it_taglist.html" . -}}
|
||||
{{- partial "sidebar/locationlist.html" . -}}
|
||||
|
11
layouts/partials/sidebar/locationlist.html
Normal file
11
layouts/partials/sidebar/locationlist.html
Normal file
@ -0,0 +1,11 @@
|
||||
<section>
|
||||
{{- $hiddenTags := slice "Linuxday-Featured" -}}
|
||||
<h3>Locations</h3>
|
||||
<ul class="tags-sidebar">
|
||||
{{ range where .Site.Taxonomies.locations ".Page.Section" .Section }}
|
||||
{{ if not (in $hiddenTags .Page.LinkTitle ) }}
|
||||
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</section>
|
Loading…
x
Reference in New Issue
Block a user