33 lines
616 B
Markdown
Raw Normal View History

2022-01-14 15:45:24 +01:00
# Post Archive in Hugo
2022-01-14 23:25:00 +01:00
Add an Archive of your Posts to your Website
2022-01-14 15:45:24 +01:00
## 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
## Usage
To reach your Archive you can add a new menu entry that links to it:
```toml
[menu]
[[menu.main]]
identifier = "about"
name = "About"
url = "/about/"
```
Add a summary (description) to each Post:
2022-01-14 23:25:00 +01:00
```toml
2022-01-14 15:45:24 +01:00
+++
...
summary = "This is a Test Page for this Usage example"
...
+++
```
## Preview
2022-01-14 23:25:00 +01:00
![Post Archive in Hugo](post_archive.png)