-
Notifications
You must be signed in to change notification settings - Fork 0
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
194348e
commit 24f4c3f
Showing
13 changed files
with
130 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
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{% import 'macros.html' as macros %} | ||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
|
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,8 @@ | ||
{% macro render_tags(tags) %} | ||
<span> | ||
Tags: | ||
{% for tag in tags %} | ||
<a class="has-text-info-dark has-text-weight-semibold" href="{{ get_taxonomy_url(kind='tags', name=tag) }}"><span>{{tag}}</span></a> | ||
{% endfor %} | ||
</span> | ||
{% endmacro %} |
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,38 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block head %} | ||
<style> | ||
body { | ||
font-family: Hack; | ||
line-height: 1.5; | ||
} | ||
main { | ||
text-align: left; | ||
padding: 2ch; | ||
} | ||
header { | ||
margin-bottom: 1.5rem; | ||
} | ||
h1 { | ||
margin-bottom: .5rem; | ||
} | ||
</style> | ||
{% endblock head %} | ||
|
||
{% block header %} | ||
<h1 class="title">Tags</h1> | ||
{% endblock header %} | ||
|
||
{% block content %} | ||
<main> | ||
<p class="subtitle">{{ terms | length }} tags in total</p> | ||
|
||
<ul> | ||
{% for tag in terms %} | ||
<li> | ||
<a href="{{ get_taxonomy_url(kind='tags', name=tag.name) }}">{{tag.name}}</a> - {{ tag.pages | length }} | ||
{% endfor %} | ||
</li> | ||
</ul> | ||
</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,49 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block head %} | ||
<style> | ||
body { | ||
font-family: Hack; | ||
line-height: 1.5; | ||
} | ||
main { | ||
width: 80ch; | ||
padding: 2ch; | ||
} | ||
header { | ||
margin-bottom: 1.5rem; | ||
} | ||
h1 { | ||
margin-bottom: .5rem; | ||
} | ||
</style> | ||
{% endblock head %} | ||
|
||
{% block header %} | ||
<header> | ||
<h1 class="title">Tag: {{ term.name }}</h1> | ||
</header> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<main> | ||
{% if paginator %} | ||
{% set pages = paginator.pages %} | ||
{% else %} | ||
{% set pages = term.pages %} | ||
{% endif %} | ||
|
||
<ul> | ||
{% for page in pages %} | ||
<li> | ||
<a href="{{ page.permalink | safe }}">{% if page.extra.display_title %}{{ page.extra.display_title | markdown(inline=true) | safe }}{% else %}{{ page.title }}{% endif %} ({{ page.date }})</a> | ||
<div>{% if page.taxonomies.tags %} | ||
{{ macros::render_tags(tags=page.taxonomies.tags) }} | ||
{% endif %}</div> | ||
<p>{{ page.summary | safe }}</p> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
|
||
</main> | ||
{% endblock content %} |