summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/articles/home.html7
-rw-r--r--layouts/list.html21
-rw-r--r--layouts/page.html11
-rw-r--r--layouts/section.html8
-rw-r--r--layouts/taxonomy.html7
5 files changed, 27 insertions, 27 deletions
diff --git a/layouts/articles/home.html b/layouts/articles/home.html
deleted file mode 100644
index 46ab1df..0000000
--- a/layouts/articles/home.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{{ define "main" }}
- {{ .Content }}
- {{ range .Pages }}
- <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
- {{ .Summary }}
- {{ end }}
-{{ 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
index 7e286c8..8b8eb16 100644
--- a/layouts/page.html
+++ b/layouts/page.html
@@ -1,9 +1,10 @@
{{ define "main" }}
- <h1>{{ .Title }}</h1>
-
- {{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
- {{ $dateHuman := .Date | time.Format ":date_long" }}
- <time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
+ {{- $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" .) }}
diff --git a/layouts/section.html b/layouts/section.html
deleted file mode 100644
index 50fc92d..0000000
--- a/layouts/section.html
+++ /dev/null
@@ -1,8 +0,0 @@
-{{ define "main" }}
- <h1>{{ .Title }}</h1>
- {{ .Content }}
- {{ range .Pages }}
- <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
- {{ .Summary }}
- {{ end }}
-{{ end }}
diff --git a/layouts/taxonomy.html b/layouts/taxonomy.html
deleted file mode 100644
index c2e7875..0000000
--- a/layouts/taxonomy.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{{ define "main" }}
- <h1>{{ .Title }}</h1>
- {{ .Content }}
- {{ range .Pages }}
- <h2><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
- {{ end }}
-{{ end }}