diff options
author | Matt Kohls <mattkohls13@gmail.com> | 2020-06-06 18:16:00 -0400 |
---|---|---|
committer | Matt Kohls <mattkohls13@gmail.com> | 2020-06-06 18:16:00 -0400 |
commit | 0da6ee8846f597ac897646a2f33521a1efe0655c (patch) | |
tree | fb927345bbe9306a9f0efe5eeb4b080442974a16 /layouts/partials/titleblock.html | |
download | pagedown-0da6ee8846f597ac897646a2f33521a1efe0655c.tar.gz pagedown-0da6ee8846f597ac897646a2f33521a1efe0655c.tar.bz2 pagedown-0da6ee8846f597ac897646a2f33521a1efe0655c.zip |
Initial work on theme
Diffstat (limited to 'layouts/partials/titleblock.html')
-rw-r--r-- | layouts/partials/titleblock.html | 10 |
1 files changed, 10 insertions, 0 deletions
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 @@ +<h1>{{ .Title | markdownify }}</h1> +<p> +{{ if (gt .Params.date 0) }} {{ .Date.Format "January 2, 2006" }} {{ end }} {{ if (gt .Params.author 0) }} by {{ with .Params.author }} {{ . }} {{ end }} {{ end }}<br> +{{ range $i := (slice "categories" "tags") }} +{{ with ($.Param $i) }} +{{ $i | title }}: {{ range $k := . }}<a href="{{ relURL (print "/" $i "/" $k | urlize) }}">{{$k}}</a> {{ end }}<br> +{{ end }} +{{ end }} +</p> +<hr> |