feat: basic website with basic content

This commit is contained in:
Matthieu Bessat 2023-10-28 10:20:52 +02:00
parent 3379242f31
commit ba403c815f
76 changed files with 2167 additions and 4 deletions

View file

@ -0,0 +1,34 @@
{{ define "main" }}
<div class="team-presentation">
<div class="team-item">
</div>
</div>
<main class="page-container">
{{ $listtitle := .Title }}
{{ with .Title }}<h1>{{ . }}</h1>{{ end }}
<ul class="section-menu">
{{ range .Pages }}
<li>
<div class="post-title">
{{ if eq $listtitle "Posts" }}
{{ .Date.Format "2006-01-02" }} <a href="{{ .RelPermalink }}">{{.Title }}</a>
{{ else }}
<a href="{{ .RelPermalink }}">{{.Title }}</a>
{{ end }}
</div>
</li>
{{ end }}
</ul>
{{ if .Content }}
<div>
{{ with .Content }}<div>{{ . }}</div>{{ end }}
</div>
{{ end }}
</main>
{{ end }}