diff --git a/config.toml b/config.toml index 058edeb..b6fd94b 100644 --- a/config.toml +++ b/config.toml @@ -1,50 +1,49 @@ -base_url = "https://notes.joostagterhoek.nl" -title = "My statically generated test website" -description = "This is a test website built with Zola. Here I want to try to build a more easy to manage and 'quiet' homepage for my blog, possibly a journal and definitely current programming, scripting and automation projects. Goals are easy access to the content (preferably direct file access), integration with Git and Obsidian and ease of use." -compile_sass = false -minify_html = true +base_url = "https://not-matthias.github.io/apollo/" +title = "not-matthias" +description = "This is an example description" +build_search_index = false generate_feeds = true -default_language = "en" - -taxonomies = [ - {name = "tags", feed = true}, -] +compile_sass = true +minify_html = true +taxonomies = [{ name = "tags" }] [markdown] -render_emoji = true -external_links_target_blank = true -smart_punctuation = true -highlight_code = false -highlight_theme = "gruvbox-dark" - -[slugify] -paths = "on" -taxonomies = "on" -anchors = "on" - -[link_checker] -internal_level = "warn" +highlight_code = true +highlight_theme = "ayu-light" [extra] -author = "Joost Agterhoek" -display_author = true +toc = true +use_cdn = false +favicon = "/icon/favicon.png" +theme = "toggle" # light, dark, auto, toggle +comment = false +fancy_code = true +dynamic_note = true # a note that can be toggled +mathjax = true +mathjax_dollar_inline_enable = true +repo_url = "https://github.com/not-matthias/apollo/tree/main/content" -favicon = "favicon.ico" -image = "" - -default_theme = "light" -list_pages = false -twitter_card = true - -header_nav = [ - { url = "/", name_en = "/home/", name_fr = "/accueil/" }, - { url = "/about", name_en = "/about/", name_fr = "/concernant/" }, - { url ="/projects", name_en = "/projects/" }, - { url = "/journal", name_en = "/journal/", name_fr = "/journal/" }, - { url = "/blog", name_en = "/blog/", name_fr = "/blog/" } +menu = [ + { name = "/posts", url = "/posts", weight = 1 }, + { name = "/projects", url = "/projects", weight = 2 }, + { name = "/about", url = "/about", weight = 3 }, + { name = "/tags", url = "/tags", weight = 4 }, ] -# Optional footer license text. It will only show, when using footer_content_license. -#footer_content_license = "Creative Commons Attribution 4.0 International" -#footer_content_license_link = "https://creativecommons.org/licenses/by/4.0/" +socials = [ + { name = "twitter", url = "https://twitter.com/not_matthias", icon = "twitter" }, + { name = "github", url = "https://github.com/not-matthias/", icon = "github" }, +] +custom_css = [] + +[extra.analytics] +enabled = false + +[extra.analytics.goatcounter] +user = "your_user" +host = "example.com" # default= goatcounter.com + +[extra.analytics.umami] +website_id = "43929cd1-1e83...." +host_url = "https://stats.mywebsite.com" # default: https://analytics.eu.umami.is diff --git a/content/_index.md b/content/_index.md index 03edb3d..1813f32 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,30 +1,8 @@ +++ +title= "Apollo Theme" +template = "homepage.html" +++ -## Overview -This is a test website built with Zola. Here I want to try to build a more easy to manage and 'quiet' homepage for my blog, possibly a journal and definitely current programming, scripting and automation projects. Goals are easy access to the content (preferably direct file access), integration with Git and Obsidian and ease of use. +Thanks for checking out this theme! -## Blog Posts - -Here are some highlighted blog posts, check out all my posts [here](./blog/): - -- 🐛 [I want to learn malware analysis (again)](./blog/practical-malware-analysis) -- 🔥 [testing](./blog/testing) - -## Tags - -Browse my posts by tags: - -- [test](./tags/test) -- [malware analysis](./tags/malware-analysis) -- [programming](./tags/programming) -- [reverse engineering](./tags/reverse-engineering) - -## Find me online - -Stay in touch! - -- Email: [mail@joostagterhoek.nl](mailto:mail@joostagterhoek.nl) -- Code Repositories: [self-hosted Gitea](https://code.joostagterhoek.nl/joost) -- Socials: [my Pleroma-instance](https://social.joostagterhoek.nl/joost) - +Checkout all the [options you can configure](./posts/configuration) and the [example pages](./tags/example/). diff --git a/content/about.md b/content/about.md index c67ca88..1f0623e 100644 --- a/content/about.md +++ b/content/about.md @@ -1,7 +1,4 @@ +++ title = "About" +path = "about" +++ - -Just a test website (for now). Check out my [main website](https://joostagterhoek.nl) in the meantime. - -TESTING. diff --git a/content/projects/_index.md b/content/projects/_index.md index d222541..9b00a12 100644 --- a/content/projects/_index.md +++ b/content/projects/_index.md @@ -1,11 +1,5 @@ +++ -paginate_by = 15 -title = "All working projects" -sort_by = "date" +title = "Projects" +sort_by = "weight" +template = "cards.html" +++ - -> List of all *[tags](/tags)* - -_Testing_ - -* todo: work out an HTML template (like blog with `blog-page.html`. Something that for example shows a project title, a main image and a brief description, along with the latest date. diff --git a/templates/base.html b/templates/base.html index 7acec3b..7e3a8a6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,18 +1,26 @@ +{% import "macros/macros.html" as post_macros %} + - - - {% include "head.html" %} - + + + +{% include "partials/header.html" %} + -
- {% include "header.html" %} -
-
- {% block content %} - {% endblock content %} -
- +
+ {% include "partials/nav.html" %} + + {# Post page is the default #} + {% block main_content %} + Nothing here?! + {% endblock main_content %} + + {% if config.extra.comment | default(value=false) %} +
+ {% include "_giscus_script.html" %} + {% endif %} + +
- \ No newline at end of file + + diff --git a/templates/index.html b/templates/index.html index 86a1c83..d0dfc01 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,29 +1 @@ -{% extends "base.html" %} - -{% block content %} -{{ section.content | safe }} - -{% if config.extra.list_pages %} - -{% if paginator %} -{% set pages = paginator.pages %} -{% else %} -{% set pages = section.pages %} -{% endif %} - - - -{% if paginator %} -
{% if paginator.previous %}   <{% endif %}   {{ paginator.current_index }} / {{ paginator.number_pagers }}   {% if paginator.next %}>   {% endif %}
-{% endif %} - -{% endif %} -{% endblock content %} +{% extends "section.html" %} diff --git a/templates/page.html b/templates/page.html index e217071..9bf0abb 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,42 +1,5 @@ {% extends "base.html" %} -{% block content %} -

{{ page.title }}

- -{% if page.toc and page.extra.toc %} -

Table of contents

- -{% endif %} - -{{ page.content | safe }} - -

-{% if page.taxonomies.tags %} -{% for tag in page.taxonomies.tags %} -/{{ tag }}/ -{% endfor %} -{% endif %} -

-{% endblock content %} \ No newline at end of file +{% block main_content %} + {{ post_macros::content(page=page)}} +{% endblock main_content %} \ No newline at end of file diff --git a/templates/section.html b/templates/section.html index 0ccdb10..ac18862 100644 --- a/templates/section.html +++ b/templates/section.html @@ -1,25 +1,39 @@ {% extends "base.html" %} -{% block content %} -

{{ section.title }}

+{% block main_content %} + {% if section.extra.section_path -%} + {% set section = get_section(path=section.extra.section_path) %} + {% endif -%} -{{ section.content | safe }} + {% block title %} + {{ post_macros::page_header(title=section.title) }} + {% endblock title %} -{% if paginator %} -{% set pages = paginator.pages %} -{% else %} -{% set pages = section.pages %} -{% endif %} + {% block post_list %} +
+ {%- if paginator %} + {%- set show_pages = paginator.pages -%} + {% else %} + {%- set show_pages = section.pages -%} + {% endif -%} - + {{ post_macros::list_posts(pages=show_pages) }} +
+ {% endblock post_list %} -{% if paginator %} -
{% if paginator.previous %}   <{% endif %}   {{ paginator.current_index }} / {{ paginator.number_pagers }}   {% if paginator.next %}>   {% endif %}
-{% endif %} -{% endblock content %} \ No newline at end of file + {% if paginator %} + + {% endif %} +{% endblock main_content %} \ No newline at end of file diff --git a/theme.toml b/theme.toml index 0a8d084..3b2ab76 100644 --- a/theme.toml +++ b/theme.toml @@ -1,13 +1,16 @@ -name = "anemone" -description = "A minimalist Zola theme that prioritizes clean CSS and avoids heavy JavaScript. Enjoy a seamless user experience with lightning-fast load times. Let your content take center stage in a clutter-free, elegant design that enhances readability. Responsive and efficient, anemone brings focus to your ideas." +name = "apollo" +description = "Modern and minimalistic blog theme" +min_version = "0.14.0" license = "MIT" -homepage = "https://github.com/Speyll/anemone" -min_version = "0.4.0" -demo = "https://anemone.pages.dev" +homepage = "https://github.com/not-matthias/apollo" +demo = "https://not-matthias.github.io/apollo" +# Any variable there can be overridden in the end user `config.toml` +# You don't need to prefix variables by the theme name but as this will +# be merged with user data, some kind of prefix or nesting is preferable +# Use snake_casing to be consistent with the rest of Zola [extra] - [author] -name = "Speyll" -homepage = "https://speyllsite.pages.dev/" \ No newline at end of file +name = "not-matthias" +homepage = "https://github.com/not-matthias"