1,343 questions
0
votes
0
answers
19
views
How can I fix the kerning of text generated by GoAT (Go Ascii Tool)
I am using GoAT within hugo to render diagrams. The following diagram:
.------------------------------------.
| .------------------------...
1
vote
1
answer
18
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
33
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
0
answers
19
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
42
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
0
answers
31
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
152
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
0
answers
17
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
74
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
0
answers
49
views
HTML tags are shown on homepage
I installed Hugo with the Docsy theme. Docsy is installed as a Hugo module.
When opening the homepage, the title "Welcome" and some HTML code are shown
<a class="btn btn-link ...
0
votes
1
answer
49
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
135
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
{{...
1
vote
0
answers
117
views
Decap CMS OAuth Redirect Issue - Redirecting to Homepage Instead of Admin Page After GitLab Authorization
I'm experiencing an issue with Decap CMS OAuth integration. Here's the situation:
I have successfully set up Decap CMS with GitLab authentication.
When I authorize using GitLab, I'm correctly ...