Post Archive in Hugo
Add an Archive of your Posts to your Website
Install
- Add the shortcode file
shortcodes/archive.html
to your project >layouts/shortcodes
- Add
content/archive.md
to your project's/content
directory - Add the default key/value to your
archetypes/default.md
summary: "Summary of {{ replace .Name "-" " " | title }}"
Usage
To reach your Archive you can add a new menu entry that links to it:
[menu]
[[menu.main]]
identifier = "about"
name = "About"
url = "/about/"
Add a summary (description) to a Post:
+++
...
summary = "This is a Test Page for this Usage example"
...
+++