From 0da6ee8846f597ac897646a2f33521a1efe0655c Mon Sep 17 00:00:00 2001 From: Matt Kohls Date: Sat, 6 Jun 2020 18:16:00 -0400 Subject: Initial work on theme --- layouts/partials/footer.html | 10 ++++++++++ layouts/partials/header.html | 26 ++++++++++++++++++++++++++ layouts/partials/titleblock.html | 10 ++++++++++ 3 files changed, 46 insertions(+) create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/header.html create mode 100644 layouts/partials/titleblock.html (limited to 'layouts/partials') diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html new file mode 100644 index 0000000..9787a40 --- /dev/null +++ b/layouts/partials/footer.html @@ -0,0 +1,10 @@ + + + diff --git a/layouts/partials/header.html b/layouts/partials/header.html new file mode 100644 index 0000000..3aa09f4 --- /dev/null +++ b/layouts/partials/header.html @@ -0,0 +1,26 @@ + + + + + + {{ .Title }} | {{ .Site.Title }} + + + + +
+ +
+
diff --git a/layouts/partials/titleblock.html b/layouts/partials/titleblock.html new file mode 100644 index 0000000..e2f4549 --- /dev/null +++ b/layouts/partials/titleblock.html @@ -0,0 +1,10 @@ +

{{ .Title | markdownify }}

+

+{{ if (gt .Params.date 0) }} {{ .Date.Format "January 2, 2006" }} {{ end }} {{ if (gt .Params.author 0) }} by {{ with .Params.author }} {{ . }} {{ end }} {{ end }}
+{{ range $i := (slice "categories" "tags") }} +{{ with ($.Param $i) }} +{{ $i | title }}: {{ range $k := . }}{{$k}} {{ end }}
+{{ end }} +{{ end }} +

+
-- cgit v1.2.3