summaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/section.gmi22
-rw-r--r--layouts/section.html18
2 files changed, 40 insertions, 0 deletions
diff --git a/layouts/section.gmi b/layouts/section.gmi
new file mode 100644
index 0000000..2bfee90
--- /dev/null
+++ b/layouts/section.gmi
@@ -0,0 +1,22 @@
+{{ define "main" -}}
+=> {{ .Site.Home.RelPermalink | strings.TrimSuffix "index.gmi" }} {{ emojify ":link:" }} {{ i18n "returnHome" }}
+
+
+# {{ .Title }}
+{{- with .OutputFormats.Get "Gemini_Atom" }}
+
+
+## {{ i18n "feeds" }}
+
+=> {{ .RelPermalink }} {{ emojify ":link:" }} {{ i18n "atomFeed" }}
+{{- end }}
+{{- with .Pages.ByPublishDate.Reverse }}
+
+
+## {{ i18n "journalEntries" -}}
+{{ range . }}
+
+{{ partial "metadata.gmi" . -}}
+{{ end -}}
+{{ end -}}
+{{ end }}
diff --git a/layouts/section.html b/layouts/section.html
new file mode 100644
index 0000000..b4d49c0
--- /dev/null
+++ b/layouts/section.html
@@ -0,0 +1,18 @@
+{{ define "main" -}}
+<nav>
+ <p>{{ emojify ":link:" }}&nbsp;<a class="link link--internal" href="{{ .Site.Home.RelPermalink }}" rel="noreferrer">{{ i18n "returnHome" }}</a></p>
+</nav>
+<main class="main">
+ <h1>{{ .Title }}</h1>
+ {{ with .OutputFormats.Get "Atom" -}}
+ <h2>{{ i18n "feeds" }}</h2>
+ <p>{{ emojify ":link:" }}&nbsp;<a class="link link--internal" href="{{ .RelPermalink }}" rel="noreferrer">{{ i18n "atomFeed" }}</a></p>
+ {{ end -}}
+ {{ with .Pages.ByPublishDate.Reverse -}}
+ <h2>{{ i18n "journalEntries" }}</h2>
+ {{ range . -}}
+ {{ partial "metadata.html" . }}
+ {{ end -}}
+ {{ end -}}
+</main>
+{{- end }}