Skip to content

Commit 922492b

Browse files
committed
add blog-categories and blog-category templates. creativecommons#54
1 parent 7af1892 commit 922492b

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

templates/blog-categories.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{% extends "layout.html" %}
2+
{% from "macros/categories.html" import render_categories %}
3+
{% block title %}{{ this.title }}{% endblock %}
4+
{% block header %}{{ this.title }}{% endblock %}
5+
{% block body %}
6+
<h1>Categories</h1>
7+
{{ render_categories(this) }}
8+
{{ this }}
9+
<hr>
10+
{% endblock %}

templates/blog-category.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{% extends "layout.html" %}
2+
{% from "macros/categories.html" import render_category_list %}
3+
{% block title %}{{ this.parent.title }} - {{ this.name }}{% endblock %}
4+
{% block header %}{{ this.parent.title }}{% endblock %}
5+
{% block body %}
6+
<h1>Category: {{ this.name }}</h1>
7+
{{ render_category_list(this.children) }}
8+
<hr>
9+
<strong><a href="{{ this.parent.path }}">All Categories</a></strong>
10+
{% endblock %}

0 commit comments

Comments
 (0)