Skip to content

Commit 75a41cb

Browse files
committed
make title, header, and 'All Authors' link dynamic. creativecommons#62
1 parent 8f11d95 commit 75a41cb

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

templates/author.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{% extends "layout.html" %}
22
{% from "macros/posts.html" import render_posts %}
3-
{% block title %}{{ this.name }}{% endblock %}
4-
{% block header %}Archive: CC Technical Blog (2007-2014){% endblock %}
3+
{% block title %}{{ this.parent.parent.children.get('entries').title + ' - ' + this.name }}{% endblock %}
4+
{% block header %}{{ this.parent.parent.children.get('entries').title }}{% endblock %}
55
{% block body %}
66
<h2>Posts by {{ this.name }}</h2>
77
{{ render_posts(this.children) }}
88
<hr>
9-
<strong><a href="/blog/authors">All Authors</a></strong>
9+
<strong><a href="{{ this.parent.path }}">All Authors</a></strong>
1010
{% endblock %}

templates/authors.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{% extends "layout.html" %}
22
{% from "macros/authors.html" import render_authors %}
3-
{% block title %}Authors{% endblock %}
4-
{% block header %}Archive: CC Technical Blog (2007-2014){% endblock %}
3+
{% block title %}{{ this.parent.children.get('entries').title + ' - Authors' }}{% endblock %}
4+
{% block header %}{{ this.parent.children.get('entries').title }}{% endblock %}
55
{% block body %}
66
<h2>Authors</h2>
7-
{{ render_authors() }}
7+
{{ render_authors(this) }}
88
{% endblock %}

0 commit comments

Comments
 (0)