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

Error: getStaticPaths is required for dynamic SSG pages and is missing for “xxx”. NextJS

If you are creating a dynamic page eg: product/[slug].tsx then even if you don’t want to create any page on build time you need to create a getStaticPaths method to set the fallback property and let NextJS know what to do when the page you are trying to get doesn’t exist. export const getStaticPaths: GetStaticPaths<{ … Read more

Recommendations of static site generator which accepts Markdown documents? [closed]

http://staticsitegenerators.net is a crowd-sourced definitive listing of all the static site generators, their github stars, their website, their language, created and updated dates, etc. +1 for DocPad, I’ve found Jekyll to be quite crippling with it’s lack of extensibility (not enough markups supported, difficult to filter documents in content listings based on certain criteria, hard … Read more

How to add a favicon to a Next.js static site?

Create a /static folder in project root. This will be added to the static export folder. Add favicon file in /static folder. Add _document.js to /pages/ folder according to documentation (nextjs.org) or documentation (github.com). Add <link rel=”shortcut icon” href=”https://stackoverflow.com/static/favicon.ico” /> to head. npm run build && npm run export P.S. Thanks to the previous answer … Read more

tech