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
parent
a04fd8b2a5
commit
3d6dc320a4
@ -1,5 +1,3 @@
|
||||
{% extends 'base.html' %}
|
||||
{% set page_title = "TODO" %}
|
||||
{% block content %}
|
||||
{# TODO! #}
|
||||
{% endblock content %}
|
||||
{% extends 'list.html' %}
|
||||
{% set page_title = "Archive" %}
|
||||
{% set list_title = "Archive" %}
|
||||
|
@ -1,6 +1,7 @@
|
||||
|
||||
{% extends 'base.html' %}
|
||||
{% set page_title = "TODO" %}
|
||||
{% set page_title = article.title %}
|
||||
{% block content %}
|
||||
{# TODO! #}
|
||||
<h1>{{ article.title }}</h1>
|
||||
{# TODO: more details here #}
|
||||
{{ article.content }}
|
||||
{% endblock content %}
|
||||
|
@ -1,6 +1,3 @@
|
||||
|
||||
{% extends 'base.html' %}
|
||||
{% set page_title = "TODO" %}
|
||||
{% block content %}
|
||||
{# TODO! #}
|
||||
{% endblock content %}
|
||||
{% extends 'list.html' %}
|
||||
{% set page_title = "Author: " + author %}
|
||||
{% set list_title = "All articles by " + author %}
|
||||
|
@ -1,11 +1,3 @@
|
||||
{% extends 'base.html' %}
|
||||
{% extends 'list.html' %}
|
||||
{% set page_title = "Category: " + category.name %}
|
||||
{% block content %}
|
||||
<h1>Category: {{ category.name }}</h1>
|
||||
<ul>
|
||||
{% for article in articles %}
|
||||
<li><a href="{{ article.url }}">{{ article.title }}</a>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endblock content %}
|
||||
|
||||
{% set list_title = "Category: " + category.name %}
|
||||
|
@ -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' %}
|
||||
{% set page_title = "TODO" %}
|
||||
{% block content %}
|
||||
{# TODO! #}
|
||||
{% endblock content %}
|
||||
{% extends 'list.html' %}
|
||||
{# FIXME: This is too hacky #}
|
||||
{% set page_title = "Archive: " + period %}
|
||||
{% set list_title = "Archive: " + period %}
|
||||
|
||||
|
@ -1,6 +1,4 @@
|
||||
{% extends 'base.html' %}
|
||||
{% set page_title = "TODO" %}
|
||||
{% block content %}
|
||||
{# TODO! #}
|
||||
{% endblock content %}
|
||||
{% extends 'list.html' %}
|
||||
{% set page_title = "Tag: " + tag.name %}
|
||||
{% set list_title = "Articles tagged with " + tag.name %}
|
||||
|
||||
|
Loading…
Reference in New Issue