1,340 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
34
views
Hugo site on GitLab Pages – sitemap.xml shows gitlab.io domain instead of custom domain
The site works fine on my custom domain (e.g. https://www.example.com/), but in the generated sitemap.xml (and also in RSS feeds) the URLs still point to the GitLab Pages default URL (https://project-...
0
votes
0
answers
52
views
Deploying Hugo Site to Azure Static Web Apps using Github Actions fails. Error "Oryx could not find a 'build' or 'build:azure' script"
I have created a Hugo static app, and am attempting to deploy it to an Azure Static Web App, using the Github action created by Azure when creating the resource. I am following the tutorial at https://...
0
votes
1
answer
42
views
Can't load .yml files from the data folder to a template
My Goal is to use a template (card_gallery.html) to display different content depending on the specific page using the template. My info about what should be on each card is stored in a data structure ...
0
votes
1
answer
69
views
Setting theme via config Vs. --theme (New template system)
I have this in hugo.toml
theme="r-hugo-theme"
and this folder structure:
I'm trying to follow the new template system: https://gohugo.io/templates/new-templatesystem-overview/
I get the ...
0
votes
1
answer
66
views
Hugo i18n translation
In hugo, We can specify i18n translation keys for specific edition, but if the key is not present in the specific lang like es-xl.yaml, it should take the translation available from the default lang ...
0
votes
1
answer
187
views
How to use page width in Hugo template?
I am using Hugo Universal theme, but saw that code in many other themes, too.
To lay out a "table" of features, they use
[params.features]
cols = 2 # Default: 3, Available values 2,3,4,6
...
0
votes
1
answer
41
views
{{<columns>}} does not display images - it just renders the image tag
I have the following in my Hugo site:
{{< columns >}}
The top-right corner of the home page shows your email address and can be used to access your profile.
<--->
, a refresh is triggered, ...
1
vote
1
answer
86
views
Bash script to insert/update nested values in hugo.toml — not working as expected
I'm trying to write a Bash script that updates the hugo.toml config file of a Hugo static site to insert a slogan parameter in the [languages.xx.params] section of each language.
Goal:
For each ...
0
votes
1
answer
60
views
Hugo on github pages have wrong image url
I made a site with Hugo and deployed to Github pages but the image path wrong.
Repository: hugo_akinator
Dir:
├── content
│ ├── _index.md
│ ├── cards
│ │ ├── index.md
│ │ ├── card1
│ │ ...
0
votes
1
answer
179
views
How to check for non-empty string?
In Hugo, how do I check that an input string should not be empty?
I've tried the following approaches:
Check for truthy
{{if $foo }}
<!-- Show something -->
{{ end }}
Using the len function
{{...
Mig82's user avatar
- 5,626
0
votes
1
answer
139
views
Why won't Hugo compile on my machine with PostCSS error, althogh it does on another PC with the same settings?
somehow I messed up my system, and can't figure out, what's wrong.
A few years ago I installed chocolatey, nodejs and Hugo on my PC (Win 10, now updated to Win 11). A few years later I downloaded ...
0
votes
0
answers
91
views
Hugo 0.140 makes newline of linebreak
I've just upgraded to a newer version of Hugo (0.140), and the behavior has changed from what it was previously. Now for every linebreak I have in my posts/pages, it creates a linebreak in the ...
0
votes
1
answer
145
views
YAML code block in markdown won't generate HTML
With the Hugo, I'm trying to generate a site with a code block containing yaml. I am using no special template or any optional stuff. When building the site instead of the codeblock just an
e>
is ...