Moving to single collection

This commit is contained in:
Adam Hollett
2015-12-04 18:56:07 -05:00
parent f0c7a601c3
commit 8e3dcf49ba
54 changed files with 33 additions and 20 deletions
+15 -8
View File
@@ -5,21 +5,28 @@ markdown: kramdown
highlighter: pygments highlighter: pygments
permalink: /:year/:month/:day/:basename:output_ext permalink: /:year/:month/:day/:basename:output_ext
collections: collections:
basics: docs:
output: true
permalink: /basics/:path/
filters:
output: true
tags:
output: true output: true
permalink: /docs/:path/
exclude: exclude:
- README.md - README.md
- CNAME - CNAME
- node_modules - node_modules
keep_files: ['css'] keep_files: ['css']
defaults: defaults:
- - scope:
scope:
path: "" # an empty string here means all files in the project path: "" # an empty string here means all files in the project
values: values:
layout: "default" layout: "default"
- scope:
path: "docs/basics"
values:
type: "basics"
- scope:
path: "docs/filters"
values:
type: "filters"
- scope:
path: "docs/tags"
values:
type: "tags"
+18 -12
View File
@@ -27,10 +27,12 @@
<li> <li>
<h3 class="section__header">Basics</h3> <h3 class="section__header">Basics</h3>
<ul class="section__links"> <ul class="section__links">
{% for doc in site.collections["basics"].docs %} {% for doc in site.docs %}
<li> {% if doc.type == "basics" %}
<a href="/basics/{{ doc.title | slugify }}" class="section__link">{{ doc.title }}</a> <li>
</li> <a href="/docs/{{ doc.type }}/{{ doc.title | slugify }}" class="section__link">{{ doc.title }}</a>
</li>
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
</li> </li>
@@ -41,10 +43,12 @@
<li> <li>
<h3 class="section__header">Tags</h3> <h3 class="section__header">Tags</h3>
<ul class="section__links"> <ul class="section__links">
{% for doc in site.collections["tags"].docs %} {% for doc in site.docs %}
<li> {% if doc.type == "tags" %}
<a href="/tags/{{ doc.title | slugify }}" class="section__link">{{ doc.title }}</a> <li>
</li> <a href="/docs/{{ doc.type }}/{{ doc.title | slugify }}" class="section__link">{{ doc.title }}</a>
</li>
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
</li> </li>
@@ -55,10 +59,12 @@
<li> <li>
<h3 class="section__header">Filters</h3> <h3 class="section__header">Filters</h3>
<ul class="section__links"> <ul class="section__links">
{% for doc in site.collections["filters"].docs %} {% for doc in site.docs %}
<li> {% if doc.type == "filters" %}
<a href="/filters#{{ doc.title }}" class="section__link">{{ doc.title }}</a> <li>
</li> <a href="/docs/{{ doc.type }}/{{ doc.title | slugify }}" class="section__link">{{ doc.title }}</a>
</li>
{% endif %}
{% endfor %} {% endfor %}
</ul> </ul>
</li> </li>