From 7f5d5d7d4121945afa84b3e5a625526a9e34ef10 Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Wed, 15 Jan 2014 15:09:59 -0500 Subject: [PATCH] Rename Articles to Posts to stay consistent with Jekyll naming conventions --- _config.yml | 10 +++++----- _layouts/home.html | 16 ++++++++-------- _layouts/page.html | 12 ++++++------ _layouts/post-index.html | 12 ++++++------ _layouts/post.html | 16 ++++++++-------- 5 files changed, 33 insertions(+), 33 deletions(-) diff --git a/_config.yml b/_config.yml index eb766327..c9f7a7e5 100644 --- a/_config.yml +++ b/_config.yml @@ -31,11 +31,11 @@ bing_verify: D81F4C18A6CB3018F64D7C827D953DFD # For external links add external: true links: - title: About - url: /about - - title: Articles - url: /articles + url: /about/ + - title: Posts + url: /posts/ - title: Theme Setup - url: /theme-setup + url: /theme-setup/ - title: Made Mistakes url: http://mademistakes.com external: true @@ -47,7 +47,7 @@ pygments: true markdown: kramdown # https://github.com/mojombo/jekyll/wiki/Permalinks -permalink: /:categories/:title +permalink: /:categories/:title/ kramdown: auto_ids: true diff --git a/_layouts/home.html b/_layouts/home.html index 6a27444b..2b4819d2 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -7,14 +7,14 @@ {% include _head.html %} - + {% include _browser-upgrade.html %} {% include _navigation.html %} {% if page.image.feature %}
- {{ page.title }} feature image + {{ page.title }} feature image {% if page.image.credit %}Photo Credit: {{ page.image.credit }}{% endif %}
{% endif %} @@ -22,12 +22,12 @@ {% include _author-bio.html %} -
-

Articles

- {% for post in site.categories.articles limit:5 %} -
-

{{ post.title }}

-

{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}

+
+

Latest Posts

+ {% for post in site.posts limit:5 %} +
+

{{ post.title }}

+

{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}

{% endfor %}
diff --git a/_layouts/page.html b/_layouts/page.html index 371197de..ae3ad7fa 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -7,24 +7,24 @@ {% include _head.html %} - + {% include _browser-upgrade.html %} {% include _navigation.html %} {% if page.image.feature %}
- {{ page.title }} feature image + {{ page.title }} feature image {% if page.image.credit %}Photo Credit: {{ page.image.credit }}{% endif %}
{% endif %} -
+
-
-

{{ page.title }}

-
+
+

{{ page.title }}

+
{{ content }}
diff --git a/_layouts/post-index.html b/_layouts/post-index.html index ffea18ef..50f32c28 100644 --- a/_layouts/post-index.html +++ b/_layouts/post-index.html @@ -7,7 +7,7 @@ {% include _head.html %} - + {% include _browser-upgrade.html %} @@ -22,8 +22,8 @@ {% include _author-bio.html %}
-
-

{{ page.title }}

+
+

{{ page.title }}

{% for post in site.posts %} {% unless post.next %}

{{ post.date | date: '%Y' }}

@@ -34,9 +34,9 @@

{{ post.date | date: '%Y' }}

{% endif %} {% endunless %} -
-

{{ post.title }}

-

{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}

+
+

{{ post.title }}

+

{% if post.description %}{{ post.description }}{% else %}{{ post.content | strip_html | strip_newlines | truncate: 120 }}{% endif %}

{% endfor %}
diff --git a/_layouts/post.html b/_layouts/post.html index a91f9a8f..3e55af86 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -7,34 +7,34 @@ {% include _head.html %} - + {% include _browser-upgrade.html %} {% include _navigation.html %} {% if page.image.feature %}
- {{ page.title }} feature image + {{ page.title }} feature image {% if page.image.credit %}Photo Credit: {{ page.image.credit }}{% endif %}
{% endif %} -
+
-
+
-

{{ page.title }}

+

{{ page.title }}

{{ page.tagline }}

-
+
{{ content }}
- +
@@ -66,4 +66,4 @@ {% include _scripts.html %} - + \ No newline at end of file