updated files for apollo theme

This commit is contained in:
Joost Agterhoek 2024-09-11 21:17:26 +02:00
parent 2643f0590f
commit ba7d2c9347
9 changed files with 119 additions and 191 deletions

View File

@ -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

View File

@ -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/).

View File

@ -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.

View File

@ -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.

View File

@ -1,18 +1,26 @@
{% import "macros/macros.html" as post_macros %}
<!DOCTYPE html>
<html lang="{% if page %}{{ page.lang }}{% else %}{{ config.default_language }}{% endif %}">
<head>
{% include "head.html" %}
</head>
<html lang="en">
<html class="dark light">
{% include "partials/header.html" %}
<body>
<header>
{% include "header.html" %}
</header>
<main>
{% block content %}
{% endblock content %}
</main>
<footer>
{% include "footer.html" %}
</footer>
<div class="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) %}
<div class="giscus"></div>
{% include "_giscus_script.html" %}
{% endif %}
</div>
</body>
</html>
</html>

View File

@ -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 %}
<ul class="titleList">
{% for page in pages %}
<li>
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
<br />
{{ page.description }}
</li>
{% endfor %}
</ul>
{% if paginator %}
<div class="metaData">{% if paginator.previous %}<a href="{{ paginator.first }}"></a> &nbsp <a href="{{ paginator.previous }}"><</a>{% endif %} &nbsp {{ paginator.current_index }} / {{ paginator.number_pagers }} &nbsp {% if paginator.next %}<a href="{{ paginator.next }}">></a> &nbsp <a href="{{ paginator.last }}"></a>{% endif %}</div>
{% endif %}
{% endif %}
{% endblock content %}
{% extends "section.html" %}

View File

@ -1,42 +1,5 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ page.title }}</h1>
{% if page.toc and page.extra.toc %}
<h2>Table of contents</h2>
<ul>
{% for h1 in page.toc %}
<li>
<a href="{{ h1.permalink | safe }}">{{ h1.title }}</a>
{% if h1.children %}
<ul>
{% for h2 in h1.children %}
<li>
<a href="{{ h2.permalink | safe }}">{{ h2.title }}</a>
<ul>
{% for h3 in h2.children %}
<li>
<a href="{{ h3.permalink | safe }}">{{ h3.title }}</a>
</li>
{% endfor %}
</ul>
</li>
{% endfor %}
</ul>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{{ page.content | safe }}
<p class="tags-data">
{% if page.taxonomies.tags %}
{% for tag in page.taxonomies.tags %}
<a href="/tags/{{ tag | slugify }}">&#47;{{ tag }}&#47;</a>
{% endfor %}
{% endif %}
</p>
{% endblock content %}
{% block main_content %}
{{ post_macros::content(page=page)}}
{% endblock main_content %}

View File

@ -1,25 +1,39 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ section.title }}</h1>
{% 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 %}
<main class="list">
{%- if paginator %}
{%- set show_pages = paginator.pages -%}
{% else %}
{%- set show_pages = section.pages -%}
{% endif -%}
<ul class="title-list">
{% for page in pages %}
<li>
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
</li>
{% endfor %}
</ul>
{{ post_macros::list_posts(pages=show_pages) }}
</main>
{% endblock post_list %}
{% if paginator %}
<div class="accent-data">{% if paginator.previous %}<a href="{{ paginator.first }}"></a> &nbsp <a href="{{ paginator.previous }}"><</a>{% endif %} &nbsp {{ paginator.current_index }} / {{ paginator.number_pagers }} &nbsp {% if paginator.next %}<a href="{{ paginator.next }}">></a> &nbsp <a href="{{ paginator.last }}"></a>{% endif %}</div>
{% endif %}
{% endblock content %}
{% if paginator %}
<ul class="pagination">
{% if paginator.previous %}
<span class="page-item page-prev">
<a href={{ paginator.previous }} class="page-link" aria-label="Previous"><span aria-hidden="true">← Prev</span></a>
</span>
{% endif %}
{% if paginator.next %}
<span class="page-item page-next">
<a href={{ paginator.next }} class="page-link" aria-label="Next"><span aria-hidden="true">Next →</span></a>
</span>
{% endif %}
</ul>
{% endif %}
{% endblock main_content %}

View File

@ -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/"
name = "not-matthias"
homepage = "https://github.com/not-matthias"