Hugo Page Resources

Friday, February 7, 2020

Hugo is a static site generator that takes markdown and turns it into a static HTML site. That’s how this site is running. I’ve been using it for another of my web sites, but I don’t like how it handles images. I found some code that would put a border around images and it looks nice. I use it on my other blog. But one of the hardest parts was figuring out how to handle page resources in Hugo.

I thought all you had to do was put in some text in the front-matter of the markdown and everything would magically happen. What you really have to do is create a folder for your entry and your entry’s markdown becomes the index.md file in there. Finally you add folders to house the page resources. Very not intuitive at all, but it works!

Check out this blog post that details how this all works.

HugoWebsiteJAMStack

This work is licensed under CC BY-NC-SA 4.0

Dual Screen or Foldable Screen

Hugo to the Rescue