Why is Hugo serving blank pages?

The problem is likely to be the theme – it is either missing or broken. Hugo does not come with any default/fallback theme if you fail to provide a working one. Debugging guide: Check the themes folder, and follow the quickstart. Try using another, simpler theme. It may only be a question of configuring the … Read more

Hugo shortcode ignored saying “raw HTML omitted”

This is the most frequently asked question in Newest ‘hugo’ Questions – Stack Overflow within the last 5 days!ยน In your Hugo config file, you need to tell the default Markdown renderer, which is Goldmark, to render raw HTML. If you use a config.yaml, use this: markup: goldmark: renderer: unsafe: true If you use a … Read more

How to fix the error `found no layout file for “HTML” for “page”` in Hugo CMS?

Okay so here is what is likely happening: You have a theme you added as a git submodule and you recently re-cloned your project. Guess what? Your submodule needs to be re-downloaded as well. You can do this with: git submodule init git submodule update Then your project will load without errors.

How to add a new hugo static page?

This is the best tutorial how to create static “landing pages” on Hugo: https://discuss.gohugo.io/t/creating-static-content-that-uses-partials/265/19?u=royston Basically, you create .md in /content/ with type: “page” in front matter, then create custom layout for it, for example layout: “simple-static” in front matter, then create the layout template in themes/<name>/layouts/page/, for example, simple-static.html. Then, use all partials as usual, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)