sidebar su elenco eventi e linuxday #103

Merged
paspo merged 2 commits from paspo/bglug.it:sidebar-eventi into main 2024-07-14 22:19:25 +00:00
19 changed files with 175 additions and 2 deletions

View File

@ -22,3 +22,8 @@
.box.post {
margin-bottom: 4em;
}
.tags-sidebar li {
display: inline-block;
font-size: 1rem;
}

View File

@ -77,7 +77,7 @@ languages:
weight: 20
- identifier: linuxday
name: Linux Day
pageRef: /linuxday
pageRef: linuxday
weight: 30
- identifier: about
name: L'associazione
@ -138,7 +138,7 @@ languages:
weight: 20
- identifier: linuxday
name: Linux Day
pageRef: /linuxday
pageRef: linuxday
weight: 30
- identifier: about
name: The association

View File

@ -2,4 +2,5 @@
type: section
title: Events
#description: "TODO: please fill this with a description"
sidebar_right: en_sidebar-eventi
---

View File

@ -2,4 +2,5 @@
type: section
title: Eventi
#description: "TODO: non so come descrivere la sezione eventi"
sidebar_right: it_sidebar-eventi
---

View File

@ -2,4 +2,5 @@
type: section
title: "Linux Day"
#description: "TODO: please fill this with a description"
sidebar_right: en_sidebar-linuxday
---

View File

@ -2,4 +2,5 @@
type: section
title: "Linux Day"
#description: "TODO: non so come descrivere la sezione linuxday"
sidebar_right: it_sidebar-linuxday
---

View File

@ -0,0 +1,50 @@
<!DOCTYPE HTML>
<html lang="{{ .Language }}">
<head>
{{- partial "head/head.html" . -}}
{{- template "_internal/opengraph.html" . -}}
</head>
<body class="is-preload">
<div id="page-wrapper">
{{- partial "header.html" . }}
{{- $sidebar_count := (add (cond (isset .Params "sidebar_left") 1 0) (cond (isset .Params "sidebar_right") 1 0)) }}
<section class="wrapper style1">
<div class="container">
{{ if gt $sidebar_count 0 }}<div class="row gtr-200">{{ end }}
{{- with .Params.sidebar_left }}
<div class="col-{{ cond (eq $sidebar_count 1) 4 3 }} col-12-narrower">
<div id="sidebar">
{{- partial (printf "sidebar/%s.html" .) $ }}
</div>
</div>
{{- end }}
<div class="{{ if gt $sidebar_count 0 -}}
col-{{ cond (eq $sidebar_count 1) 8 6 }} col-12-narrower imp-narrower
{{- end }}">
<div id="content">
<article>
{{- block "main" . }}{{- end }}
</article>
</div>
</div>
{{- with .Params.sidebar_right }}
<div class="col-{{ cond (eq $sidebar_count 1) 4 3 }} col-12-narrower">
<div id="sidebar">
{{- partial (printf "sidebar/%s.html" .) $ }}
</div>
</div>
{{- end }}
{{ if gt $sidebar_count 0 }}</div>{{ end }}
</div>
</section>
{{- partial "footer/footer.html" . -}}
</div>
{{- partial "scripts.html" . -}}
</body>
</html>

View File

@ -0,0 +1,12 @@
<section>
<h3>Archivio WIP</h3>
<ul>
{{ range where .Site.Pages "Section" .Section }}
{{ range .Pages.GroupByDate "2006" "desc" }}
<li>
{{ .Key }}
</li>
{{ end }}
{{ end }}
</ul>
</section>

View File

@ -0,0 +1,13 @@
{{- $linuxday_pages := (where .Site.Pages "Section" .Section) }}
{{- $featured_pages := where $linuxday_pages ".Params.tags" "intersect" (slice "linuxday-featured") }}
{{- if gt (len $featured_pages) 0 }}
<section>
<h3>Featured</h3>
<ul class="links">
{{ range $featured_pages }}
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
{{ end }}
</ul>
</section>
{{ end }}

View File

@ -0,0 +1,2 @@
{{- partial "sidebar/en_vieni-a-trovarci.html" . -}}
{{- partial "sidebar/en_taglist.html" . -}}

View File

@ -0,0 +1,3 @@
{{- partial "sidebar/en_linuxday-featured.html" . -}}
{{- partial "sidebar/en_taglist.html" . -}}
{{- partial "sidebar/en_vieni-a-trovarci.html" . -}}

View File

@ -0,0 +1,8 @@
<section>
<h3>Tags</h3>
<ul class="tags-sidebar">
{{ range where .Site.Taxonomies.tags ".Page.Section" .Section }}
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
{{ end }}
</ul>
</section>

View File

@ -0,0 +1,12 @@
<section>
<h3>Come and see us</h3>
<ul class="links">
<li><a href="/it/dove-siamo">Where</a></li>
<li><a href="https://www.fablabbergamo.it/">Fablab Bergamo</a></li>
<li><a href="https://chat.libreschool.org/">Mattermost</a></li>
<li><a href="https://lists.linux.it/listinfo/bglug">Mailing list</a></li>
</ul>
<footer>
<a href="#" class="button">Subscribe to our newsletter</a>
</footer>
</section>

View File

@ -0,0 +1,13 @@
{{- $linuxday_pages := (where .Site.Pages "Section" .Section) }}
{{- $featured_pages := where $linuxday_pages ".Params.tags" "intersect" (slice "linuxday-featured") }}
{{- if gt (len $featured_pages) 0 }}
<section>
<h3>In evidenza</h3>
<ul class="links">
{{ range $featured_pages }}
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
{{ end }}
</ul>
</section>
{{ end }}

View File

@ -0,0 +1,2 @@
{{- partial "sidebar/it_vieni-a-trovarci.html" . -}}
{{- partial "sidebar/it_taglist.html" . -}}

View File

@ -0,0 +1,3 @@
{{- partial "sidebar/it_linuxday-featured.html" . -}}
{{- partial "sidebar/it_taglist.html" . -}}
{{- partial "sidebar/it_vieni-a-trovarci.html" . -}}

View File

@ -0,0 +1,8 @@
<section>
<h3>Tags</h3>
<ul class="tags-sidebar">
{{ range where .Site.Taxonomies.tags ".Page.Section" .Section }}
<li><a href="/{{ .Page.Lang }}{{ .Page.Path }}">{{ .Page.LinkTitle | safeHTML}}</a></li>
{{ end }}
</ul>
</section>

View File

@ -0,0 +1,12 @@
<section>
<h3>Vieni a trovarci</h3>
<ul class="links">
<li><a href="/it/dove-siamo">Dove siamo</a></li>
<li><a href="https://www.fablabbergamo.it/">Fablab Bergamo</a></li>
<li><a href="https://chat.libreschool.org/">Mattermost</a></li>
<li><a href="https://lists.linux.it/listinfo/bglug">Mailing list</a></li>
</ul>
<footer>
<a href="#" class="button">Iscriviti alla newsletter</a>
</footer>
</section>

View File

@ -0,0 +1,26 @@
<section>
<h3>Guarda anche WIP</h3>
{{ $related := .Site.RegularPages.Related . | first 5 }}
{{ with $related }}
<ul>
{{ range $i, $p := . }}
<li>
<a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ with .HeadingsFiltered }}
<ul>
{{ range . }}
{{ $link := printf "%s#%s" $p.RelPermalink .ID | safeURL }}
<li>
<a href="{{ $link }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
{{ end }}
</li>
{{ end }}
</ul>
{{ end }}
</section>