Browse Source

changes to theme to for series intro

pull/2/head
rra 5 years ago
parent
commit
0850da6e4b
  1. 7
      themes/homebrewtheme/templates/category.html
  2. 2
      themes/homebrewtheme/templates/index.html

7
themes/homebrewtheme/templates/category.html

@ -1,5 +1,10 @@
{% extends "index.html" %}
{% block content_title %}
<div id="pertaining">Everything pertaining to {{ category }}</div>
<h2>{{ category }}</h2>
{% for article in articles_page.object_list %}
{% if article.title == 'Introduction' %}
<div class='category-intro'>{{article.content}}</div>
{% endif %}
{% endfor %}
{% endblock %}

2
themes/homebrewtheme/templates/index.html

@ -5,7 +5,7 @@
{% endblock %}
<ol id="post-list">
{% for article in articles_page.object_list %}
{% for article in articles_page.object_list if not article.title | lower == 'introduction' %}
<ul class="post-item"><article class="hentry">
<header>
<div class="index-entry-title"><a href="{{ SITEURL }}/{{ article.url }}" rel="bookmark" title="Permalink to {{ article.title|striptags }}">{{ article.title }}</a></div>

Loading…
Cancel
Save