Skip to content

Instantly share code, notes, and snippets.

@Lewiscowles1986
Created June 23, 2015 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Lewiscowles1986/c33fa331ac87d6853a0f to your computer and use it in GitHub Desktop.
Save Lewiscowles1986/c33fa331ac87d6853a0f to your computer and use it in GitHub Desktop.
Jekyll Content Sections - Port of CD2 content-sections WordPress Plugin
# Find your Start of collections
collections:
content-sections:
output: true
title: Content Sections
# Continue with other collections
{% assign content_search = site.collections.content-sections.docs | where: {{ include.field }}, {{ include.value }} %}
{{ content_search | first }}
---
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