753 B

Post Archive in Hugo

Add an Archive of your Posts to your Website

Install

  1. Add the shortcode file shortcodes/archive.html to your project > layouts/shortcodes
  2. Add content/archive.md to your project's /content directory
  3. 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"
...
+++

Preview

Post Archive in Hugo