Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63371e7
commit 4b2fa18
Showing
9 changed files
with
117 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
layout: page | ||
--- | ||
|
||
{% unless page.content == '' %} | ||
{{ content }} | ||
{% endunless %} | ||
|
||
<ul class="posts-list"> | ||
{% assign category = page.category | default: page.title %} | ||
{% for post in site.categories[category] %} | ||
<li> | ||
<h3> | ||
<a href="{{ site.baseurl }}{{ post.url }}"> | ||
{{ post.title }} | ||
<small>{{ post.date | date_to_string }}</small> | ||
</a> | ||
</h3> | ||
</li> | ||
{% endfor %} | ||
</ul> |
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
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,27 @@ | ||
--- | ||
layout: category | ||
title: Edge Case | ||
--- | ||
|
||
Sample category page. You need to create a page for each category. | ||
The category is inferred from the title of the page, but you can also | ||
specify it with the `category` attribute in the front matter. | ||
|
||
```md | ||
--- | ||
layout: category | ||
title: My Category | ||
--- | ||
``` | ||
|
||
Or ... | ||
|
||
```md | ||
--- | ||
layout: category | ||
title: Fancy Tital | ||
category: My Category | ||
--- | ||
``` | ||
|
||
Posts get listed below here. |
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,6 @@ | ||
--- | ||
layout: category | ||
title: Markup | ||
--- | ||
|
||
Another sample category page. |