mirror of
https://github.com/thomasjsn/hugo-theme-hello-friend.git
synced 2024-12-26 15:57:38 +01:00
Add Archive page template
This commit is contained in:
parent
b25bff002f
commit
e0c1777296
@ -135,7 +135,7 @@ Adding a cover image to your post is simple and there are two options when you e
|
||||
|
||||
## Add-ons
|
||||
|
||||
- **Archive** — Theme has built-in `archive` page for main content (see `contentTypeName` variable in config). If you need archive on your blog just link wherever you want to `/archive`. If you need multilangual archives, duplicate `content/archive.md` and add `.Lang` variable, eg: `content/archive.pl.md` (remember to change `url` in duplicated file).
|
||||
- **Archive** — Theme has built-in `archive` page for main content (see `contentTypeName` variable in config). If you need archive on your blog just copy https://github.com/panr/hugo-theme-hello-friend/blob/master/exampleSite/content/archive.md to your `content` dir. If you need multilangual archives, duplicate `content/archive.md` and add `.Lang` variable, eg: `content/archive.pl.md` (remember to change `url` in duplicated file).
|
||||
- **Comments** — for adding comments to your blog posts please take a look at `layouts/partials/comments.html` https://github.com/panr/hugo-theme-terminal/blob/master/layouts/partials/comments.html.
|
||||
- **Extended `<head>`** — if you need to add something inside `<head>` element, please take a look at `layouts/partial/extended_head.html` https://github.com/panr/hugo-theme-hello-friend/blob/master/layouts/partials/extended_head.html
|
||||
- **Extended `<footer>`** — if you need to add something before end of `<body>` element, please take a look at `layouts/partial/extended_footer.html` https://github.com/panr/hugo-theme-hello-friend/blob/master/layouts/partials/extended_footer.html
|
||||
|
6
exampleSite/content/archive.md
Normal file
6
exampleSite/content/archive.md
Normal file
@ -0,0 +1,6 @@
|
||||
+++
|
||||
title = "Archive"
|
||||
layout = "list"
|
||||
url = "/archive"
|
||||
type = "archive"
|
||||
+++
|
Loading…
Reference in New Issue
Block a user