Simplify
This commit is contained in:
@@ -20,11 +20,7 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range .Ancestors }}
|
{{ range .Ancestors }}
|
||||||
{{ $title := .Title }}
|
{{ $title := cond (and .IsHome (not .Title)) site.Title .Title }}
|
||||||
|
|
||||||
{{ if and .IsHome (not $title) }}
|
|
||||||
{{ $title = site.Title }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{ $titles = $titles | append ($title | markdownify | plainify | htmlUnescape) }}
|
{{ $titles = $titles | append ($title | markdownify | plainify | htmlUnescape) }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
Reference in New Issue
Block a user