aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/_layouts
diff options
context:
space:
mode:
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/category.html19
-rw-r--r--_layouts/post.html2
2 files changed, 20 insertions, 1 deletions
diff --git a/_layouts/category.html b/_layouts/category.html
new file mode 100644
index 0000000..dbb7825
--- /dev/null
+++ b/_layouts/category.html
@@ -0,0 +1,19 @@
+{% include common/header.html %}
+<div class="row">
+ <div class="col-md-8">
+ <h1>{{ page.title }}</h1>
+ <p>This is a complete list of posts in the "{{ page.category }}" category.</p>
+ {% if site.categories[page.category].size > 0 %}
+ <ul>
+ {% for post in site.categories[page.category] %}
+ <li><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></li>
+ {% endfor %}
+ </ul>
+ {% else %}
+ {% endif %}
+ </div>
+ <div class="col-md-4">
+ {% include common/sidebar.html %}
+ </div>
+</div>
+{% include common/footer.html %}
diff --git a/_layouts/post.html b/_layouts/post.html
index 187b951..b01892f 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -2,7 +2,7 @@
<div class="row">
<div class="col-md-8">
<h1>{{ page.title }}</h1>
- <p class="text-muted"><span class="glyphicon glyphicon-time"></span> Posted on {{ page.date | date_to_long_string }}</p>
+ <p class="text-muted"><span class="glyphicon glyphicon-time"></span>&nbsp;Posted on {{ page.date | date_to_long_string }}{% if page.category %} in <span class="glyphicon glyphicon-folder-open"></span>&nbsp;<a href="{{ site.baseurl }}/{{ page.category | downcase }}/">{{ page.category }}</a>{% endif %}</p>
{{ content }}
<hr/>
</div>