aboutsummaryrefslogtreecommitdiff
path: root/templates/tags
diff options
context:
space:
mode:
authorJieiku2022-05-30 23:20:43 -0700
committerJieiku2022-05-30 23:20:43 -0700
commit30ea88e8d8c201c3fcce409a54712de820610dff (patch)
treeccf9c2ea31816153f59c725d85ba8eaa54e3ef21 /templates/tags
parentd8cd3b9988f9021ea1b285db3231048acb7b74f4 (diff)
downloadabridge-30ea88e8d8c201c3fcce409a54712de820610dff.tar.gz
abridge-30ea88e8d8c201c3fcce409a54712de820610dff.tar.bz2
abridge-30ea88e8d8c201c3fcce409a54712de820610dff.zip
Add Favicons, Add Head Macro, 404 noindex, config.toml Resources, Whitespace Cleanup
Diffstat (limited to 'templates/tags')
-rw-r--r--templates/tags/list.html26
-rw-r--r--templates/tags/single.html20
2 files changed, 23 insertions, 23 deletions
diff --git a/templates/tags/list.html b/templates/tags/list.html
index 56575df..2dd3497 100644
--- a/templates/tags/list.html
+++ b/templates/tags/list.html
@@ -1,16 +1,16 @@
{% extends "base.html" %}
-{% block content %}
- <div>
- <center>
- <h1>{{ terms | length }} Tags</h1>
- <p>{% for term in terms -%}#<a href="#{{ term.name }}">{{ term.name }}</a> &nbsp; {%- endfor %}</p>
- </center>
- {% for term in terms -%}
+{%- block content %}
+ <div>
+ <center>
+ <h1>{{ terms | length }} Tags</h1>
+ <p>{%- for term in terms %}#<a href="#{{ term.name }}">{{ term.name }}</a> &nbsp; {%- endfor %}</p>
+ </center>
+ {%- for term in terms %}
<h2 id="{{ term.name }}">#<a href="{{ term.permalink | safe }}">{{ term.name }}</a></h2>
- {% for page in term.pages -%}
- <p><a href="{{ page.permalink | safe }}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format=config.extra.timeformat | default(value="%B %e, %Y")) }}</time></p>
- {% endfor -%}
- {% endfor -%}
- </div>
-{% endblock content %}
+ {%- for page in term.pages %}
+ <p><a href="{{ page.permalink | safe }}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format=config.extra.timeformat | default(value="%B %e, %Y")) }}</time></p>
+ {%- endfor %}
+ {%- endfor %}
+ </div>
+{%- endblock content %}
diff --git a/templates/tags/single.html b/templates/tags/single.html
index 2bddb8e..d9d03eb 100644
--- a/templates/tags/single.html
+++ b/templates/tags/single.html
@@ -1,13 +1,13 @@
{% extends "base.html" %}
-{% block content %}
- <div>
- <h2>{{ term.name }}</h2>
- {% for year, posts in term.pages | group_by(attribute="year") %}
+{%- block content %}
+ <div>
+ <h2>{{ term.name }}</h2>
+ {%- for year, posts in term.pages | group_by(attribute="year") %}
<h3>{{ year }}</h3>
- {% for page in term.pages %}
- <p><a href="{{ page.permalink | safe }}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format=config.extra.timeformat | default(value="%B %e, %Y")) }}</time></p>
- {% endfor %}
- {% endfor %}
- </div>
-{% endblock content %}
+ {%- for page in term.pages %}
+ <p><a href="{{ page.permalink | safe }}">{{ page.title }}</a> - <time datetime="{{ page.date }}">{{ page.date | date(format=config.extra.timeformat | default(value="%B %e, %Y")) }}</time></p>
+ {%- endfor %}
+ {%- endfor %}
+ </div>
+{%- endblock content %}