From 9fbec3dc12b9227102f11c10c86bbae97236bdb7 Mon Sep 17 00:00:00 2001 From: Markus Schiller Date: Tue, 26 Sep 2023 15:12:15 +0200 Subject: [PATCH] fix: minor fixes, feat: new toc --- README.md | 19 ++-- _config.yml | 7 -- _includes/footer.html | 20 ++-- _layouts/post.html | 111 ++++++++++++----------- _posts/2023-07-13-title-for-champions.md | 2 + _sass/default/_footer.scss | 21 +++++ _sass/functions/_mixins.scss | 40 ++++++++ _sass/functions/_values.scss | 10 +- _sass/layouts/_post.scss | 88 ++++++++++++------ 9 files changed, 206 insertions(+), 112 deletions(-) diff --git a/README.md b/README.md index f5c73cb..7702819 100644 --- a/README.md +++ b/README.md @@ -365,7 +365,7 @@ footer_links: ### Layouts In here you can define the amount of columns used to display all tags/categories/years via the `_config`. -Available values are `1-5`. +Available values are `0-5`. ```yaml layouts: @@ -411,32 +411,32 @@ footer_sidebar: - recentposts # will be displayed last description: enabled: true # default: true - coluns: 2 # default: 2 - if you include a list + columns: 2 # default: 0 - if you include a list categories: enabled: true # default: false count: 100 # default: 100 - columns: 5 # default: 5 + columns: 5 # default: 0 tags: enabled: true # default: false count: 100 # default: 100 - columns: 5 # default: 5 + columns: 5 # default: 0 recentposts: enabled: true # default: true - count: 10 # default: 10 - columsn: 2 # default: 2 + count: 10 # default: 5 + columns: 2 # default: 0 custom_content: enabled: true data: >-

EXTRACONTENT

not really content though...

- columns: 2 # default: 2 - if you include a list + columns: 2 # default: 0 - if you include a list custom_content2: enabled: false data: "

mhm

" - columns: 2 # default: 2 - if you include a list + columns: 2 # default: 0 - if you include a list ``` - +The default of `0` stands for automatic alignment. ### Table of Contents @@ -536,6 +536,7 @@ This theme offers the following Front-Matter: |--------|------------------|-----------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------| | `post` | subtitle | Adds a subtitle to the post (optional) | ---
subtitle: "You're going to love this."
--- | | `post` | display_toc | true or false, shows the toc button on the bottom right (default: true) | ---
display_toc: false
--- | +| `post` | display_toc2 | true or false, shows another toc on the right side permanently (default: false) | ---
display_toc2: true
--- | | `post` | last_modified_at | Add extra meta-data when the post was last modified. It takes the date as you write it like a string. | ---
last_modified_at: 10.09.2023
--- | | `post` | search_keywords | Add extra data to the [search.json](#layout-:-search) file | ---
search_keywords: "words i didnt use in the tags"
--- | | `post` | toTop | true or false, shows the "To the Top" button on the bottom left (default: true) | ---
toTop: false
--- | diff --git a/_config.yml b/_config.yml index 82f279e..de6c919 100644 --- a/_config.yml +++ b/_config.yml @@ -78,16 +78,10 @@ footer_sidebar: enabled: true categories: enabled: true - count: 100 - columns: 2 tags: enabled: true - count: 100 - columns: 4 recentposts: enabled: true - columns: 1 - count: 5 footer_links: - title: Feed @@ -116,7 +110,6 @@ defaults: scope: path: "_posts" values: - toc: yes display_toc: true paginate: 3 diff --git a/_includes/footer.html b/_includes/footer.html index e26016e..0b3e4ee 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -13,19 +13,19 @@