From 0bebf87adb6baea3fd7843c2988179086027a153 Mon Sep 17 00:00:00 2001 From: tomjohnson1492 Date: Tue, 5 Jul 2016 09:35:56 -0700 Subject: [PATCH] fixing link issues with news feature --- _includes/taglogic.html | 7 +++---- _pages/news/news.html | 4 ++-- .../tags/{tag_collaboration.html => tag_collaboration.md} | 0 .../tags/{tag_content_types.html => tag_content_types.md} | 0 _pages/tags/{tag_formatting.html => tag_formatting.md} | 0 .../{tag_getting_started.html => tag_getting_started.md} | 0 _pages/tags/{tag_mobile.html => tag_mobile.md} | 0 _pages/tags/{tag_navigation.html => tag_navigation.md} | 0 _pages/tags/{tag_news.html => tag_news.md} | 0 _pages/tags/{tag_publishing.html => tag_publishing.md} | 0 .../{tag_single_sourcing.html => tag_single_sourcing.md} | 0 .../{tag_special_layouts.html => tag_special_layouts.md} | 0 .../{tag_troubleshooting.html => tag_troubleshooting.md} | 0 _posts/2015-04-12-test-post-last-year.md | 2 +- _posts/2016-02-24-first-post.md | 2 +- _posts/2016-02-26-sample-post-jekyll.md | 2 +- 16 files changed, 8 insertions(+), 9 deletions(-) rename _pages/tags/{tag_collaboration.html => tag_collaboration.md} (100%) rename _pages/tags/{tag_content_types.html => tag_content_types.md} (100%) rename _pages/tags/{tag_formatting.html => tag_formatting.md} (100%) rename _pages/tags/{tag_getting_started.html => tag_getting_started.md} (100%) rename _pages/tags/{tag_mobile.html => tag_mobile.md} (100%) rename _pages/tags/{tag_navigation.html => tag_navigation.md} (100%) rename _pages/tags/{tag_news.html => tag_news.md} (100%) rename _pages/tags/{tag_publishing.html => tag_publishing.md} (100%) rename _pages/tags/{tag_single_sourcing.html => tag_single_sourcing.md} (100%) rename _pages/tags/{tag_special_layouts.html => tag_special_layouts.md} (100%) rename _pages/tags/{tag_troubleshooting.html => tag_troubleshooting.md} (100%) diff --git a/_includes/taglogic.html b/_includes/taglogic.html index e61c1ad..ea3f542 100644 --- a/_includes/taglogic.html +++ b/_includes/taglogic.html @@ -1,5 +1,5 @@

The following pages and posts are tagged with

- +
TitleTypeExcerpt
{% assign thisTag = page.tagName %} {% for page in site.pages %} @@ -27,7 +27,6 @@ {% endfor %} {% endfor %} - -
TitleTypeExcerpt
- + + diff --git a/_pages/news/news.html b/_pages/news/news.html index cea494d..de6b6ab 100644 --- a/_pages/news/news.html +++ b/_pages/news/news.html @@ -13,10 +13,10 @@ folder: news {% for post in site.posts limit:10 %} -

{{ post.title }}

+

{{ post.title }}

{{ post.date | date: "%b %-d, %Y" }} / {% for tag in post.tags %} - {{tag}}{% unless forloop.last %}, {% endunless%} + {{tag}}{% unless forloop.last %}, {% endunless%} {% endfor %}

{% if page.summary %} {{ page.summary | strip_html | strip_newlines | truncate: 160 }} {% else %} {{ post.content | truncatewords: 50 | strip_html }} {% endif %}

diff --git a/_pages/tags/tag_collaboration.html b/_pages/tags/tag_collaboration.md similarity index 100% rename from _pages/tags/tag_collaboration.html rename to _pages/tags/tag_collaboration.md diff --git a/_pages/tags/tag_content_types.html b/_pages/tags/tag_content_types.md similarity index 100% rename from _pages/tags/tag_content_types.html rename to _pages/tags/tag_content_types.md diff --git a/_pages/tags/tag_formatting.html b/_pages/tags/tag_formatting.md similarity index 100% rename from _pages/tags/tag_formatting.html rename to _pages/tags/tag_formatting.md diff --git a/_pages/tags/tag_getting_started.html b/_pages/tags/tag_getting_started.md similarity index 100% rename from _pages/tags/tag_getting_started.html rename to _pages/tags/tag_getting_started.md diff --git a/_pages/tags/tag_mobile.html b/_pages/tags/tag_mobile.md similarity index 100% rename from _pages/tags/tag_mobile.html rename to _pages/tags/tag_mobile.md diff --git a/_pages/tags/tag_navigation.html b/_pages/tags/tag_navigation.md similarity index 100% rename from _pages/tags/tag_navigation.html rename to _pages/tags/tag_navigation.md diff --git a/_pages/tags/tag_news.html b/_pages/tags/tag_news.md similarity index 100% rename from _pages/tags/tag_news.html rename to _pages/tags/tag_news.md diff --git a/_pages/tags/tag_publishing.html b/_pages/tags/tag_publishing.md similarity index 100% rename from _pages/tags/tag_publishing.html rename to _pages/tags/tag_publishing.md diff --git a/_pages/tags/tag_single_sourcing.html b/_pages/tags/tag_single_sourcing.md similarity index 100% rename from _pages/tags/tag_single_sourcing.html rename to _pages/tags/tag_single_sourcing.md diff --git a/_pages/tags/tag_special_layouts.html b/_pages/tags/tag_special_layouts.md similarity index 100% rename from _pages/tags/tag_special_layouts.html rename to _pages/tags/tag_special_layouts.md diff --git a/_pages/tags/tag_troubleshooting.html b/_pages/tags/tag_troubleshooting.md similarity index 100% rename from _pages/tags/tag_troubleshooting.html rename to _pages/tags/tag_troubleshooting.md diff --git a/_posts/2015-04-12-test-post-last-year.md b/_posts/2015-04-12-test-post-last-year.md index 8462ae2..3459453 100644 --- a/_posts/2015-04-12-test-post-last-year.md +++ b/_posts/2015-04-12-test-post-last-year.md @@ -1,7 +1,7 @@ --- title: "Test post from last year" categories: jekyll update -permalink: test-post-from-last-year/ +permalink: test-post-from-last-year tags: [news] --- diff --git a/_posts/2016-02-24-first-post.md b/_posts/2016-02-24-first-post.md index 025230f..335af8d 100644 --- a/_posts/2016-02-24-first-post.md +++ b/_posts/2016-02-24-first-post.md @@ -1,7 +1,7 @@ --- title: "Welcome to Jekyll!" categories: jekyll update -permalink: myupdate/ +permalink: myupdate tags: [news] --- diff --git a/_posts/2016-02-26-sample-post-jekyll.md b/_posts/2016-02-26-sample-post-jekyll.md index d9d8975..c292a9e 100644 --- a/_posts/2016-02-26-sample-post-jekyll.md +++ b/_posts/2016-02-26-sample-post-jekyll.md @@ -1,7 +1,7 @@ --- title: "Sample post" published: true -permalink: samplepost/ +permalink: samplepost summary: "This is some summary frontmatter for my sample post." tags: [news, getting_started] ---