From 1acbbeddda3905ea0a85f0b22dee6082855406a1 Mon Sep 17 00:00:00 2001 From: creberust Date: Fri, 21 Mar 2025 21:28:19 +0100 Subject: [PATCH] test: theme `linkita` --- .gitmodules | 3 + config.toml | 116 +++++++++++++++++++++++++++++++++++++-- content/blog/_index.md | 8 +-- content/blog/first.md | 6 -- content/pages/_index.md | 4 ++ content/pages/about.md | 5 ++ content/pages/archive.md | 8 +++ templates/base.html | 18 ------ templates/blog-page.html | 9 --- templates/blog.html | 13 ----- templates/footer.html | 25 --------- templates/index.html | 8 --- themes/linkita | 1 + 13 files changed, 137 insertions(+), 87 deletions(-) create mode 100644 .gitmodules delete mode 100644 content/blog/first.md create mode 100644 content/pages/_index.md create mode 100644 content/pages/about.md create mode 100644 content/pages/archive.md delete mode 100644 templates/base.html delete mode 100644 templates/blog-page.html delete mode 100644 templates/blog.html delete mode 100644 templates/footer.html delete mode 100644 templates/index.html create mode 160000 themes/linkita diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..f27b4bd --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "themes/linkita"] + path = themes/linkita + url = https://codeberg.org/salif/linkita.git diff --git a/config.toml b/config.toml index 65bff82..5a0ad12 100644 --- a/config.toml +++ b/config.toml @@ -5,10 +5,20 @@ base_url = "https://creberust.github.io/" title = "Creberust Blog" description = "Personal Blog made with love for Rustaceans" -author = "Benjamin \"creberust\" Peter" +# The default language; used in feeds. +default_language = "en" -# Whether to automatically compile all Sass files in the sass directory -compile_sass = true +# Set the theme +theme = "linkita" + +# Author of the site +author = "creberust" + +# Automatically generate a feed. (type: boolean;) +generate_feeds = true + +# The filenames to use for the feeds. (type: array of strings;) +feed_filenames = ["rss.xml"] # Whether to build a search index to be used later on by a JavaScript library build_search_index = true @@ -19,4 +29,102 @@ build_search_index = true highlight_code = true [extra] -# Put all your custom variables here +# Enable KaTeX math formula support globally. +# (type: boolean; default value: `false`;) +math = true + +# Enable Mermaid support globally. +# (type: boolean; default value: `false`;) +mermaid = true + +# Enable comments globally. +# (type: boolean; default value: `false`;) +comment = false + +# Title separator. +# (type: string; default value: ` | `;) +title_separator = " | " + +# The top menu. See `extra.menus`. +# (type: string; no default value;) +header_menu_name = "menu_name" + +# (type: boolean; default value: false;) +disable_default_favicon = false + +# (type: boolean; default value: false;) +disable_javascript = false + +# (type: boolean; default value: false;) +use_cdn = false + +# You can reorder the strings, remove them, or replace them. +# For example, you can replace `site_title` with `home_button`. +# (type: array of strings; default value: `["site_title", "theme_button", "search_button", "translations_button"]`;) +# header_buttons = [] + +# Valid values: +# `date`, `date_on_page`, `date_on_paginator`, +# `date_updated, `date_updated_on_page, `date_updated_on_paginator`, +# `reading_time, `reading_time_on_page, `reading_time_on_paginator`, +# `word_count`, `word_count_on_page`, `word_count_on_paginator`, +# `authors`, `authors_on_page`, `authors_on_paginator`, +# `tags`, `tags_on_page`, `tags_on_paginator`. +# (type: array of strings; default value: `["date", "date_updated_on_page", "reading_time", "authors"]`;) +# page_info = [] + +[extra.style] +# The custom background color. (type: string;) +bg_color = "#f4f4f5" +# The custom background color in dark mode. (type: string;) +bg_dark_color = "#18181b" + +# Enable header blur. (type: boolean;) +header_blur = false + +# The custom header color, only available +# when `header_blur` is false. (type: string;) +header_color = "#e4e4e7" +# The custom header color in dark mode, only available +# when `header_blur` is false. (type: string;) +header_dark_color = "#27272a" + +[extra.menus] +menu_name = [ + { url = "$BASE_URL/pages/archive/", name = "Archive" }, + { url = "$BASE_URL/categories", name = "Categories" }, + { url = "$BASE_URL/tags/", name = "Tags" }, + { url = "$BASE_URL/pages/about/", name = "About" }, +] + +[extra.footer] +# Replace with the correct year. +# (type: number; default value: current year;) +since = 2025 + +# Replace with the url of the license you want. +# (type: string; no default value; supports `$BASE_URL`;) +license_url = "https://creativecommons.org/licenses/by-sa/4.0/deed" + +# Replace `Your Name` with your name and `CC BY-SA 4.0` with the name of the license you want +copyright = "© $YEAR Benjamin \"creberust\" Peter | [CC BY-SA 4.0]($LICENSE_URL)" + +# (type: string; no default value; supports `$BASE_URL`;) +# privacy_policy_url = "$BASE_URL/privacy-policy/" + +# (type: string; no default value; supports `$BASE_URL`;) +# terms_of_service_url = "$BASE_URL/terms-of-service/" + +# (type: string; no default value; supports `$BASE_URL`;) +# search_page_url = "$BASE_URL/search/" + +[extra.profiles] + +[extra.profiles.creberust] +name = "Creberust" +bio = "Hello World!" +email = "bpeter@tuta.com" +social = [ + { name = "github", url = "https://github.com/creberust" }, + { name = "bluesky", url = "https://bsky.app/profile/bpeter98.bsky.social" }, +] diff --git a/content/blog/_index.md b/content/blog/_index.md index ca5be15..43fc6e5 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -1,6 +1,6 @@ +++ -title = "List of blog posts" sort_by = "date" -template = "blog.html" -page_template = "blog-page.html" -+++ \ No newline at end of file +paginate_by = 5 +[extra] +profile = "creberust" ++++ diff --git a/content/blog/first.md b/content/blog/first.md deleted file mode 100644 index b7d60a1..0000000 --- a/content/blog/first.md +++ /dev/null @@ -1,6 +0,0 @@ -+++ -title = "My first post" -date = 2024-03-16 -+++ - -This is my first example post. diff --git a/content/pages/_index.md b/content/pages/_index.md new file mode 100644 index 0000000..48c7335 --- /dev/null +++ b/content/pages/_index.md @@ -0,0 +1,4 @@ ++++ +render = false +page_template = "pages.html" ++++ diff --git a/content/pages/about.md b/content/pages/about.md new file mode 100644 index 0000000..907b58c --- /dev/null +++ b/content/pages/about.md @@ -0,0 +1,5 @@ ++++ +title = "About me" +# description = "" +# path = "about" ++++ diff --git a/content/pages/archive.md b/content/pages/archive.md new file mode 100644 index 0000000..3f7c225 --- /dev/null +++ b/content/pages/archive.md @@ -0,0 +1,8 @@ ++++ +title = "Archive" +# description = "" +# path = "archive" +template = "archive.html" +[extra] +section = "_index.md" ++++ diff --git a/templates/base.html b/templates/base.html deleted file mode 100644 index 05a4a62..0000000 --- a/templates/base.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Creberust Blog - - - -
-
- {% block content %} {% endblock %} -
-
- {% block footer %} - {% include "footer.html" %} - {% endblock %} - - \ No newline at end of file diff --git a/templates/blog-page.html b/templates/blog-page.html deleted file mode 100644 index 4072083..0000000 --- a/templates/blog-page.html +++ /dev/null @@ -1,9 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -

- {{ page.title }} -

-

{{ page.date }}

-{{ page.content | safe }} -{% endblock content %} \ No newline at end of file diff --git a/templates/blog.html b/templates/blog.html deleted file mode 100644 index 67bacc9..0000000 --- a/templates/blog.html +++ /dev/null @@ -1,13 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -

- {{ section.title }} -

- - -{%endblock content %} \ No newline at end of file diff --git a/templates/footer.html b/templates/footer.html deleted file mode 100644 index 21e8450..0000000 --- a/templates/footer.html +++ /dev/null @@ -1,25 +0,0 @@ - \ No newline at end of file diff --git a/templates/index.html b/templates/index.html deleted file mode 100644 index 178d8e9..0000000 --- a/templates/index.html +++ /dev/null @@ -1,8 +0,0 @@ -{% extends "base.html" %} - -{% block content %} -

- This is my blog made with Zola. -

-

Click here to see my posts.

-{% endblock content %} diff --git a/themes/linkita b/themes/linkita new file mode 160000 index 0000000..e04c5a0 --- /dev/null +++ b/themes/linkita @@ -0,0 +1 @@ +Subproject commit e04c5a0af1ccfc084b3393c3c983bbe8ee0b9a24