DEV DISCUSSIONS ONLY ... refer to https://gohugo.io for docs and https://discourse.gohugo.io for support and usage questions
bep on master
Add a baseline benchmark (compare)
marckhouzam on master
doc: Add CloudQuery for project… (compare)
{{ 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
How to bring these in Hugo static site?
Need help on how to add the following features to hogo static for site search
a) type-ahead with no of matches found before search
c) highlighting the search word in found document or notes or text
d) easy navigation with next, previous, goto exact match button as well as
keyboard shortcuts
e) search only in titles or inside content
f) search results in less than a second
lunr or elastic search demo or showcase to customize.
Basically planning to built a cross platform search static engine...
In this way, the user just needs the browser no installation is required......
In this way, the application will be purely portable irrespective of OS....
Need couple of ways to customize it as per the needs
I went through the following but not sure...Please help
https://www.npmjs.com/package/hugo-lunr
https://gohugo.io/tools/search/#readout