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" base_url = "https://not-matthias.github.io/apollo/"
title = "My statically generated test website" title = "not-matthias"
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." description = "This is an example description"
compile_sass = false build_search_index = false
minify_html = true
generate_feeds = true generate_feeds = true
default_language = "en" compile_sass = true
minify_html = true
taxonomies = [ taxonomies = [{ name = "tags" }]
{name = "tags", feed = true},
]
[markdown] [markdown]
render_emoji = true highlight_code = true
external_links_target_blank = true highlight_theme = "ayu-light"
smart_punctuation = true
highlight_code = false
highlight_theme = "gruvbox-dark"
[slugify]
paths = "on"
taxonomies = "on"
anchors = "on"
[link_checker]
internal_level = "warn"
[extra] [extra]
author = "Joost Agterhoek" toc = true
display_author = 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" menu = [
image = "" { name = "/posts", url = "/posts", weight = 1 },
{ name = "/projects", url = "/projects", weight = 2 },
default_theme = "light" { name = "/about", url = "/about", weight = 3 },
list_pages = false { name = "/tags", url = "/tags", weight = 4 },
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/" }
] ]
# Optional footer license text. It will only show, when using footer_content_license. socials = [
#footer_content_license = "Creative Commons Attribution 4.0 International" { name = "twitter", url = "https://twitter.com/not_matthias", icon = "twitter" },
#footer_content_license_link = "https://creativecommons.org/licenses/by/4.0/" { 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 Thanks for checking out this theme!
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.
## 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" 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 = "Projects"
title = "All working projects" sort_by = "weight"
sort_by = "date" 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> <!DOCTYPE html>
<html lang="{% if page %}{{ page.lang }}{% else %}{{ config.default_language }}{% endif %}"> <html lang="en">
<head> <html class="dark light">
{% include "head.html" %}
</head> {% include "partials/header.html" %}
<body> <body>
<header> <div class="content">
{% include "header.html" %} {% include "partials/nav.html" %}
</header>
<main> {# Post page is the default #}
{% block content %} {% block main_content %}
{% endblock content %} Nothing here?!
</main> {% endblock main_content %}
<footer>
{% include "footer.html" %} {% if config.extra.comment | default(value=false) %}
</footer> <div class="giscus"></div>
{% include "_giscus_script.html" %}
{% endif %}
</div>
</body> </body>
</html> </html>

View File

@ -1,29 +1 @@
{% extends "base.html" %} {% extends "section.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 %}

View File

@ -1,42 +1,5 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block main_content %}
<h1>{{ page.title }}</h1> {{ post_macros::content(page=page)}}
{% endblock main_content %}
{% 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 %}

View File

@ -1,25 +1,39 @@
{% extends "base.html" %} {% extends "base.html" %}
{% block content %} {% block main_content %}
<h1>{{ section.title }}</h1> {% 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 %} {% block post_list %}
{% set pages = paginator.pages %} <main class="list">
{%- if paginator %}
{%- set show_pages = paginator.pages -%}
{% else %} {% else %}
{% set pages = section.pages %} {%- set show_pages = section.pages -%}
{% endif %} {% endif -%}
<ul class="title-list"> {{ post_macros::list_posts(pages=show_pages) }}
{% for page in pages %} </main>
<li> {% endblock post_list %}
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
</li>
{% endfor %}
</ul>
{% if paginator %} {% 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> <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 %} {% endif %}
{% endblock content %}
{% 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" name = "apollo"
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." description = "Modern and minimalistic blog theme"
min_version = "0.14.0"
license = "MIT" license = "MIT"
homepage = "https://github.com/Speyll/anemone" homepage = "https://github.com/not-matthias/apollo"
min_version = "0.4.0" demo = "https://not-matthias.github.io/apollo"
demo = "https://anemone.pages.dev"
# 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] [extra]
[author] [author]
name = "Speyll" name = "not-matthias"
homepage = "https://speyllsite.pages.dev/" homepage = "https://github.com/not-matthias"