WIP on main
This commit is contained in:
parent
5e638170d7
commit
0fa43d0c45
@ -22,3 +22,8 @@
|
||||
.box.post {
|
||||
margin-bottom: 4em;
|
||||
}
|
||||
|
||||
.tags-sidebar li {
|
||||
display: inline-block;
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
@ -2,4 +2,5 @@
|
||||
type: section
|
||||
title: Eventi
|
||||
#description: "TODO: non so come descrivere la sezione eventi"
|
||||
sidebar_right: sidebar-eventi
|
||||
---
|
||||
|
50
layouts/_default/baseof.html
Normal file
50
layouts/_default/baseof.html
Normal 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>
|
12
layouts/partials/sidebar/archivio.html
Normal file
12
layouts/partials/sidebar/archivio.html
Normal 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>
|
2
layouts/partials/sidebar/sidebar-eventi.html
Normal file
2
layouts/partials/sidebar/sidebar-eventi.html
Normal file
@ -0,0 +1,2 @@
|
||||
{{- partial "sidebar/vieni_a_trovarci.html" . -}}
|
||||
{{- partial "sidebar/taglist.html" . -}}
|
26
layouts/partials/sidebar/simili.html
Normal file
26
layouts/partials/sidebar/simili.html
Normal 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>
|
8
layouts/partials/sidebar/taglist.html
Normal file
8
layouts/partials/sidebar/taglist.html
Normal 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>
|
12
layouts/partials/sidebar/vieni_a_trovarci.html
Normal file
12
layouts/partials/sidebar/vieni_a_trovarci.html
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user