fixing broken links

This commit is contained in:
Tom Johnson
2015-09-16 09:05:02 -07:00
parent c876f9a747
commit 279f3d5bfb
13 changed files with 20 additions and 33 deletions

View File

@ -131,7 +131,7 @@ entries:
version: all version: all
- title: Tags - title: Tags
url: /doc_tags.html url: /tags.html
audience: writers, designers audience: writers, designers
platform: all platform: all
product: all product: all
@ -280,7 +280,7 @@ entries:
version: all version: all
- title: Help APIs and UI tooltips - title: Help APIs and UI tooltips
url: /doc_help_apis.html url: /doc_help_api.html
audience: writers, designers audience: writers, designers
platform: all platform: all
product: all product: all
@ -359,7 +359,7 @@ entries:
items: items:
- title: Tag archives overview - title: Tag archives overview
url: /doc_tag_archives_overview.html url: /tag_archives_overview.html
audience: writers, designers audience: writers, designers
platform: all platform: all
product: all product: all
@ -374,7 +374,7 @@ entries:
print: false print: false
thirdlevelitems: thirdlevelitems:
- title: Getting started pages - title: Getting started pages
url: /doc_tag-getting-started.html url: /tag-getting-started.html
audience: writers, designers audience: writers, designers
platform: all platform: all
version: all version: all
@ -382,7 +382,7 @@ entries:
print: false print: false
- title: Formatting pages - title: Formatting pages
url: /doc_tag-formatting.html url: /tag-formatting.html
audience: writers, designers audience: writers, designers
platform: all platform: all
version: all version: all
@ -390,7 +390,7 @@ entries:
print: false print: false
- title: Navigation pages - title: Navigation pages
url: /doc_tag-navigation.html url: /tag-navigation.html
audience: writers, designers audience: writers, designers
platform: all platform: all
version: all version: all
@ -398,7 +398,7 @@ entries:
print: false print: false
- title: Content types pages - title: Content types pages
url: /doc_tag-content-types.html url: /tag-content-types.html
audience: writers, designers audience: writers, designers
platform: all platform: all
version: all version: all
@ -406,7 +406,7 @@ entries:
print: false print: false
- title: Publishing pages - title: Publishing pages
url: /doc_tag-publishing.html url: /tag-publishing.html
audience: writers, designers audience: writers, designers
platform: all platform: all
version: all version: all
@ -414,7 +414,7 @@ entries:
print: false print: false
- title: Special layout pages - title: Special layout pages
url: /doc_tag-special-layouts.html url: /tag-special-layouts.html
audience: writers, designers audience: writers, designers
platform: all platform: all
version: all version: all

View File

@ -284,18 +284,18 @@ doc_tag-formatting:
doc_tag-navigation: doc_tag-navigation:
title: "Navigation pages" title: "Navigation pages"
url: "doc_tag-navigation.html" url: "tag-navigation.html"
link: "<a href='doc_tag-navigation.html'>Navigation pages</a>" link: "<a href='tag-navigation.html'>Navigation pages</a>"
doc_tag-content-types: doc_tag-content-types:
title: "Content types pages" title: "Content types pages"
url: "doc_tag-content-types.html" url: "tag-content-types.html"
link: "<a href='doc_tag-content-types.html'>Content types pages</a>" link: "<a href='tag-content-types.html'>Content types pages</a>"
doc_tag-publishing: doc_tag-publishing:
title: "Publishing pages" title: "Publishing pages"
url: "doc_tag-publishing.html" url: "tag-publishing.html"
link: "<a href='doc_tag-publishing.html'>Publishing pages</a>" link: "<a href='tag-publishing.html'>Publishing pages</a>"
doc_tag-special-layouts: doc_tag-special-layouts:
title: "Special layout pages" title: "Special layout pages"

View File

@ -22,7 +22,7 @@ layout: default
{% include custom/conditions.html %} {% include custom/conditions.html %}
{% for tag in page.tags %} {% for tag in page.tags %}
{% if projectTags contains tag %} {% if projectTags contains tag %}
<a href="{{site.project_file_name}}_tag-{{tag}}.html"><button type="button" class="btn btn-primary navbar-btn cursorNorm">{{page.tagName}}{{tag}}</button></a>{% unless forloop.last %}{% endunless%} <a href="tag-{{tag}}.html"><button type="button" class="btn btn-primary navbar-btn cursorNorm">{{page.tagName}}{{tag}}</button></a>{% unless forloop.last %}{% endunless%}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}

View File

@ -1,13 +0,0 @@
---
layout: default
---
<h2>{{ page.tag }}</h2>
<ul>
{% for post in page.posts %}
<li><a href="{{ post.url }}">{{ post.title }}</a> ({{ post.date | date_to_string }} | Tags: {{ post | tags }})</li>
{% endfor %}
</ul>
<div id="tag-cloud">
{{ site | tag_cloud }}
</div>

View File

@ -30,7 +30,7 @@ To prevent tags from getting out of control and inconsistent, first make sure th
{{site.data.alerts.note}} Unlike with WordPress, you have to build out the functionality for tags so that clicking a tag name shows you all pages with that tag. Tags in Jekyll are much more manual.{{site.data.alerts.end}} {{site.data.alerts.note}} Unlike with WordPress, you have to build out the functionality for tags so that clicking a tag name shows you all pages with that tag. Tags in Jekyll are much more manual.{{site.data.alerts.end}}
{% endif %} {% endif %}
Additionally, you must create a tag archive page similar to the other pages named doc_tag-{tagname}.html folder. This theme doesn't auto-create tag archive pages. Additionally, you must create a tag archive page similar to the other pages named tag-{tagname}.html folder. This theme doesn't auto-create tag archive pages.
For simplicity, make all your tags single words (connect them with hyphens if necessary). For simplicity, make all your tags single words (connect them with hyphens if necessary).
@ -61,7 +61,7 @@ Tags have a few components.
- content types - content types
``` ```
4. Create a tag archive file for each tag in your tags_doc.yml list. Name the file like this: doc_tag-getting-started.html, where doc is your project name. (Again, tags with multiple words need hyphens in them.) 4. Create a tag archive file for each tag in your tags_doc.yml list. Name the file like this: tag-getting-started.html, where doc is your project name. (Again, tags with multiple words need hyphens in them.)
Each tag archive file needs only this: Each tag archive file needs only this:
@ -116,7 +116,7 @@ You can change the button color by changing the class on the button from `btn-in
## Retrieving pages for a specific tag ## Retrieving pages for a specific tag
If you want to retrieve pages outside of a particular doc_tag-archive page, you could use this code: If you want to retrieve pages outside of a particular tag-archive page, you could use this code:
```html ```html
{% raw %} {% raw %}
@ -191,7 +191,7 @@ Still, if the build times are getting long (e.g., 1 or 2 minutes per build), loo
If your page shows "tags:" at the bottom without any value, it could mean a couple of things: If your page shows "tags:" at the bottom without any value, it could mean a couple of things:
* You're using a tag that isn't specified in your allowed tags list in your doc_tags.yml file. * You're using a tag that isn't specified in your allowed tags list in your tags.yml file.
* You have an empty `tags: []` property in your frontmatter. * You have an empty `tags: []` property in your frontmatter.
If you don't want tags to appear at all on your page, remove the tags property from your frontmatter. If you don't want tags to appear at all on your page, remove the tags property from your frontmatter.