aboutsummaryrefslogtreecommitdiff
path: root/layouts/section.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/section.html')
-rw-r--r--layouts/section.html18
1 files changed, 18 insertions, 0 deletions
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 }}