diff --git a/assets/sass/custom.scss b/assets/sass/custom.scss index bf1ca66..24dbde0 100644 --- a/assets/sass/custom.scss +++ b/assets/sass/custom.scss @@ -22,3 +22,8 @@ .box.post { margin-bottom: 4em; } + +.tags-sidebar li { + display: inline-block; + font-size: 1rem; +} diff --git a/content/events/_index.it.md b/content/events/_index.it.md index ca678d9..2059342 100644 --- a/content/events/_index.it.md +++ b/content/events/_index.it.md @@ -2,4 +2,5 @@ type: section title: Eventi #description: "TODO: non so come descrivere la sezione eventi" +sidebar_right: sidebar-eventi --- diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..6c1da75 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,50 @@ + + + + {{- partial "head/head.html" . -}} + {{- template "_internal/opengraph.html" . -}} + + +
+ {{- partial "header.html" . }} + {{- $sidebar_count := (add (cond (isset .Params "sidebar_left") 1 0) (cond (isset .Params "sidebar_right") 1 0)) }} + +
+
+ {{ if gt $sidebar_count 0 }}
{{ end }} + + {{- with .Params.sidebar_left }} +
+ +
+ {{- end }} + +
+
+
+ {{- block "main" . }}{{- end }} +
+
+
+ + {{- with .Params.sidebar_right }} +
+ +
+ {{- end }} + + {{ if gt $sidebar_count 0 }}
{{ end }} +
+
+ + {{- partial "footer/footer.html" . -}} +
+ {{- partial "scripts.html" . -}} + + diff --git a/layouts/partials/sidebar/archivio.html b/layouts/partials/sidebar/archivio.html new file mode 100644 index 0000000..0e22a52 --- /dev/null +++ b/layouts/partials/sidebar/archivio.html @@ -0,0 +1,12 @@ +
+

Archivio WIP

+ +
diff --git a/layouts/partials/sidebar/sidebar-eventi.html b/layouts/partials/sidebar/sidebar-eventi.html new file mode 100644 index 0000000..a62f162 --- /dev/null +++ b/layouts/partials/sidebar/sidebar-eventi.html @@ -0,0 +1,2 @@ +{{- partial "sidebar/vieni_a_trovarci.html" . -}} +{{- partial "sidebar/taglist.html" . -}} diff --git a/layouts/partials/sidebar/simili.html b/layouts/partials/sidebar/simili.html new file mode 100644 index 0000000..dd6883e --- /dev/null +++ b/layouts/partials/sidebar/simili.html @@ -0,0 +1,26 @@ +
+

Guarda anche WIP

+ + {{ $related := .Site.RegularPages.Related . | first 5 }} + {{ with $related }} + + + {{ end }} + +
diff --git a/layouts/partials/sidebar/taglist.html b/layouts/partials/sidebar/taglist.html new file mode 100644 index 0000000..fdbd5ae --- /dev/null +++ b/layouts/partials/sidebar/taglist.html @@ -0,0 +1,8 @@ +
+

Tags

+ +
diff --git a/layouts/partials/sidebar/vieni_a_trovarci.html b/layouts/partials/sidebar/vieni_a_trovarci.html new file mode 100644 index 0000000..cafbf50 --- /dev/null +++ b/layouts/partials/sidebar/vieni_a_trovarci.html @@ -0,0 +1,12 @@ +
+

Vieni a trovarci

+ + +