This commit is contained in:
fzorb 2025-03-06 12:45:26 +02:00
parent f25c5cb60c
commit 3475c31d71
38 changed files with 158 additions and 359 deletions

View file

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="{{ site.Language.LanguageCode }}" dir="{{ or site.Language.LanguageDirection `ltr` }}">
<head>
{{ partial "head.html" . }}
</head>
<body>
<div class="content">
<header>
{{ partial "header.html" . }}
</header>
<hr>
{{ block "main" . }}{{ end }}
<footer>
{{ partial "footer.html" . }}
</footer>
</div>
</body>
</html>

View file

@ -0,0 +1,17 @@
{{ define "main" }}
<div class="row">
<main class="one">
{{ .Content }}
</main>
<main class="two">
<ul>
{{ range ( where .Site.RegularPages "Type" "posts" | first 4 ) }}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{ end }}
<li><a href="/posts">... and more</a>
</ul>
</main>
</div>
{{ end }}

View file

@ -0,0 +1,9 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
<ul>
{{ range .Pages }}
<li><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
{{ end }}
</ul>
{{ end }}

View file

@ -0,0 +1,10 @@
{{ define "main" }}
<a href="/"><- return to index</a>
<h1>{{ .Title }}</h1>
{{ if .Date }}
<time datetime="{{ .Date }}">{{ .Date.Format "January 2, 2006" }}</time>
{{ end }}
{{ .Content }}
{{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
{{ end }}