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" }} {{ define "main" }}
{{ partial "minimal-navbar.html" }} {{ partial "minimal-navbar.html" }}
{{ if eq .Page.Path "feed" }} {{ $path := "" }}
<h5>/feed</h5> {{ with .File }}
{{ else if eq .Page.Path "dev" }} {{ $path = .Path }}
<h5>/dev</h5> {{ if eq .Dir "feed/" }}
<h5>/feed</h5>
{{ else if eq .Dir "dev/" }}
<h5>/dev</h5>
{{ end }}
{{ end }} {{ end }}
{{ $colors := slice "cyan" "yellow" "pink"}} {{ $colors := slice "cyan" "yellow" "pink"}}
{{ $opts := len $colors }} {{ $opts := len $colors }}