cleanup more, fixing archives
This commit is contained in:
parent
0636c94472
commit
525ad0cd65
@ -28,21 +28,13 @@ This returned me a ``<ebooklib.epub.EpubBook object...>`` , 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.
|
||||
|
||||
|
@ -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.
|
||||
|
@ -110,6 +110,17 @@
|
||||
|
||||
{% block content %}
|
||||
{% endblock %}
|
||||
{% block archives %}
|
||||
<div class="archives">
|
||||
<h2>Archives of {{ SITENAME }}</h2>
|
||||
{% for article in dates %}
|
||||
{% if loop.index > 1 %}
|
||||
<dt>{{ article.locale_date }}</dt>
|
||||
<dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
</div><!-- end #mainContent -->
|
||||
|
||||
@ -176,6 +187,7 @@
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div><!-- end #sidebar -->
|
||||
|
||||
|
||||
</div><!-- end #container -->
|
||||
{% include 'analytics.html' %}
|
||||
|
@ -3,7 +3,7 @@
|
||||
{% block content %}
|
||||
{% if articles %}
|
||||
{% for article in articles %}
|
||||
{% if loop.index <= 3 %}
|
||||
{% if loop.index <= 1 %}
|
||||
<div class="blogItem">
|
||||
<h2><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a></h2>
|
||||
<h3>{{ article.locale_date }}</h3>
|
||||
@ -11,17 +11,6 @@
|
||||
<h3 class="blogMeta">{% if not SUPPRESS_ITEM_CATEGORIES %}Category: <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>{% endif %} | {% if article.tags %} Tags: {% for tag in article.tags %} <span><a href="{{ SITEURL }}/{{ tag.url }}">{{ tag }}</a> {% if not loop.last %} / {% endif %} </span> {% endfor %}</h3>{% endif %}</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<div class="archives">
|
||||
<h2>Archives of {{ SITENAME }}</h2>
|
||||
{% for article in dates %}
|
||||
{% if loop.index > 3 %}
|
||||
<dt>{{ article.locale_date }}</dt>
|
||||
<dd><a href='{{ article.url }}'>{{ article.title }}</a></dd>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
|
||||
|
@ -1,2 +1,4 @@
|
||||
{% extends "index.html" %}
|
||||
{% block title %}{{ SITENAME }} - {{ tag }}{% endblock %}
|
||||
{% block archives %}{% endblock %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user