diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2019-03-16 17:43:05 +0100 |
---|---|---|
committer | Dimitri Staessens <dimitri@ouroboros.rocks> | 2019-03-16 17:43:05 +0100 |
commit | 79acfcf1599496e67b20c39c00a100b07c383ab1 (patch) | |
tree | 0651646a631545b2ff56074f4c8f492d69dbb170 /themes/terrassa/layouts/_default/single.html | |
parent | 4b98568dbdc0dddf8255abbbb08565821b79f839 (diff) | |
download | website-79acfcf1599496e67b20c39c00a100b07c383ab1.tar.gz website-79acfcf1599496e67b20c39c00a100b07c383ab1.zip |
theme: Add terrassa theme
Diffstat (limited to 'themes/terrassa/layouts/_default/single.html')
-rw-r--r-- | themes/terrassa/layouts/_default/single.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/themes/terrassa/layouts/_default/single.html b/themes/terrassa/layouts/_default/single.html new file mode 100644 index 0000000..f6b15ae --- /dev/null +++ b/themes/terrassa/layouts/_default/single.html @@ -0,0 +1,31 @@ +{{ define "main" }} +<article class="post"> + <header class="post__header"> + <h1 class="post__title">{{ .Title }}</h1> + {{ if .Description }} + <p class="post__subtitle">{{ .Description }}</p> + {{ end }} + {{ if ne .Type "page" }} + {{ if and $.Site.Params.posts.showDate $.Site.Params.posts.showAuthor }} + <p class="post__date date"> + {{ dateFormat $.Site.Params.posts.dateFormat .Date }} By {{ $.Params.author }}. + </p> + {{ else if $.Site.Params.posts.showDate }} + <p class="post__date date">{{ dateFormat $.Site.Params.posts.dateFormat .Date }}</p> + {{ else if $.Site.Params.posts.showAuthor }} + <p class="post__author author">By {{ $.Params.author }}.</p> + {{ end }} + {{ end }} + </header> + + <main class="post__body"> + {{ .Content }} + </main> + + {{ if ne .Type "page" }} + <footer class="post__footer"> + {{ .Render "tags" }} + </footer> + {{ end }} +</article> +{{ end }}
\ No newline at end of file |