File tree 6 files changed +9
-25
lines changed
content/archives/old-tech-blog/categories
6 files changed +9
-25
lines changed Original file line number Diff line number Diff line change 1
1
_ model: blog-categories
2
2
---
3
- title: Blog Categories : CC Technical Blog (2007-2014)
3
+ title: Archive : CC Technical Blog (2007-2014)
Original file line number Diff line number Diff line change @@ -20,5 +20,3 @@ order_by = -pub_date, title
20
20
[pagination]
21
21
enabled = yes
22
22
per_page = 10
23
-
24
-
Original file line number Diff line number Diff line change 3
3
{% block title %}{{ this.name }}{% endblock %}
4
4
{% block header %}Archive: CC Technical Blog (2007-2014){% endblock %}
5
5
{% block body %}
6
- < h2 > Blog Posts by {{ this.name }}</ h2 >
6
+ < h2 > Posts by {{ this.name }}</ h2 >
7
7
{{ render_blog_list(this.children) }}
8
8
< hr >
9
9
< strong > < a href ="/blog/authors "> All Authors</ a > </ strong >
Original file line number Diff line number Diff line change 1
1
{% extends "layout.html" %}
2
- {% from "macros/categories .html" import render_category_list %}
2
+ {% from "macros/posts .html" import render_posts %}
3
3
{% block title %}{{ this.parent.title }} - {{ this.name }}{% endblock %}
4
4
{% block header %}{{ this.parent.title }}{% endblock %}
5
5
{% block body %}
6
- < h1 > Category: {{ this.name }}</ h1 >
7
- {{ render_category_list (this.children) }}
6
+ < h2 > All posts tagged " {{ this.name }}" </ h2 >
7
+ {{ render_posts (this.children) }}
8
8
< hr >
9
9
< strong > < a href ="{{ this.parent.path }} "> All Categories</ a > </ strong >
10
10
{% endblock %}
Original file line number Diff line number Diff line change 1
1
{% extends "layout.html" %}
2
2
{% from "macros/pagination.html" import render_pagination %}
3
+ {% from "macros/posts.html" import render_posts %}
3
4
{% block title %}{{ this.title }}{% endblock %}
4
5
{% block body %}
5
6
{{ this.description }}
6
- < ul class ="blog-index list-unstyled ">
7
- {% for post in this.pagination.items %}
8
- < li >
9
- < a href ="{{ post|url }} "> {{ post.title }}</ a >
10
- < p class ="text-muted small "> by < a href ="/blog/authors/{{ post.author }} "> {{ post.author }}</ a >
11
- on {{ post.pub_date|dateformat("YYYY-MM-dd") }}</ p >
12
- </ li >
13
- {% endfor %}
14
- </ ul >
15
-
7
+ {{ render_posts(this.pagination.items) }}
16
8
{% if this.pagination.pages > 1 %}
17
9
{{ render_pagination(this.pagination) }}
18
10
{% endif %}
Original file line number Diff line number Diff line change
1
+ {% from "macros/posts.html" import render_posts %}
2
+
1
3
{% macro render_categories(categories) %}
2
4
< ul >
3
5
{% for category in site.query(categories.path) %}
4
6
< li > < a href ="{{ category|url }} "> {{ category.name }}</ a > </ li >
5
7
{% endfor %}
6
8
</ ul >
7
9
{% endmacro %}
8
-
9
- {% macro render_category_list(categories) %}
10
- < ul >
11
- {% for category in categories %}
12
- < li > < a href ="{{ category|url }} "> {{ category.title }}</ a > </ li >
13
- {% endfor %}
14
- </ ul >
15
- {% endmacro %}
You can’t perform that action at this time.
0 commit comments