Skip to content

Commit dac323f

Browse files
authored
List: Fixed page linking on preview (#327)
1 parent a170c6e commit dac323f

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

layouts/_default/list.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ <h1>{{ .Title }}</h1>
2626
{{ .Content }}
2727
{{ else }}
2828
{{ range .Pages.ByWeight }}
29-
<h2>
30-
<a href="{{ if .Params.url}}{{ .Params.url}}{{else}}{{ .Permalink }}{{end}}">{{ .Title }}</a>
31-
</h2>
29+
<h2>
30+
<a href="{{ .Permalink }}">{{ .Title }}</a>
31+
</h2>
3232
{{ end }}
3333
{{ end }}
3434

layouts/index.html

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)