diff options
author | Prefetch | 2021-02-24 09:47:22 +0100 |
---|---|---|
committer | Prefetch | 2021-02-24 09:47:22 +0100 |
commit | b5608ab92a4f8a5140571acabf54e3c6bdebd0e4 (patch) | |
tree | 673b19fadbbaff9c1f765037896a1ba7d008a2b8 /layouts/blog |
Initial commit
Diffstat (limited to 'layouts/blog')
-rw-r--r-- | layouts/blog/list.html | 25 | ||||
-rw-r--r-- | layouts/blog/single.html | 14 |
2 files changed, 39 insertions, 0 deletions
diff --git a/layouts/blog/list.html b/layouts/blog/list.html new file mode 100644 index 0000000..1bc9c3e --- /dev/null +++ b/layouts/blog/list.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html> +<head> +{{ partial "head.html" . }} +<title>{{ .Title }} | {{ .Site.Title }}</title> +</head> +<body> +{{ partial "navigation.html" . }} +<h1>{{ .Title }}</h1> +{{ .Content }} + +{{ range .RegularPagesRecursive.GroupByPublishDate "2006" }} +<p> +{{ .Key }}: + <ul> + {{ range .Pages.ByPublishDate }} + <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li> + {{ end }} + </ul> +</p> +{{ end }} + +{{ partial "footer.html" . }} +</body> +</html> diff --git a/layouts/blog/single.html b/layouts/blog/single.html new file mode 100644 index 0000000..cc0a4fd --- /dev/null +++ b/layouts/blog/single.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> +{{ partial "head.html" . }} +<title>{{ .Title }} | {{ .Site.Title }}</title> +</head> +<body> +{{ partial "navigation.html" . }} +<h1>{{ .Title }}</h1> +{{ .TableOfContents }} +{{ .Content }} +{{ partial "footer.html" . }} +</body> +</html> |