1.7 KiB
1.7 KiB
title, permalink, tags
title | permalink | tags |
---|---|---|
Knowledge-base homepage | /kb_layout/ | special-layouts |
This shows a sample layout for a knowledge base. Each square could link to a tag archive page.
Linking to non-tag archive pages
If you don't want to link to a tag archive index, you could link to a page with code like this: {% raw %}
Here are all pages tagged with getting_started:
<ul>
{% assign counter = '0' %}
{% for page in site.pages %}
{% for tag in page.tags %}
{% if tag == "getting-started" and counter < '25' %}
{% capture counter %}{{ counter | plus:'1' }}{% endcapture %}
<li><a href="{{ page.permalink | prepend: site.baseurl }}">{{page.title}}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
{% endraw %}