diff --git a/_layouts/post.html.org b/_layouts/post.html.org deleted file mode 100644 index a129891..0000000 --- a/_layouts/post.html.org +++ /dev/null @@ -1,55 +0,0 @@ ---- -layout: default ---- - -{% assign post = page %} - -
-

{{page.title}}

- -

- {% if post.category %} - {% for site_category in site.data.categories %} - {% if site_category.slug == post.category %} - {% assign category = site_category %} - {% endif %} - {% endfor %} - {% if category %} - {% capture category_content %} in {{ category.name }}{% endcapture %} - {% endif %} - {% else %} - {% assign category_content = '' %} - {% endif %} - - {% if post.tags.size > 0 %} - {% capture tags_content %} with tags {% endcapture %} - {% for post_tag in post.tags %} - {% for data_tag in site.data.tags %} - {% if data_tag.slug == post_tag %} - {% assign tag = data_tag %} - {% endif %} - {% endfor %} - {% if tag %} - {% capture tags_content_temp %}{{ tags_content }}{{ tag.name }}{% if forloop.last == false %}, {% endif %}{% endcapture %} - {% assign tags_content = tags_content_temp %} - {% endif %} - {% endfor %} - {% else %} - {% assign tags_content = '' %} - {% endif %} - - {{page.date | date: "%B %d, %Y" }} - / - by {{page.author}} -
- Posted {{ category_content }}{{ tags_content }} -

- -
- -
- {{ content }} -
- - {% include disqus.html %} -
diff --git a/_layouts/post_by_category.html b/_layouts/post_by_category.html index fe4dbae..cd9417c 100644 --- a/_layouts/post_by_category.html +++ b/_layouts/post_by_category.html @@ -2,43 +2,58 @@ layout: default --- -
-

{{page.title}}

+ +
-

- Articles by category -

- -
- -
- {% if site.categories[page.category] %} - {% for post in site.categories[page.category] %} - {% capture post_year %}{{ post.date | date: '%Y' }}{% endcapture %} - {% if forloop.first %} -

{{ post_year }}

    - {% endif %} - - {% if forloop.first == false %} - {% assign previous_index = forloop.index0 | minus: 1 %} - {% capture previous_post_year %}{{ site.categories[page.category][previous_index].date | date: '%Y' }}{% endcapture %} - {% if post_year != previous_post_year %} -

{{ post_year }}

- {% endif %} - {% endfor %} - {% else %} -

There are no posts in this category.

- {% endif %} +
+
+
+
+

{{ page.title }}

+

Articles posted in {{ page.title }}

+
+
+
-
\ No newline at end of file + + +
+
+
+
+ + {% if site.categories[page.category] %} + {% for post in site.categories[page.category] %} + {% capture post_year %}{{ post.date | date: '%Y' }}{% endcapture %} + {% if forloop.first %} +

{{ post_year }}

    + {% endif %} + + {% if forloop.first == false %} + {% assign previous_index = forloop.index0 | minus: 1 %} + {% capture previous_post_year %}{{ site.categories[page.category][previous_index].date | date: '%Y' }}{% endcapture %} + {% if post_year != previous_post_year %} +

{{ post_year }}

+ {% endif %} + {% endfor %} + {% else %} +

There are no posts in this category.

+ {% endif %} + +
+
+ +
+ +