-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add layout templates, fix basepath url,
- Loading branch information
Showing
5 changed files
with
163 additions
and
3 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
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 %} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
layout: archive | ||
title: "Page Archive" | ||
permalink: /page-archive/ | ||
author_profile: false | ||
--- | ||
|
||
{% for post in site.pages %} | ||
{% unless post.hidden %} | ||
{% include archive-single.html %} | ||
{% endunless %} | ||
{% endfor %} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
layout: archive | ||
title: "Post Archive with Feature Rows" | ||
permalink: /post-archive-feature-rows/ | ||
author_profile: true | ||
feature_row: | ||
- image_path: assets/images/unsplash-gallery-image-1-th.jpg | ||
alt: "placeholder image 1" | ||
title: "Placeholder 1" | ||
excerpt: "This is some sample content that goes here with **Markdown** formatting." | ||
- image_path: /assets/images/unsplash-gallery-image-2-th.jpg | ||
alt: "placeholder image 2" | ||
title: "Placeholder 2" | ||
excerpt: "This is some sample content that goes here with **Markdown** formatting." | ||
url: "#test-link" | ||
btn_label: "Read More" | ||
btn_class: "btn--primary" | ||
- image_path: /assets/images/unsplash-gallery-image-3-th.jpg | ||
title: "Placeholder 3" | ||
excerpt: "This is some sample content that goes here with **Markdown** formatting." | ||
feature_row2: | ||
- image_path: /assets/images/unsplash-gallery-image-2-th.jpg | ||
alt: "placeholder image 2" | ||
title: "Placeholder Image Left Aligned" | ||
excerpt: 'This is some sample content that goes here with **Markdown** formatting. Left aligned with `type="left"`' | ||
url: "#test-link" | ||
btn_label: "Read More" | ||
btn_class: "btn--primary" | ||
feature_row3: | ||
- image_path: /assets/images/unsplash-gallery-image-2-th.jpg | ||
alt: "placeholder image 2" | ||
title: "Placeholder Image Right Aligned" | ||
excerpt: 'This is some sample content that goes here with **Markdown** formatting. Right aligned with `type="right"`' | ||
url: "#test-link" | ||
btn_label: "Read More" | ||
btn_class: "btn--primary" | ||
feature_row4: | ||
- image_path: /assets/images/unsplash-gallery-image-2-th.jpg | ||
alt: "placeholder image 2" | ||
title: "Placeholder Image Center Aligned" | ||
excerpt: 'This is some sample content that goes here with **Markdown** formatting. Centered with `type="center"`' | ||
url: "#test-link" | ||
btn_label: "Read More" | ||
btn_class: "btn--primary" | ||
--- | ||
|
||
{% for post in site.posts limit: 5 %} | ||
{% include archive-single.html %} | ||
{% endfor %} | ||
|
||
{% include feature_row id="intro" type="center" %} | ||
|
||
{% include feature_row %} | ||
|
||
{% include feature_row id="feature_row2" type="left" %} | ||
|
||
{% include feature_row id="feature_row3" type="right" %} | ||
|
||
{% include feature_row id="feature_row4" type="center" %} |