Skip to content

Latest commit

 

History

History
50 lines (38 loc) · 1.2 KB

documentation.md

File metadata and controls

50 lines (38 loc) · 1.2 KB
layout title collection
page
Documentation Guide
documentation

{% for item in site.collections %} {% if item.label == page.collection %} {% assign collection = item.docs %} {% endif %} {% endfor %}

{% if collection %} {% assign about = collection | where: "title", "About" | first %}

{% if about %}

{{ about.content }}

{% else %}

Uh Oh!

You did not properly set up the About file for your collection! Be sure you followed the directions located here

{% endif %}

Contents

{% if about.toc %} {% for content in about.toc %} {% for item in collection %} {% if item.title == content %}

{{ item.title }}

{% endif %} {% endfor %} {% endfor %} {% else %} {% for item in collection %} {% if item.title != "About" %}

{{ item.title }}

{% endif %} {% endfor %} {% endif %}

{% else %}

Uh Oh!

You did not properly set up your collection! The title field in this document's front matter does not match any existing collection folder! Be sure you followed the directions located here

{% endif %}