Skip to content

Commit 17cf400

Browse files
committed
Style changes for categories.
1 parent 5fd28ec commit 17cf400

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

templates/blog-categories.html

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
{% block title %}{{ this.title }}{% endblock %}
44
{% block header %}{{ this.title }}{% endblock %}
55
{% block body %}
6-
<h1>Categories</h1>
6+
<h2>Categories</h2>
77
{{ render_categories(this) }}
8-
<hr>
98
{% endblock %}

templates/blog-category.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{% block title %}{{ this.parent.title }} - {{ this.name }}{% endblock %}
44
{% block header %}{{ this.parent.title }}{% endblock %}
55
{% block body %}
6-
<h2>All posts tagged "{{ this.name }}"</h2>
6+
<h2>All posts categorized "{{ this.name }}"</h2>
77
{{ render_posts(this.children) }}
88
<hr>
99
<strong><a href="{{ this.parent.path }}">All Categories</a></strong>

templates/macros/categories.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{% from "macros/posts.html" import render_posts %}
22

33
{% macro render_categories(categories) %}
4-
<ul>
4+
<ul class="list-inline">
55
{% for category in site.query(categories.path) %}
6-
<li><a href="{{ category|url }}">{{ category.name }}</a></li>
6+
<li class="list-inline-item"><a href="{{ category|url }}">{{ category.name }}</a></li>
77
{% endfor %}
88
</ul>
99
{% endmacro %}

0 commit comments

Comments
 (0)