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