1
0
Fork 0

Factor out list.html and create a first a bit usable version of the theme

Yes, a double commit. Also, yes, I was inspired by example themes.
pub/python-goto
LEdoian 3 years ago
parent a04fd8b2a5
commit 3d6dc320a4

@ -1,5 +1,3 @@
{% extends 'base.html' %} {% extends 'list.html' %}
{% set page_title = "TODO" %} {% set page_title = "Archive" %}
{% block content %} {% set list_title = "Archive" %}
{# TODO! #}
{% endblock content %}

@ -1,6 +1,7 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% set page_title = "TODO" %} {% set page_title = article.title %}
{% block content %} {% block content %}
{# TODO! #} <h1>{{ article.title }}</h1>
{# TODO: more details here #}
{{ article.content }}
{% endblock content %} {% endblock content %}

@ -1,6 +1,3 @@
{% extends 'list.html' %}
{% extends 'base.html' %} {% set page_title = "Author: " + author %}
{% set page_title = "TODO" %} {% set list_title = "All articles by " + author %}
{% block content %}
{# TODO! #}
{% endblock content %}

@ -1,4 +1,3 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% set page_title = "TODO" %} {% set page_title = "TODO" %}
{% block content %} {% block content %}

@ -1,11 +1,3 @@
{% extends 'base.html' %} {% extends 'list.html' %}
{% set page_title = "Category: " + category.name %} {% set page_title = "Category: " + category.name %}
{% block content %} {% set list_title = "Category: " + category.name %}
<h1>Category: {{ category.name }}</h1>
<ul>
{% for article in articles %}
<li><a href="{{ article.url }}">{{ article.title }}</a>
{% endfor %}
</ul>
{% endblock content %}

@ -0,0 +1,11 @@
{% extends 'base.html' %}
{% block content %}
<h1>{{ list_title }}</h1>
<ul> {# TODO: rly ul and not list of divs? #}
{% for article in articles %}
{# TODO: More pretty #}
<li><a href="{{ SITEURL }}/{{ article.url }}">{{ article.title }}</a>
{% endfor %}
</ul>
{% endblock content %}

@ -1,6 +1,5 @@
{% extends 'base.html' %} {% extends 'list.html' %}
{% set page_title = "TODO" %} {# FIXME: This is too hacky #}
{% block content %} {% set page_title = "Archive: " + period %}
{# TODO! #} {% set list_title = "Archive: " + period %}
{% endblock content %}

@ -1,6 +1,4 @@
{% extends 'base.html' %} {% extends 'list.html' %}
{% set page_title = "TODO" %} {% set page_title = "Tag: " + tag.name %}
{% block content %} {% set list_title = "Articles tagged with " + tag.name %}
{# TODO! #}
{% endblock content %}

Loading…
Cancel
Save