Skip to content

Commit

Permalink
Correct related.html.
Browse files Browse the repository at this point in the history
Signed-off-by: Tekki <[email protected]>
  • Loading branch information
Tekki committed Sep 24, 2024
1 parent 744acdc commit 12fba47
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions layouts/partials/related.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{{ if isset .Params "series" }}
{{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }}
<h2 class="post_related">{{ T "series_posts" }}</h2>
<ul>
{{ range sort $related "Date" }}
<li><a href="{{ .Permalink }}" class="nav-link" title="{{ .Title }}">{{ .Title }}</a></li>
{{ end }}
</ul>
<h2 class="post_related">{{ T "series_posts" }}</h2>
<ul>
{{ range sort $related "Date" }}
<li><a href="{{ .Permalink }}" class="nav-link" title="{{ .Title }}">{{ .Title }}</a></li>
{{ end }}
</ul>
{{ end }}
</ul>

0 comments on commit 12fba47

Please sign in to comment.