From 3e2fc530c6a283ba30acb8cc71c1882f3f1e17c9 Mon Sep 17 00:00:00 2001 From: shockrah Date: Sun, 1 Oct 2023 21:57:49 -0700 Subject: [PATCH] Fixing file path thing with hugo --- main-site/themes/temper/layouts/_default/list.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/main-site/themes/temper/layouts/_default/list.html b/main-site/themes/temper/layouts/_default/list.html index ce187ac..a1547bb 100644 --- a/main-site/themes/temper/layouts/_default/list.html +++ b/main-site/themes/temper/layouts/_default/list.html @@ -1,9 +1,13 @@ {{ define "main" }} {{ partial "minimal-navbar.html" }} - {{ if eq .Page.Path "feed" }} -
/feed
- {{ else if eq .Page.Path "dev" }} -
/dev
+ {{ $path := "" }} + {{ with .File }} + {{ $path = .Path }} + {{ if eq .Dir "feed/" }} +
/feed
+ {{ else if eq .Dir "dev/" }} +
/dev
+ {{ end }} {{ end }} {{ $colors := slice "cyan" "yellow" "pink"}} {{ $opts := len $colors }}