Fixing file path thing with hugo
This commit is contained in:
parent
9e1585565c
commit
3e2fc530c6
@ -1,10 +1,14 @@
|
||||
{{ define "main" }}
|
||||
{{ partial "minimal-navbar.html" }}
|
||||
{{ if eq .Page.Path "feed" }}
|
||||
{{ $path := "" }}
|
||||
{{ with .File }}
|
||||
{{ $path = .Path }}
|
||||
{{ if eq .Dir "feed/" }}
|
||||
<h5>/feed</h5>
|
||||
{{ else if eq .Page.Path "dev" }}
|
||||
{{ else if eq .Dir "dev/" }}
|
||||
<h5>/dev</h5>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $colors := slice "cyan" "yellow" "pink"}}
|
||||
{{ $opts := len $colors }}
|
||||
{{ range $i, $page := .Pages.ByDate.Reverse }}
|
||||
|
Loading…
Reference in New Issue
Block a user