From b25bff002f8b66422db9cb6b5b68676a46fa4ea1 Mon Sep 17 00:00:00 2001 From: panr Date: Tue, 16 Apr 2019 16:55:53 +0200 Subject: [PATCH] Add Archive page --- README.md | 1 + layouts/archive/list.html | 47 +++++++++++++ source/css/archive.css | 84 ++++++++++++++++++++++++ source/css/style.css | 2 + static/assets/main.js | 134 +------------------------------------- static/assets/prism.js | 130 +++--------------------------------- static/assets/style.css | 2 +- 7 files changed, 144 insertions(+), 256 deletions(-) create mode 100644 layouts/archive/list.html create mode 100644 source/css/archive.css diff --git a/README.md b/README.md index 9fb27e0..90e6b19 100644 --- a/README.md +++ b/README.md @@ -135,6 +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). - **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 ``** — if you need to add something inside `` 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 `