Skip to content
Permalink
Browse files

Small fix, using categories instead of tags

  • Loading branch information
rosario committed Oct 18, 2014
1 parent d5c911a commit 65ac90a070100771f9d98105f5ace270a3f1f4aa
Showing with 9 additions and 8 deletions.
  1. +3 −6 _layouts/post.html
  2. +1 −1 _posts/2013-11-10-welcome-to-jekyll.markdown
  3. +5 −1 index.html
@@ -19,12 +19,9 @@

<span class="post-meta">
<time datetime="{{ page.date | date:"%Y-%m-%d" }}">{{ page.date | date_to_string }}</time>
{% if page.categories %}
on
{% for category in page.categories %}
{{category}}
{% endfor %}
{% endif %}
{% if page.categories.size > 0 %}
{{ page.categories | array_to_sentence_string | prepend: 'on ' }}
{% endif %}
</span>

<h1 class="post-title">{{ page.title }}</h1>
@@ -2,7 +2,7 @@
layout: post
title: "Welcome to Jekyll!"
date: 2013-11-10 10:18:00
categories: jekyll update
categories: Thriller Comedy Horror
---

You'll find this post in your `_posts` directory - edit this post and re-build (or run with the `-w` switch) to see your changes!
@@ -28,7 +28,11 @@ <h2 class="blog-description">

<article class="post">
<header class="post-header">
<span class="post-meta"><time datetime="{{ post.date | date:"%Y-%m-%d" }}">{{ post.date | date_to_string }}</time> {% if post.tags.size > 0 %} {{ post.tags | array_to_sentence_string | prepend: 'on ' }} {% endif %}</span>
<span class="post-meta"><time datetime="{{ post.date | date:"%Y-%m-%d" }}">{{ post.date | date_to_string }}</time>
{% if post.categories.size > 0 %}
{{ post.categories | array_to_sentence_string | prepend: 'on ' }}
{% endif %}
</span>
<h2 class="post-title"><a href="{{ post.url }}">{{ post.title }}</a></h2>

</header>

0 comments on commit 65ac90a

Please sign in to comment.
You can’t perform that action at this time.