Created
June 23, 2015 02:38
-
-
Save Lewiscowles1986/c33fa331ac87d6853a0f to your computer and use it in GitHub Desktop.
Jekyll Content Sections - Port of CD2 content-sections WordPress Plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find your Start of collections | |
collections: | |
content-sections: | |
output: true | |
title: Content Sections | |
# Continue with other collections |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% assign content_search = site.collections.content-sections.docs | where: {{ include.field }}, {{ include.value }} %} | |
{{ content_search | first }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
layout: default | |
title: test-content-section | |
--- | |
{% include content-section.html field="title" value="clients" %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment