fixing links for tags and tag pages

This commit is contained in:
tomjohnson1492
2016-07-05 09:43:24 -07:00
parent 0bebf87adb
commit 60e808f7a4
16 changed files with 17 additions and 18 deletions

View File

@ -29,7 +29,7 @@
{% elsif page.url == subfolderitem.url %} {% elsif page.url == subfolderitem.url %}
<li class="active"><a href="{{subfolderitem.url | remove: "/" | append: ".html"}}">{{subfolderitem.title}}</a></li> <li class="active"><a href="{{subfolderitem.url | remove: "/" | append: ".html"}}">{{subfolderitem.title}}</a></li>
{% else %} {% else %}
<li><a href="{{subfolderitem.url | remove: "/" | append: ".html"}}">{{subfolderitem.title}}"</a></li> <li><a href="{{subfolderitem.url | remove: "/" | append: ".html"}}">{{subfolderitem.title}}</a></li>
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}

View File

@ -6,7 +6,7 @@
{% for tag in page.tags %} {% for tag in page.tags %}
{% if tag == thisTag %} {% if tag == thisTag %}
<tr><td><a href="{{ page.url | remove: "/"}}">{{page.title}}</a></td> <tr><td><a href="{{ page.url | remove: "/" | append: ".html" }}">{{page.title}}</a></td>
<td><span class="label label-default">Page</span></td> <td><span class="label label-default">Page</span></td>
<td>{% if page.summary %} {{ page.summary | strip_html | strip_newlines | truncate: 160 }} {% else %} {{ page.content | truncatewords: 50 | strip_html }} {% endif %}</td> <td>{% if page.summary %} {{ page.summary | strip_html | strip_newlines | truncate: 160 }} {% else %} {{ page.content | truncatewords: 50 | strip_html }} {% endif %}</td>
</tr> </tr>
@ -19,7 +19,7 @@
{% for tag in post.tags %} {% for tag in post.tags %}
{% if tag == thisTag %} {% if tag == thisTag %}
<tr><td><a href="{{ post.url | remove: "/"}}">{{post.title}}</a></td> <tr><td><a href="{{ post.url | remove: "/" | append: ".html" }}">{{post.title}}</a></td>
<td><span class="label label-primary">Post</span></td> <td><span class="label label-primary">Post</span></td>
<td>{% if post.summary %} {{ post.summary | strip_html | strip_newlines | truncate: 160 }} {% else %} {{ post.content | truncatewords: 50 | strip_html }} {% endif %}</td> <td>{% if post.summary %} {{ post.summary | strip_html | strip_newlines | truncate: 160 }} {% else %} {{ post.content | truncatewords: 50 | strip_html }} {% endif %}</td>
</tr> </tr>

View File

@ -55,7 +55,7 @@ layout: default
{% assign projectTags = site.data.tags.allowed-tags %} {% assign projectTags = site.data.tags.allowed-tags %}
{% for tag in page.tags %} {% for tag in page.tags %}
{% if projectTags contains tag %} {% if projectTags contains tag %}
<a href="{{ "tag_" | append: tag }}" class="btn btn-default navbar-btn cursorNorm" role="button">{{page.tagName}}{{tag}}</a> <a href="{{ "tag_" | append: tag | append: ".html" }}" class="btn btn-default navbar-btn cursorNorm" role="button">{{page.tagName}}{{tag}}</a>
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}

View File

@ -64,7 +64,7 @@ title: "Collaboration pages"
tagName: collaboration tagName: collaboration
search: exclude search: exclude
permalink: tag_collaboration/ permalink: tag_collaboration/
sidebar: tags_sidebar sidebar: mydoc_sidebar
--- ---
{% include taglogic.html %} {% include taglogic.html %}
``` ```

View File

@ -1,6 +1,6 @@
--- ---
title: News title: News
sidebar: tags_sidebar sidebar: mydoc_sidebar
keywords: news, blog, updates, release notes, announcements keywords: news, blog, updates, release notes, announcements
permalink: news_archive permalink: news_archive
toc: false toc: false

View File

@ -3,7 +3,7 @@ title: "Collaboration pages"
tagName: collaboration tagName: collaboration
search: exclude search: exclude
permalink: tag_collaboration permalink: tag_collaboration
sidebar: tags_sidebar sidebar: mydoc_sidebar
folder: tags folder: tags
--- ---
{% include taglogic.html %} {% include taglogic.html %}

View File

@ -3,7 +3,7 @@ title: "Content types pages"
tagName: content_types tagName: content_types
search: exclude search: exclude
permalink: tag_content_types permalink: tag_content_types
sidebar: tags_sidebar sidebar: mydoc_sidebar
folder: tags folder: tags
--- ---
{% include taglogic.html %} {% include taglogic.html %}

View File

@ -3,7 +3,7 @@ title: "Formatting pages"
tagName: formatting tagName: formatting
search: exclude search: exclude
permalink: tag_formatting permalink: tag_formatting
sidebar: tags_sidebar sidebar: mydoc_sidebar
folder: tags folder: tags
--- ---
{% include taglogic.html %} {% include taglogic.html %}

View File

@ -3,7 +3,7 @@ title: "Getting started pages"
tagName: getting_started tagName: getting_started
search: exclude search: exclude
permalink: tag_getting_started permalink: tag_getting_started
sidebar: tags_sidebar sidebar: mydoc_sidebar
folder: tags folder: tags
--- ---
{% include taglogic.html %} {% include taglogic.html %}

View File

@ -3,8 +3,7 @@ title: "Mobile Pages"
search: exclude search: exclude
tagName: mobile tagName: mobile
permalink: tag_mobile permalink: tag_mobile
sidebar: tags_sidebar sidebar: mydoc_sidebar
sidebar: tags_sidebar
folder: tags folder: tags
--- ---
{% include taglogic.html %} {% include taglogic.html %}

View File

@ -3,7 +3,7 @@ title: "Navigation pages"
tagName: navigation tagName: navigation
search: exclude search: exclude
permalink: tag_navigation permalink: tag_navigation
sidebar: tags_sidebar sidebar: mydoc_sidebar
folder: tags folder: tags
--- ---
{% include taglogic.html %} {% include taglogic.html %}

View File

@ -3,7 +3,7 @@ title: "News"
tagName: news tagName: news
search: exclude search: exclude
permalink: tag_news permalink: tag_news
sidebar: tags_sidebar sidebar: mydoc_sidebar
folder: tags folder: tags
--- ---
{% include taglogic.html %} {% include taglogic.html %}

View File

@ -3,7 +3,7 @@ title: "Publishing pages"
tagName: publishing tagName: publishing
search: exclude search: exclude
permalink: tag_publishing permalink: tag_publishing
sidebar: tags_sidebar sidebar: mydoc_sidebar
folder: tags folder: tags
--- ---
{% include taglogic.html %} {% include taglogic.html %}

View File

@ -3,7 +3,7 @@ title: "Single sourcing pages"
tagName: single_sourcing tagName: single_sourcing
search: exclude search: exclude
permalink: tag_single_sourcing permalink: tag_single_sourcing
sidebar: tags_sidebar sidebar: mydoc_sidebar
folder: tags folder: tags
--- ---
{% include taglogic.html %} {% include taglogic.html %}

View File

@ -3,7 +3,7 @@ title: "Special layout pages"
tagName: special_layouts tagName: special_layouts
search: exclude search: exclude
permalink: tag_special_layouts permalink: tag_special_layouts
sidebar: tags_sidebar sidebar: mydoc_sidebar
folder: tags folder: tags
--- ---

View File

@ -3,7 +3,7 @@ title: "Troubleshooting pages"
tagName: troubleshooting tagName: troubleshooting
search: exclude search: exclude
permalink: tag_troubleshooting permalink: tag_troubleshooting
sidebar: tags_sidebar sidebar: mydoc_sidebar
folder: tags folder: tags
--- ---
{% include taglogic.html %} {% include taglogic.html %}