diff options
| author | Arne Rief <riearn@proton.me> | 2026-01-09 12:24:05 +0100 |
|---|---|---|
| committer | Arne Rief <riearn@proton.me> | 2026-01-09 12:24:05 +0100 |
| commit | f8541ef965ca22e746b523eb418e47cb4f78f2d8 (patch) | |
| tree | 49e1540ed42595a44196817eadf97337587a2aea | |
| parent | 038054b8206a9c25e84adeb0f0f355abd22d6143 (diff) | |
Upgrade to new template system from Hugo v0.146.0
| -rw-r--r-- | README.md | 6 | ||||
| -rw-r--r-- | assets/css/main.css | 2 | ||||
| -rw-r--r-- | assets/css/post-card.css | 3 | ||||
| -rw-r--r-- | layouts/_partials/footer.html (renamed from layouts/partials/footer.html) | 0 | ||||
| -rw-r--r-- | layouts/_partials/head/css.html (renamed from layouts/partials/head/css.html) | 0 | ||||
| -rw-r--r-- | layouts/_partials/head/js.html (renamed from layouts/partials/head/js.html) | 0 | ||||
| -rw-r--r-- | layouts/_partials/head/meta.html (renamed from layouts/partials/head/meta.html) | 0 | ||||
| -rw-r--r-- | layouts/_partials/head/seo.html (renamed from layouts/partials/head/seo.html) | 0 | ||||
| -rw-r--r-- | layouts/_partials/header.html (renamed from layouts/partials/header.html) | 0 | ||||
| -rw-r--r-- | layouts/_partials/list/pagination.html (renamed from layouts/partials/list/pagination.html) | 0 | ||||
| -rw-r--r-- | layouts/_partials/list/post-card.html (renamed from layouts/partials/list/post-card.html) | 0 | ||||
| -rw-r--r-- | layouts/_partials/list/recent-posts.html (renamed from layouts/partials/list/recent-posts.html) | 0 | ||||
| -rw-r--r-- | layouts/_partials/navmenu.html (renamed from layouts/partials/navmenu.html) | 0 | ||||
| -rw-r--r-- | layouts/_partials/select-language.html (renamed from layouts/partials/select-language.html) | 0 | ||||
| -rw-r--r-- | layouts/_partials/select-theme.html (renamed from layouts/partials/select-theme.html) | 0 | ||||
| -rw-r--r-- | layouts/_partials/single/next-prev.html (renamed from layouts/partials/single/next-prev.html) | 4 | ||||
| -rw-r--r-- | layouts/_partials/single/tags.html (renamed from layouts/partials/single/tags.html) | 0 | ||||
| -rw-r--r-- | layouts/all-posts.html (renamed from layouts/_default/all-posts.html) | 0 | ||||
| -rw-r--r-- | layouts/baseof.html (renamed from layouts/_default/baseof.html) | 0 | ||||
| -rw-r--r-- | layouts/home.html (renamed from layouts/_default/home.html) | 0 | ||||
| -rw-r--r-- | layouts/list.html (renamed from layouts/_default/list.html) | 0 | ||||
| -rw-r--r-- | layouts/search.html (renamed from layouts/_default/search.html) | 0 | ||||
| -rw-r--r-- | layouts/single.html (renamed from layouts/_default/single.html) | 0 |
23 files changed, 7 insertions, 8 deletions
@@ -59,10 +59,10 @@ Editing the theme is simple: you only have to recreate the path and file that yo Here are three examples how to edit different aspects of the theme: ### Editing the Styling -Let's say you want to make changes to the stylesheet: in your project, create `assets/css/main.css`, then copy the CSS rules from the theme's stylesheet and add new rules or edit the existing ones for the changes you would like to have. +Let's say you want to style your footer differently: in your project, create `assets/css/footer.css`, then copy the CSS rules from the theme's correspondign stylesheet and add new rules or edit the existing ones for the changes you would like to have. ### Editing the HTML -You would like to display information like reading time and word count for each post. For this you will have to create `layouts/_default/single.html` in your project, then copy the content of the corresponding file from the theme into your own file and add the HTML and Go code for displaying this information. A block for displaying reading time and word count is already implemented in `layouts/partials/list/post-card.html`, here you would have to re-create these directories and this file in your project and simply remove the comment around the block. +You would like to display information like reading time and word count for each post. For this you will have to create `layouts/single.html` in your project, then copy the content of the corresponding file from the theme into your own file and add the HTML and Go code for displaying this information. A block for displaying reading time and word count is already implemented in `layouts/_partials/list/post-card.html`, here you would have to re-create these directories and this file in your project and simply remove the comment around the block. ### Editing JavaScript functions -In case you want to expand the results of the site-wide search, you should first look at `layouts/index.json`. That file generates data about all of your posts in JSON format. The JavaScript function for searching the site then uses that data to find matches with the user's query. So for expanding the data that will be searched by e.g. adding each post's entire content, you would have to add `"content" .Plain` to the dict in the `index.json` file first, then copy `assets/js/main.js` to your project and expand the filtering logic in the function `searchPosts()` accordingly. +In case you want to expand the results of the site-wide search, you should first look at `layouts/index.json`. That file generates data about all of your posts in JSON format. The JavaScript function for searching the site then uses that data to find matches with the user's query. So for expanding the data that will be searched by e.g. adding each post's entire content, you would have to add `"content" .Plain` to the dict in the `index.json` file first, then copy `assets/js/search.js` to your project and expand the filtering logic in the function `searchPosts()` accordingly. diff --git a/assets/css/main.css b/assets/css/main.css index c693221..b531713 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -85,7 +85,7 @@ main { /* Avoid affecting icon imgs in header & footer */ & img { - border-radius: var(--border-radius-default); + border-radius: var(--border-radius-minimal); max-width: 90%; @media (max-width: 768px) { diff --git a/assets/css/post-card.css b/assets/css/post-card.css index c8afb42..687b33a 100644 --- a/assets/css/post-card.css +++ b/assets/css/post-card.css @@ -1,6 +1,6 @@ /* POST CARD */ .post-card { - border: 3px solid var(--bg-special); + border: 2px solid var(--bg-special); border-radius: var(--border-radius-default); margin: 0 auto 1.5rem; padding: 0 var(--gap-default); @@ -62,7 +62,6 @@ } .post-card__section-badge { - border-radius: var(--border-radius-max); color: var(--link-color); font-size: var(--font-size-small); font-weight: bold; diff --git a/layouts/partials/footer.html b/layouts/_partials/footer.html index a0a30b2..a0a30b2 100644 --- a/layouts/partials/footer.html +++ b/layouts/_partials/footer.html diff --git a/layouts/partials/head/css.html b/layouts/_partials/head/css.html index d4e894e..d4e894e 100644 --- a/layouts/partials/head/css.html +++ b/layouts/_partials/head/css.html diff --git a/layouts/partials/head/js.html b/layouts/_partials/head/js.html index 0baf831..0baf831 100644 --- a/layouts/partials/head/js.html +++ b/layouts/_partials/head/js.html diff --git a/layouts/partials/head/meta.html b/layouts/_partials/head/meta.html index f739838..f739838 100644 --- a/layouts/partials/head/meta.html +++ b/layouts/_partials/head/meta.html diff --git a/layouts/partials/head/seo.html b/layouts/_partials/head/seo.html index 628ea2c..628ea2c 100644 --- a/layouts/partials/head/seo.html +++ b/layouts/_partials/head/seo.html diff --git a/layouts/partials/header.html b/layouts/_partials/header.html index f38b6f2..f38b6f2 100644 --- a/layouts/partials/header.html +++ b/layouts/_partials/header.html diff --git a/layouts/partials/list/pagination.html b/layouts/_partials/list/pagination.html index dfe8178..dfe8178 100644 --- a/layouts/partials/list/pagination.html +++ b/layouts/_partials/list/pagination.html diff --git a/layouts/partials/list/post-card.html b/layouts/_partials/list/post-card.html index 6444701..6444701 100644 --- a/layouts/partials/list/post-card.html +++ b/layouts/_partials/list/post-card.html diff --git a/layouts/partials/list/recent-posts.html b/layouts/_partials/list/recent-posts.html index 464e9f7..464e9f7 100644 --- a/layouts/partials/list/recent-posts.html +++ b/layouts/_partials/list/recent-posts.html diff --git a/layouts/partials/navmenu.html b/layouts/_partials/navmenu.html index af0fc2e..af0fc2e 100644 --- a/layouts/partials/navmenu.html +++ b/layouts/_partials/navmenu.html diff --git a/layouts/partials/select-language.html b/layouts/_partials/select-language.html index 6efcc61..6efcc61 100644 --- a/layouts/partials/select-language.html +++ b/layouts/_partials/select-language.html diff --git a/layouts/partials/select-theme.html b/layouts/_partials/select-theme.html index 914eacc..914eacc 100644 --- a/layouts/partials/select-theme.html +++ b/layouts/_partials/select-theme.html diff --git a/layouts/partials/single/next-prev.html b/layouts/_partials/single/next-prev.html index 55a3fff..932fcac 100644 --- a/layouts/partials/single/next-prev.html +++ b/layouts/_partials/single/next-prev.html @@ -20,10 +20,10 @@ <li class="post__navigation-next"> <a href="{{ .RelPermalink }}" class="post__navigation-link" rel="next"> <span class="post__navigation-label"> - {{ lang.Translate "posts_next" | default "Next post:" }} + → {{ lang.Translate "posts_next" | default "Next post:" }} </span> <span class="post__navigation-title"> - {{ .Title }} → + {{ .Title }} </span> </a> </li> diff --git a/layouts/partials/single/tags.html b/layouts/_partials/single/tags.html index 0c10d20..0c10d20 100644 --- a/layouts/partials/single/tags.html +++ b/layouts/_partials/single/tags.html diff --git a/layouts/_default/all-posts.html b/layouts/all-posts.html index 4a94ab6..4a94ab6 100644 --- a/layouts/_default/all-posts.html +++ b/layouts/all-posts.html diff --git a/layouts/_default/baseof.html b/layouts/baseof.html index 99f09d9..99f09d9 100644 --- a/layouts/_default/baseof.html +++ b/layouts/baseof.html diff --git a/layouts/_default/home.html b/layouts/home.html index 880f124..880f124 100644 --- a/layouts/_default/home.html +++ b/layouts/home.html diff --git a/layouts/_default/list.html b/layouts/list.html index f952e56..f952e56 100644 --- a/layouts/_default/list.html +++ b/layouts/list.html diff --git a/layouts/_default/search.html b/layouts/search.html index 6004f2e..6004f2e 100644 --- a/layouts/_default/search.html +++ b/layouts/search.html diff --git a/layouts/_default/single.html b/layouts/single.html index e1728d3..e1728d3 100644 --- a/layouts/_default/single.html +++ b/layouts/single.html |
