content updates
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user