-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from kranurag7/tags
Add tags and categories to the theme
- Loading branch information
Showing
7 changed files
with
66 additions
and
2 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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
+++ | ||
title = "Hello world" | ||
date = 2021-07-29 | ||
taxonomies.categories = ["intro"] | ||
+++ | ||
|
||
Hello world! |
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,20 @@ | ||
{% extends "page.html" %} | ||
|
||
{% block title %}{{ config.title }} | {{ taxonomy.name | capitalize }}{% endblock title %} | ||
|
||
{% block content %} | ||
<main> | ||
<h1>{{ taxonomy.name | capitalize }}</h1> | ||
<div> | ||
<ul> | ||
{% for term in terms %} | ||
<li> | ||
<a href="{{ term.permalink }}">{{ term.name }}</a> | ||
{% set count = term.pages | length %} | ||
<span class="secondary small">({{ count }} page{{ count | pluralize }})</span> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</main> | ||
{% endblock content %} |
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,18 @@ | ||
{% extends "page.html" %} | ||
|
||
{% block title %}{{ config.title }} | {{ term.name }}{% endblock title %} | ||
|
||
{% block content %} | ||
<main> | ||
<h1>{{ taxonomy.name | capitalize }} - {{ term.name }} </h1> | ||
<ul> | ||
{% for page in term.pages %} | ||
<li> | ||
<a href="{{ page.permalink | safe }}">{{ page.title }}</a> | ||
{% if page.date %}<span class="secondary small">({{ page.date }})</span>{% endif %} | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
<p><a href="{{ get_taxonomy(kind=taxonomy.name) | get(key='permalink') }}">All {{ taxonomy.name }}</a></p> | ||
</main> | ||
{% endblock content %} |