diff options
author | Dillon <dillonzq@outlook.com> | 2020-03-16 11:14:37 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 11:14:37 +0300 |
commit | 9a7189c2a3f52792dfa5bbd96aaa7c8626ed457c (patch) | |
tree | 84745a3525b2e068b4c3ea1db91aa48052797eef /layouts | |
parent | ee1c5c22bc765660aad504c63c949239c454302e (diff) |
feat(subtitle): add subtitle for posts (#171)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/single.html | 3 | ||||
-rw-r--r-- | layouts/posts/single.html | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 5bdc32e..8687942 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -6,6 +6,9 @@ <h1 class="single-title animated pulse faster"> {{- .Title -}} </h1> + {{- with .Params.subtitle -}} + <h2 class="single-subtitle">{{ . }}</h2> + {{- end -}} {{- /* Content */ -}} <div class="content" id="content"> diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 1e90176..6c58599 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -5,6 +5,9 @@ <article class="page single"> {{- /* Title */ -}} <h1 class="single-title animated flipInX">{{ .Title }}</h1> + {{- with .Params.subtitle -}} + <h2 class="single-subtitle">{{ . }}</h2> + {{- end -}} {{- /* Meta */ -}} <div class="post-meta"> |