Fixing file path thing with hugo

This commit is contained in:
shockrah 2023-10-01 21:57:49 -07:00
parent 9e1585565c
commit 3e2fc530c6

View File

@ -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 }}