diff --git a/content/blog/2022-06-01_writing-an-epub-parser-part-1.rst b/content/blog/2022-06-01_writing-an-epub-parser-part-1.rst index 2b2dabe..9c386fd 100644 --- a/content/blog/2022-06-01_writing-an-epub-parser-part-1.rst +++ b/content/blog/2022-06-01_writing-an-epub-parser-part-1.rst @@ -28,21 +28,13 @@ This returned me a ```` , seeing I had an Epub .. code:: python ['add_author', 'add_item', 'add_metadata', 'add_prefix', - 'bindings', - 'direction', - 'get_item_with_href', 'get_item_with_id', 'get_items', - 'get_items_of_media_type', 'get_items_of_type', 'get_metadata', - 'get_template', 'guide', - 'items', - 'language', - 'metadata', - 'namespaces', - 'pages', 'prefixes', - 'reset', - 'set_cover', 'set_direction', 'set_identifier', 'set_language', 'set_template', 'set_title', 'set_unique_metadata', 'spine', - 'templates', 'title', 'toc', - 'uid', - 'version'] + 'bindings', 'direction', 'get_item_with_href', 'get_item_with_id', + 'get_items', 'get_items_of_media_type', 'get_items_of_type', + 'get_metadata', 'get_template', 'guide', + 'items', 'language', 'metadata', 'namespaces', 'pages', 'prefixes', + 'reset', 'set_cover', 'set_direction', 'set_identifier', 'set_language', + 'set_template', 'set_title', 'set_unique_metadata', 'spine', + 'templates', 'title', 'toc', 'uid', 'version'] Of note, the ``get_item_with_X`` entries caught my eye, as well as ``spine``. For my file, ``book.spine`` looks like it gave me a bunch of tuples of ID and a ``"yes"`` string of which I had no Idea what was. I then noticed I had a ``toc`` property, assuming that was a Table of Contents, I printed that out and saw a bunch of ``epub.Link`` objects. This looks like something I could use. diff --git a/content/blog/2023-06-08_netgear-wac104.rst b/content/blog/2023-06-08_netgear-wac104.rst index 8df39b6..7019a0b 100644 --- a/content/blog/2023-06-08_netgear-wac104.rst +++ b/content/blog/2023-06-08_netgear-wac104.rst @@ -10,7 +10,7 @@ I have struggled a lot to get the firmware on, due to the not great interface th The issue is, that it prompts you to change the password, but then when you change it on the page you land on, nothing connects anymore and you can't access the router. -The solution is to click "Set Passwordf" in the Administration menu on the left, and set it there. +The solution is to click "Set Password" in the Administration menu on the left, and set it there. Even though there is a prompt to set the password on every page, that will change other settings too and break things. The router isn't great, and the software is awful so thats why I'm installing OpenWRT anyway. diff --git a/justfile b/justfile index 1724340..ab7c033 100644 --- a/justfile +++ b/justfile @@ -2,3 +2,5 @@ pub: venv/bin/invoke publish +live: + venv/bin/invoke livereload diff --git a/themes/waterspill-en/templates/base.html b/themes/waterspill-en/templates/base.html index f8fc301..069d610 100644 --- a/themes/waterspill-en/templates/base.html +++ b/themes/waterspill-en/templates/base.html @@ -110,6 +110,17 @@ {% block content %} {% endblock %} + {% block archives %} +
+

Archives of {{ SITENAME }}

+ {% for article in dates %} + {% if loop.index > 1 %} +
{{ article.locale_date }}
+
{{ article.title }}
+ {% endif %} + {% endfor %} +
+ {% endblock %} @@ -176,6 +187,7 @@ {% endif %} + {% include 'analytics.html' %} diff --git a/themes/waterspill-en/templates/index.html b/themes/waterspill-en/templates/index.html index bf3547e..6d351ec 100644 --- a/themes/waterspill-en/templates/index.html +++ b/themes/waterspill-en/templates/index.html @@ -3,7 +3,7 @@ {% block content %} {% if articles %} {% for article in articles %} - {% if loop.index <= 3 %} + {% if loop.index <= 1 %}

{{ article.title }}

{{ article.locale_date }}

@@ -11,17 +11,6 @@

{% if not SUPPRESS_ITEM_CATEGORIES %}Category: {{ article.category }}{% endif %} | {% if article.tags %} Tags: {% for tag in article.tags %} {{ tag }} {% if not loop.last %} / {% endif %} {% endfor %}

{% endif %}
{% endif %} {% endfor %} - - -
-

Archives of {{ SITENAME }}

- {% for article in dates %} - {% if loop.index > 3 %} -
{{ article.locale_date }}
-
{{ article.title }}
- {% endif %} - {% endfor %} -
- {% endif %} {% endblock content %} + diff --git a/themes/waterspill-en/templates/tag.html b/themes/waterspill-en/templates/tag.html index 68cdcba..e33255d 100644 --- a/themes/waterspill-en/templates/tag.html +++ b/themes/waterspill-en/templates/tag.html @@ -1,2 +1,4 @@ {% extends "index.html" %} {% block title %}{{ SITENAME }} - {{ tag }}{% endblock %} +{% block archives %}{% endblock %} +