summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/baseof.html19
-rw-r--r--layouts/home.html3
-rw-r--r--layouts/list.html21
-rw-r--r--layouts/page.html11
-rw-r--r--layouts/term.html7
5 files changed, 61 insertions, 0 deletions
diff --git a/layouts/baseof.html b/layouts/baseof.html
new file mode 100644
index 0000000..e5fd07d
--- /dev/null
+++ b/layouts/baseof.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html lang="{{ site.Language.LanguageCode }}">
+<head>
+ {{ partial "head.html" . }}
+</head>
+<body>
+ <div class="content">
+ <header>
+ {{ partial "header.html" . }}
+ </header>
+ <main>
+ {{ block "main" . }}{{ end }}
+ </main>
+ <footer>
+ {{ partial "footer.html" . }}
+ </footer>
+ </div>
+</body>
+</html>
diff --git a/layouts/home.html b/layouts/home.html
new file mode 100644
index 0000000..e0e8308
--- /dev/null
+++ b/layouts/home.html
@@ -0,0 +1,3 @@
+{{ define "main" }}
+ {{ .Content }}
+{{ end }}
diff --git a/layouts/list.html b/layouts/list.html
new file mode 100644
index 0000000..cc6c7be
--- /dev/null
+++ b/layouts/list.html
@@ -0,0 +1,21 @@
+{{ define "main" }}
+ <h1>{{ .Title }}</h1>
+ <table>
+ <thead>
+ <tr>
+ <th>Date</th>
+ <th>Title</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{ range .Pages }}
+ {{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" -}}
+ {{- $dateHuman := .Date | time.Format "2006-01-02" -}}
+ <tr>
+ <td><time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time></td>
+ <td><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></td>
+ </tr>
+ {{ end }}
+ </tbody>
+ </table>
+{{ end }}
diff --git a/layouts/page.html b/layouts/page.html
new file mode 100644
index 0000000..8b8eb16
--- /dev/null
+++ b/layouts/page.html
@@ -0,0 +1,11 @@
+{{ define "main" }}
+ {{- $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" -}}
+ {{- $dateHuman := .Date | time.Format "2006-01-02" -}}
+ <div>
+ <h1 class="title">{{ .Title }}</h1>
+ <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
+ </div>
+
+ {{ .Content }}
+ {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
+{{ end }}
diff --git a/layouts/term.html b/layouts/term.html
new file mode 100644
index 0000000..c2e7875
--- /dev/null
+++ b/layouts/term.html
@@ -0,0 +1,7 @@
+{{ define "main" }}
+ <h1>{{ .Title }}</h1>
+ {{ .Content }}
+ {{ range .Pages }}
+ <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
+ {{ end }}
+{{ end }}