commit 36536e27c523b46bac8524f490248d0356c9902f
parent d28bb60e8a6265b521a6cbba1804a9f9dddeee66
author: nathanael <nathanael@dalliard.ch>
date: Sat, 22 Nov 2025 16:12:32 +0000
less layouts
diffstat:
11 files changed, 6 insertions(+), 33 deletions(-)
diff --git a/content/uses.md b/content/uses/_index.md
diff --git a/content/not/_index.md b/content/uses/not/_index.md
diff --git a/content/not/infomaniak.md b/content/uses/not/infomaniak.md
diff --git a/content/not/tuta.md b/content/uses/not/tuta.md
diff --git a/layouts/section.html b/layouts/log/section.html
diff --git a/layouts/not/page.html b/layouts/not/page.html
@@ -1,7 +0,0 @@
-{{ define "main" }}
-<h1>{{ .Title }}</h1>
-{{ .Content }}
-<small>
-<a href="/x/">↩</a>
-</small>
-{{ end }}
diff --git a/layouts/not/section.html b/layouts/not/section.html
@@ -1,7 +0,0 @@
-{{ define "main" }}
-<h1>{{ .Title }}</h1>
-{{ .Content }}
-<small>
-<p><a href="/u/">↩</a></p>
-</small>
-{{ end }}
diff --git a/layouts/page.html b/layouts/page.html
@@ -9,6 +9,8 @@
</time>
</p>
{{ end }}
-<a href=/>↩</a>
+{{ with .Parent }}
+<a href="{{ .RelPermalink }}">↩</a>
+{{ end }}
</small>
{{ end }}
diff --git a/layouts/section.html b/layouts/section.html
@@ -1,10 +1,9 @@
{{ define "main" }}
<h1>{{ .Title }}</h1>
{{ .Content }}
-{{ range .Pages }}
-<h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
-{{ end }}
<small>
-<p><a href="/">↩</a></p>
+{{ with .Parent }}
+<a href="{{ .RelPermalink }}">↩</a>
+{{ end }}
</small>
{{ end }}
diff --git a/layouts/why/page.html b/layouts/why/page.html
@@ -1,7 +0,0 @@
-{{ define "main" }}
-<h1>{{ .Title }}</h1>
-{{ .Content }}
-<small>
-<a href="/w/">↩</a>
-</small>
-{{ end }}
diff --git a/layouts/why/section.html b/layouts/why/section.html
@@ -1,7 +0,0 @@
-{{ define "main" }}
-<h1>{{ .Title }}</h1>
-{{ .Content }}
-<small>
-<p><a href="/">↩</a></p>
-</small>
-{{ end }}