aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
authorNicholas Johnson <nick@nicksphere.ch>2022-04-28 00:00:00 +0000
committerNicholas Johnson <nick@nicksphere.ch>2022-04-28 00:00:00 +0000
commitb1efd00585f84abc397a040852b67c31d36d177d44367a7581afd3e4389b6fd2 (patch)
tree20ff16d4b8db72a0f387faf722fc1534440678d8cd6663111ec052bde04718d4 /layouts/partials
Initial commit
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/footer.html4
-rw-r--r--layouts/partials/head.html9
-rw-r--r--layouts/partials/header.html3
-rw-r--r--layouts/partials/metadata.html9
4 files changed, 25 insertions, 0 deletions
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..673e170
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,4 @@
+<footer>
+ <p>Unless otherwise noted, the writing in this journal is licensed under {{ $.Site.Copyright }}<br>
+Copyright {{ .Site.Params.beginCopyrightYear }}-{{ now.Format "2006" }} {{ $.Site.Author.name }}</p>
+</footer>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..2e5db26
--- /dev/null
+++ b/layouts/partials/head.html
@@ -0,0 +1,9 @@
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="description" content="{{ $.Site.Params.description }}">
+ <meta name="keywords" content="{{ $.Site.Params.keywords }}">
+ <meta name="theme-color" content="#000">
+ <link rel="stylesheet" type="text/css" href="/css/style.css">
+ <title>{{ $.Site.Title }}</title>
+</head>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..391a013
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,3 @@
+<header>
+ <pre>{{ $.Site.Params.logo }}</pre>
+</header>
diff --git a/layouts/partials/metadata.html b/layouts/partials/metadata.html
new file mode 100644
index 0000000..36ae6fb
--- /dev/null
+++ b/layouts/partials/metadata.html
@@ -0,0 +1,9 @@
+{{ range (where .Site.RegularPages.ByTitle "Section" "post").ByPublishDate.Reverse }}
+{{ $dateFormat := .Site.Params.dateFormat | default "2 Jan 2006" }}
+<article>
+ <header>
+ <p>{{ .PublishDate.Format $dateFormat }} - {{ .ReadingTime }} minute read<br>
+ <a href="{{ .RelPermalink }}" rel="noreferrer">{{ .Title }}</a></p>
+ </header>
+</article>
+{{ end }}