WIP on main

This commit is contained in:
Paolo Asperti 2024-07-14 10:56:22 +02:00
parent 5e638170d7
commit 0fa43d0c45
Signed by: paspo
GPG Key ID: 06D46905D19D5182
8 changed files with 116 additions and 0 deletions

View File

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

View File

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

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,2 @@
{{- partial "sidebar/vieni_a_trovarci.html" . -}}
{{- partial "sidebar/taglist.html" . -}}

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>

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>