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 used for the graphics, and the layout is pulled from the Modern Business theme. .
Here’s the sample knowledge-base style layout:
Knowledge Base Categories
Generating a list of all pages with a certain tag
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:
Getting started pages:
<ul>
{% 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 | remove: "/" }}">{{page.title}}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
Here’s the result:
Getting started pages:
- About Ruby, Gems, Bundler, and other prerequisites
- About Ruby, Gems, Bundler, and other prerequisites
- About the theme's author
- About the theme's author
- Batrachemys heliostemma Mccord, Joseph-Ouni & Lamar, 2001
- Chelonoidis carbonarius
- Chelus fimbriata (Schneider, 1783)
- Chelydra acutirostris Peters, 1862
- Install Jekyll on Mac
- Install Jekyll on Mac
- Mesoclemmys dahli (Zangerl & Medem, 1958)
- Mesoclemmys gibba (Schweigger, 1812)
- Mesoclemmys raniceps (Gray, 1856)
- Pages
- Pages
- Phrynops geoffroanus (Schweigger, 1812)
- Platemys platycephala (Schneider, 1792)
- Posts
- Posts
- Release notes 5.0
- Release notes 5.0
- Release notes 6.0
- Release notes 6.0
- Rhinemys rufipes (Spix, 1824)
- Sidebar Navigation
- Sidebar Navigation
- Support
- Support
- Supported features
- Supported features
- Trachemys callirostris (Gray, 1856)