diff options
author | Alex Shpak <alex-shpak@users.noreply.github.com> | 2021-05-03 22:05:25 +0200 |
---|---|---|
committer | Alex Shpak <alex-shpak@users.noreply.github.com> | 2021-05-03 22:05:25 +0200 |
commit | 9e9c7d34038a830d22397bbec08e7ec64eb0a0d7 (patch) | |
tree | 81465b79d5a6b015e1ea5ec5ab0170c5a62328e1 /layouts/posts | |
parent | c197f3399b0aee698afc5278dbb33506892311ef (diff) |
Improve posts title rendering
Diffstat (limited to 'layouts/posts')
-rw-r--r-- | layouts/posts/list.html | 2 | ||||
-rw-r--r-- | layouts/posts/single.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/posts/list.html b/layouts/posts/list.html index 12207c8..badf0f6 100644 --- a/layouts/posts/list.html +++ b/layouts/posts/list.html @@ -2,7 +2,7 @@ {{ range sort .Paginator.Pages }} <article class="markdown book-post"> <h2> - <a href="{{ .RelPermalink }}">{{ .Title }}</a> + <a href="{{ .RelPermalink }}">{{ partial "docs/title.html" . }}</a> </h2> {{ partial "docs/post-meta" . }} <p> diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 79cd303..301ca1e 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -1,7 +1,7 @@ {{ define "main" }} <article class="markdown"> <h1> - <a href="{{ .RelPermalink }}">{{ .Title }}</a> + <a href="{{ .RelPermalink }}">{{ partial "docs/title.html" . }}</a> </h1> {{ partial "docs/post-meta" . }} {{- .Content -}} |