%% date:: [[2022-12-31]] %% # [[Hugo]] ## Installing Hugo `brew install hugo` ## Basics of Hugo ### Starting local instance of Hugo site `hugo server -D` The `-D` is an optional flag that serves up posts that are in draft as well as those that are not. This can be set in the frontmatter using `draft: true`. ### Add a new post `hugo new posts/first-post.md` This creates a file in the specified directory as well as frontmatter in that file, including the date and tentative title. ### Building static pages `hugo` This will take everything in your source directories and build a site for you. By default this newly generated site will be in `/public`. This folder contains the actual site, generated from the content you created. ## Themes [[reveal-hugo]] is an awesome theme that uses [[sources/Presentation/Mine/slides/public/reveal-js/js/reveal.js]] to create presentations with [[Obsidian]]. ## Using Hugo - [[How to display all blog posts in archive in Hugo]] - [[How to display related posts in Hugo]] ## RSS [[Change default RSS template for Hugo]] [[Display full blog post content in Hugo RSS feed]] ## See also - [[Hugo Shortcodes]] - [[Publishing new content to Hugo site]] - [[Presentation slides as code]]