mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-11-21 22:42:19 +00:00
adjust heading for related posts at the bottom of the article
This commit is contained in:
parent
c9cafc7f14
commit
afdf5d0412
1 changed files with 9 additions and 0 deletions
9
layouts/partials/related.html
Normal file
9
layouts/partials/related.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{ if isset .Params "series" }}
|
||||
{{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }}
|
||||
<h2 class="post_related">{{ T "series_posts" }}{{ .Params.series }}</h2>
|
||||
<ul>
|
||||
{{ range $related }}
|
||||
<li><a href="{{ .Permalink }}" class="nav-link" title="{{ .Title }}">{{ .Title }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
Loading…
Reference in a new issue