diff options
author | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-10-14 11:39:11 +0300 |
---|---|---|
committer | Emiel Hollander <EmielH@users.noreply.github.com> | 2018-10-14 11:39:11 +0300 |
commit | 1d6a21e02c17913c74c36ce4a5c6a02f5f17b071 (patch) | |
tree | e853521f0037245022725e90a40ba12fc47dadb2 /layouts/_default | |
parent | b22abdc7f43ef26a63e28e67c7045d73b1ec6a8a (diff) |
Split some templates into partials
This makes it easier to change or override parts of the theme on your
site without losing updates to the theme.
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/single.html | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 9134f96..1968456 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -2,19 +2,7 @@ <main> <div class="post"> - <div class="post-info"> - <span>{{ i18n "writtenBy" }}</span> - {{- if .Params.Author }} - {{ .Params.Author }} - {{- else }} - {{ .Site.Params.Author }} - {{- end }} - - {{- if .PublishDate }} - <br> - <span>{{ i18n "on" }} </span><time datetime="{{ .PublishDate }}">{{ i18n "publishdate" . }}</time> - {{- end }} - </div> + {{ partial "single-post-info.html" . }} <h1 class="post-title">{{ .Title }}</h1> <div class="post-line"></div> |