Skip to content

Commit 2edf7a9

Browse files
committed
Show blog header in category page (thanks @makkoncept) and show author/category first in page title.
1 parent 6e1edda commit 2edf7a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templates/author.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends "layout.html" %}
22
{% from "macros/posts.html" import render_posts %}
3-
{% block title %}{{ this.parent.parent.children.get('entries').title + ' - ' + this.name }}{% endblock %}
3+
{% block title %}{{ this.name + ' - ' + this.parent.parent.children.get('entries').title }}{% endblock %}
44
{% block header %}{{ this.parent.parent.children.get('entries').title }}{% endblock %}
55
{% block body %}
66
<h2>Posts by {{ this.name }}</h2>

templates/blog-category.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{% extends "layout.html" %}
22
{% from "macros/posts.html" import render_posts %}
3-
{% block title %}{{ this.parent.title }} - {{ this.name }}{% endblock %}
4-
{% block header %}{{ this.parent.title }}{% endblock %}
3+
{% block title %}{{ this.name + ' - ' + this.parent.parent.children.get('entries').title }}{% endblock %}
4+
{% block header %}{{ this.parent.parent.children.get('entries').title }}{% endblock %}
55
{% block body %}
66
<h2>All posts categorized "{{ this.name }}"</h2>
77
{{ render_posts(this.children) }}

0 commit comments

Comments
 (0)