DEV DISCUSSIONS ONLY ... refer to https://gohugo.io for docs and https://discourse.gohugo.io for support and usage questions
dependabot[bot] on go_modules
dependabot[bot] on go_modules
build(deps): bump github.com/st… (compare)
dependabot[bot] on go_modules
{{ range .Site.Menus.main }}
{{ if eq $.URL .Permalink }}
<li class="nav-item active">
{{ else }}
<li class="nav-item">
{{ end }}
<a class="nav-link" href="{{ .Permalink | absURL }}">{{ .Name }}</a>
</li>
{{ end }}
Using $.URL
for menu entry gives false warning, Page's .URL is deprecated and will be removed in a future release. Use .Permalink or .RelPermalink. If what you want is the front matter URL value, use .Params.url.
It's a bug i guess.
.URL
but menuentry $.URL
Wylel
Hey all, i am new to Hugo and running into an issue. I made a test site, worked well, then I decided to create a new one that I am going to develop. The new one is having an issue where the /posts/ directory is not accessable. If I go to it on the webserver (after deploy) it gives a 403 error, and one local (hugo server -D) it just shows a blank white page, but other pages (not in posts) works fine.
Wylel
I am using the hello-friend-ng theme