Add sample collection documents
This commit is contained in:
parent
78913e5877
commit
cf42731352
9 changed files with 169 additions and 2 deletions
|
@ -10,3 +10,5 @@
|
|||
url: /tag-archive/
|
||||
- title: "Pages"
|
||||
url: /page-archive/
|
||||
- title: "Collections"
|
||||
url: /collection-archive/
|
|
@ -3,7 +3,6 @@ layout: archive
|
|||
permalink: /category-archive/
|
||||
title: "Posts by Category"
|
||||
---
|
||||
|
||||
{% include absolute-url.liquid %}
|
||||
{% capture site_categories %}{% for category in site.categories %}{{ category | first }}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %}
|
||||
{% assign category_list = site_categories | split:',' | sort %}
|
||||
|
|
25
_pages/collection-archive.html
Normal file
25
_pages/collection-archive.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
---
|
||||
layout: archive
|
||||
title: "Posts by Collection"
|
||||
permalink: /collection-archive/
|
||||
---
|
||||
{% include absolute-url.liquid %}
|
||||
{% 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 %}
|
||||
<h3>{{ label }}</h3>
|
||||
{% capture written_label %}{{ label }}{% endcapture %}
|
||||
{% endif %}
|
||||
{% endunless %}
|
||||
{% for post in collection.docs %}
|
||||
{% unless collection.output == false or collection.label == 'posts' %}
|
||||
<article itemscope itemtype="http://schema.org/CreativeWork">
|
||||
<h2 itemprop="headline"><a href="{{ absurl }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
|
||||
{% if post.excerpt %}<p itemprop="description">{{ post.excerpt | markdownify | strip_html | strip_newlines | escape_once }}</p>{% endif %}
|
||||
</article>
|
||||
{% endunless %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
8
_pets/lhasa-apso.md
Normal file
8
_pets/lhasa-apso.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
title: "Lhasa Apso"
|
||||
categories:
|
||||
- dog
|
||||
---
|
||||
> The Lhasa Apso (/ˈlɑːsə ˈæpsoʊ/ lah-sə ap-soh) is a non-sporting dog breed originating in Tibet. It was bred as an interior sentinel in the Buddhist monasteries, to alert the monks to any intruders who entered. Lhasa is the capital city of Tibet, and apso is a word in the Tibetan language meaning "bearded", so, Lhasa Apso simply means "long-haired Lhasa dog". There are, however, some who claim that the word "apso" is a form of the Tibetan word "rapso", meaning "goat-like", which would make the equivalent translation "wooly Lhasa dog".
|
||||
|
||||
> <cite>From Wikipedia, the free encyclopedia</cite>
|
8
_pets/tabby.md
Normal file
8
_pets/tabby.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
title: "Tabby"
|
||||
categories:
|
||||
- cat
|
||||
---
|
||||
> A tabby is any domestic cat that has a coat featuring distinctive stripes, dots, lines or swirling patterns, usually together with a mark resembling an 'M' on its forehead. Tabbies are sometimes erroneously assumed to be a cat breed. In fact, the tabby pattern is found in many breeds, as well as among the general mixed-breed population. The tabby pattern is a naturally occurring feature that may be related to the coloration of the domestic cat's direct ancestor, the African wildcat, which (along with the European wildcat and Asiatic wildcat) has a similar coloration.
|
||||
|
||||
> <cite>From Wikipedia, the free encyclopedia</cite>
|
52
_posts/2010-02-05-post-notice.md
Normal file
52
_posts/2010-02-05-post-notice.md
Normal file
|
@ -0,0 +1,52 @@
|
|||
---
|
||||
title: "Post: Notice"
|
||||
categories:
|
||||
- Post Formats
|
||||
tags:
|
||||
- Post Formats
|
||||
- notice
|
||||
---
|
||||
A notice displays information that explains nearby content. Often used to call attention to a particular detail.
|
||||
|
||||
When using Kramdown `{: .notice}` can be added after a sentence to assign the `.notice` to the `<p></p>` element.
|
||||
|
||||
**Changes in Service:** We just updated our privacy policy here to better service our customers. We recommend reviewing the changes.
|
||||
{: .notice}
|
||||
|
||||
Want to wrap several paragraphs or other elements in a notice? Using Liquid to capture the content and then filter it with `markdownify` is a good way to go.
|
||||
|
||||
```html
|
||||
{% raw %}{% capture notice-2 %}
|
||||
### New Site Features
|
||||
|
||||
* You can now have cover images on blog pages
|
||||
* Drafts will now auto-save while writing
|
||||
{% endcapture %}{% endraw %}
|
||||
|
||||
<div class="notice">{% raw %}{{ notice-2 | markdownify }}{% endraw %}</div>
|
||||
```
|
||||
|
||||
{% capture notice-2 %}
|
||||
### New Site Features
|
||||
|
||||
* You can now have cover images on blog pages
|
||||
* Drafts will now auto-save while writing
|
||||
{% endcapture %}
|
||||
|
||||
<div class="notice">
|
||||
{{ notice-2 | markdownify }}
|
||||
</div>
|
||||
|
||||
Or you could skip the capture and stick with straight HTML.
|
||||
|
||||
```html
|
||||
<div class="notice">
|
||||
<h3>Message</h3>
|
||||
<p>A basic message.</p>
|
||||
</div>
|
||||
```
|
||||
|
||||
<div class="notice">
|
||||
<h3>Message</h3>
|
||||
<p>A basic message.</p>
|
||||
</div>
|
29
_recipes/chocolate-chip-cookies.md
Normal file
29
_recipes/chocolate-chip-cookies.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
title: "Chocolate Chip Cookies"
|
||||
categories:
|
||||
- cookies
|
||||
- desert
|
||||
---
|
||||
This makes 4 dozen cookies.
|
||||
|
||||
## Ingredients
|
||||
|
||||
* 2 1/4 cups all-purpose flour
|
||||
* 1 teaspoon baking soda
|
||||
* 1/2 teaspoon salt
|
||||
* 1 cup butter, softened and cut to pieces
|
||||
* 1 cup sugar
|
||||
* 1 cup light brown sugar, packed
|
||||
* 2 teaspoons vanilla extract
|
||||
* 2 large eggs
|
||||
* 2 cups semi-sweet chocolate chips
|
||||
* 1/2 teaspoon nutmeg (optional)
|
||||
* 1 cup chopped pecans or walnuts (optional)
|
||||
|
||||
## Directions
|
||||
|
||||
1. Preheat the oven to 350 F.
|
||||
2. In a medium bowl, whisk flour with baking soda, nutmeg and salt.
|
||||
3. In a large bowl, beat butter with sugar and brown sugar until creamy and light. Add vanilla and eggs, one at a time, and mix until incorporated.
|
||||
4. Gradually add dry mixture into the butter-sugar wet blend, mixing with a spatula until combined. Add chocolate chips and nuts until just mixed.
|
||||
5. Drop tablespoon-sized clumps onto un-greased cookie sheets. Bake for 8-12 minutes, or until pale brown. Allow to cool on the pan for a minute or three, then transfer cookies to a wire rack to finish cooling.
|
22
_recipes/oatmeal-cookies.md
Normal file
22
_recipes/oatmeal-cookies.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
title: "Oatmeal Cookies"
|
||||
categories:
|
||||
- cookies
|
||||
---
|
||||
## Ingredients
|
||||
|
||||
* 1 cup butter, softened 1 cup white sugar
|
||||
* 1 cup packed brown sugar
|
||||
* 2 eggs
|
||||
* 1 teaspoon vanilla extract
|
||||
* 2 cups all-purpose flour
|
||||
* 1 teaspoon baking soda
|
||||
* 1 teaspoon salt
|
||||
* 1 1/2 teaspoons ground cinnamon
|
||||
* 3 cups quick cooking oats
|
||||
|
||||
## Directions
|
||||
|
||||
1. In a medium bowl, cream together butter, white sugar, and brown sugar. Beat in eggs one at a time, then stir in vanilla. Combine flour, baking soda, salt, and cinnamon; stir into the creamed mixture. Mix in oats. Cover, and chill dough for at least one hour.
|
||||
2. Preheat the oven to 375 degrees F (190 degrees C). Grease cookie sheets. Roll the dough into walnut sized balls, and place 2 inches apart on cookie sheets. Flatten each cookie with a large fork dipped in sugar.
|
||||
3. Bake for 8 to 10 minutes in preheated oven. Allow cookies to cool on baking sheet for 5 minutes before transferring to a wire rack to cool completely.
|
22
_recipes/peanut-butter-cookies.md
Normal file
22
_recipes/peanut-butter-cookies.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
---
|
||||
title: "Peanut Butter Cookies"
|
||||
categories:
|
||||
- cookies
|
||||
---
|
||||
## Ingredients
|
||||
|
||||
* 1 cup unsalted butter
|
||||
* 1 cup crunchy peanut butter
|
||||
* 1 cup white sugar
|
||||
* 1 cup packed brown sugar
|
||||
* 2 eggs 2
|
||||
* 1/2 cups all-purpose flour
|
||||
* 1 teaspoon baking powder
|
||||
* 1/2 teaspoon salt
|
||||
* 1 1/2 teaspoons baking soda
|
||||
|
||||
## Directions
|
||||
|
||||
1. Cream butter, peanut butter, and sugars together in a bowl; beat in eggs.
|
||||
2. In a separate bowl, sift flour, baking powder, baking soda, and salt; stir into butter mixture. Put dough in refrigerator for 1 hour.
|
||||
3. Roll dough into 1 inch balls and put on baking sheets. Flatten each ball with a fork, making a crisscross pattern. Bake in a preheated 375 degrees F oven for about 10 minutes or until cookies begin to brown.
|
Loading…
Reference in a new issue