Skip to content

Commit

Permalink
fix redirect list (#383)
Browse files Browse the repository at this point in the history
Co-authored-by: Cosima Meyer <[email protected]>
  • Loading branch information
drmowinckels and cosimameyer authored Feb 17, 2025
1 parent 03fb92a commit b3029a8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions themes/hugo-rladies/layouts/redirect/list.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
{{ define "main" }}

<ul>
{{ range .Pages }}
{{ range .RegularPages.ByTitle }}
<li class="p-2">
{{ .Title }}
{{ if .Params.redirect }}
{{ .Title }}
<span>
<a href="{{ .RelPermalink }}" rel="bookmark">{{.Params.redirect}}</a>
<a href="{{ .RelPermalink }}" rel="bookmark" alt="{{ .Params.redirect }}">{{ .Permalink }}</a>
</span>
{{ end }}
</li>
{{ end }}
</ul>
Expand Down

0 comments on commit b3029a8

Please sign in to comment.