Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 740 Bytes

File metadata and controls

25 lines (17 loc) · 740 Bytes

Notes on Hugo

https://gohugo.io/

Commands

Create new post (run inside root dir of site): hugo new posts/new-post.md

Start Hugo server: hugo server -D

Notes

  • How to enable HTML tags in Hugo (when default markdown engine is goldmark). This is useful for resizing images in your posts by using <img src="/img/myimg.png" width="1000"/>

    • In the config.toml file, add
    [markup]
        defaultMarkdownHandler = "goldmark"
        [markup.goldmark]
            [markup.goldmark.renderer]
                unsafe = true