.github
_data
_includes
_layouts
_sass
assets
docs
_data
_docs
_drafts
_layouts
_pages
404.md
about.md
archive-layout-with-content.md
category-archive.md
collection-archive.html
edge-case.md
home.md
lorem-ipsum.md
markup.md
page-a.md
page-archive.html
page-b.md
pets.md
portfolio-archive.md
post-archive-feature-rows.html
recipes-archive.md
sample-page.md
sitemap.md
splash-page.md
tag-archive.md
terms.md
year-archive.md
_pets
_portfolio
_posts
_recipes
assets
Gemfile
_config.dev.yml
_config.yml
screenshot-layouts.png
screenshot.png
test
.editorconfig
.gitattributes
.gitignore
.travis.yml
CHANGELOG.md
Gemfile
LICENSE
README.md
Rakefile
_config.yml
banner.js
index.html
minimal-mistakes-jekyll.gemspec
package-lock.json
package.json
screenshot-layouts.png
screenshot.png
staticman.yml
23 lines
743 B
HTML
23 lines
743 B
HTML
---
|
|
layout: archive
|
|
title: "Posts by Collection"
|
|
permalink: /collection-archive/
|
|
author_profile: true
|
|
---
|
|
|
|
{% capture written_label %}'None'{% endcapture %}
|
|
|
|
{% for collection in site.collections %}
|
|
{% unless collection.output == false or collection.label == "posts" %}
|
|
{% capture label %}{{ collection.label }}{% endcapture %}
|
|
{% if label != written_label %}
|
|
<h2 id="{{ label | slugify }}" class="archive__subtitle">{{ label }}</h2>
|
|
{% capture written_label %}{{ label }}{% endcapture %}
|
|
{% endif %}
|
|
{% endunless %}
|
|
{% for post in collection.docs %}
|
|
{% unless collection.output == false or collection.label == "posts" %}
|
|
{% include archive-single.html %}
|
|
{% endunless %}
|
|
{% endfor %}
|
|
{% endfor %} |