aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/titleblock.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials/titleblock.html')
-rw-r--r--layouts/partials/titleblock.html10
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>