Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/hivickylai/hugo-theme-sam.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictoria Drake <hello@victoria.dev>2020-04-11 20:08:27 +0300
committerVictoria Drake <hello@victoria.dev>2020-04-11 20:14:23 +0300
commitaf60c7f41dbacca98a2f8efb9837fc7af2a2eee0 (patch)
tree014d83e59dc21a617436633e0f8a332b2c44a358 /layouts
parent889e08be14d9055a58d05e7fc80bd3a7f4e64075 (diff)
🔨 Use Pages for preview, fix rel links
- Make bottom menu links properly relative - Removes Netlify in favor of Pages from docs/ - Update README to add more error info, close #72
Diffstat (limited to 'layouts')
-rwxr-xr-xlayouts/partials/bottom_menu.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/layouts/partials/bottom_menu.html b/layouts/partials/bottom_menu.html
index 4aaf93c..70386e7 100755
--- a/layouts/partials/bottom_menu.html
+++ b/layouts/partials/bottom_menu.html
@@ -12,13 +12,13 @@
{{ if .Page.Site.Params.mainMenu }}
{{ range first 1 .Page.Site.Params.mainMenu }}
- <a href="{{ .link }}">{{ .text }}</a>
+ <a href="{{ .link | relURL }}">{{ .text }}</a>
{{ end }}
{{ if ( gt ( len .Page.Site.Params.mainMenu ) 1 ) }}
{{ range after 1 .Page.Site.Params.mainMenu }}
&#183;
- <a href="{{ .link }}">{{ .text }}</a>
+ <a href="{{ .link | relURL }}">{{ .text }}</a>
{{ end }}
{{ end }}
&#183;