content updates

This commit is contained in:
Tom Johnson
2015-08-12 16:58:09 -07:00
parent e564f65040
commit 2a81d2a101
20 changed files with 9026 additions and 8767 deletions

View File

@ -9,7 +9,7 @@ metadata: false
---
{% include linkrefs.html %}
This shows a sample layout for a knowledge base. Each square could link to a tag archive page. In this example, font icons from Font Awesome are enlarged to a large size. You could also add captions below each icon, and so forth. In a real implementation, you would probably make your own square graphics that included the text inside them.
This shows a sample layout for a knowledge base. Each square could link to a tag archive page. In this example, font icons from Font Awesome are enlarged to a large size. You can also add captions below each icon.
<div class="row">
<div class="col-md-4"><a href="doc_tag-getting-started.html"><i class="fa fa-file-image-o fa-6x border"></i><div class="kbCaption">Getting Started</div></a></div>
@ -25,14 +25,15 @@ This shows a sample layout for a knowledge base. Each square could link to a tag
## Linking to non-tag archive pages
## Generating a list of all pages with a certain tag
If you don't want to link to a tag archive index, you could link to a page with code like this:
If you don't want to link to a tag archive index, but instead want to list all pages that have a certain tag, you could use this code:
{% raw %}
```html
Getting started pages:
<ul>
{% for page in site.pages %}
{% assign sorted_pages = (site.pages | sort: 'title') %}
{% for page in sorted_pages %}
{% for tag in page.tags %}
{% if tag == "getting-started" %}
<li><a href="{{page.url}}">{{page.title}}</a></li>
@ -45,10 +46,9 @@ Getting started pages:
Getting started pages:
Here are all pages tagged with getting_started:
<ul>
{% for page in site.pages %}
{% assign sorted_pages = (site.pages | sort: 'title') %}
{% for page in sorted_pages %}
{% for tag in page.tags %}
{% if tag == "getting-started" %}
<li><a href="{{page.url}}">{{page.title}}</a></li>