on master help sign in
Added taxonomy templates
commitf64ea519e6033304e3c4dd1d3a15a549b13555b8 authorTyler Brown Cifu Shuster <tyler@fivepaths.com> dateWed 28 Apr 2021, 13:47 (6 years ago) parent0b4d35c
7 files changed+86−5
content/docs+1−1 templates/grant_category/list.html+1−1 templates/grants/list.html+1−1 templates/post_type/list.html+1−1 templates/post_type/single.html+1−1 templates/taxonomy/list.html+33 templates/taxonomy/single.html+48
content/docs+1−1

Submodule changed.

templates/grant_category/list.html+1−1
@@ -1 +1 @@
1−{% extends "base.html" %}
1+{% extends "taxonomy/list.html" %}
templates/grants/list.html+1−1
@@ -36,7 +36,7 @@
3636 <li><strong>Gifts</strong>: Given post facto to exceptional contributors. <a class="bb" href="/post-type/gift">See previous gift recipients.</a></li>
3737 </ul>
3838
39− <div class="flex tc mv5">
39+ <div class="flex tc mv5 flex-wrap">
4040 <figure class="flex-auto">
4141 <span class="f2">&gt;200</span>
4242 <figcaption class="f5">Stars Awarded</figcaption>
templates/post_type/list.html+1−1
@@ -1 +1 @@
1−TODO
1+{% extends "taxonomy/list.html" %}
templates/post_type/single.html+1−1
@@ -1 +1 @@
1−TODO.
1+{% extends "taxonomy/single.html" %}
templates/taxonomy/list.htmlnew file+33
@@ -0,0 +1,33 @@
1+{% extends "base.html" %}
2+
3+{% block title %}
4+<meta name="og:title" content="Blog - {{ config.title }}">
5+<title>Blog - {{ config.title }}</title>
6+{% endblock title %}
7+
8+{% block description %}
9+<meta name="og:description" content="Urbit {{ taxonomy.name }} post archive">
10+<meta name="description" content="Urbit {{ taxonomy.name }} post archive">
11+{% endblock description %}
12+
13+{% block image %}
14+<meta name="twitter:image" content="https://media.urbit.org/logo/urbit-logo-card.png">
15+{% endblock image %}
16+
17+{% block content %}
18+<!-- header -->
19+<nav class="mt4 full fourth-1-lg mb3 mb0-m mb0-l mb0-xl">
20+ <a class="gray3" href="/">Urbit</a>
21+ {% include "partials/navigation-search.html" %}
22+</nav>
23+<!-- content -->
24+<article class="mt4 mb4 c1-13 c4-12-lg">
25+ <h1>{{ taxonomy.name }} Posts</h1>
26+ <ul class="posts measure-wide">
27+ {% for term in terms %}
28+ <li><a href="{{ term.permalink }}">{{ term.name }}</a> ({{ term.pages | length }} posts)</li>
29+ {% endfor %}
30+ </ul>
31+</article>
32+{% include "partials/footer.html" %}
33+{% endblock content %}
templates/taxonomy/single.htmlnew file+48
@@ -0,0 +1,48 @@
1+{% extends "base.html" %}
2+
3+{% block title %}
4+<meta name="og:title" content="Blog - {{ config.title }}">
5+<title>Blog - {{ config.title }}</title>
6+{% endblock title %}
7+
8+{% block description %}
9+<meta name="og:description" content="Urbit {{ term.name }} Archive">
10+<meta name="description" content="Urbit {{ term.name }} Archive">
11+{% endblock description %}
12+
13+{% block image %}
14+<meta name="twitter:image" content="https://media.urbit.org/logo/urbit-logo-card.png">
15+{% endblock image %}
16+
17+{% block content %}
18+<!-- header -->
19+<nav class="mt4 full fourth-1-lg mb3 mb0-m mb0-l mb0-xl">
20+ <a class="gray3" href="/">Urbit</a>
21+ <span class="gray3"> / </span>
22+ <a href="/blog">
23+ Blog
24+ </a>
25+ {% include "partials/navigation-search.html" %}
26+</nav>
27+<!-- content -->
28+<article class="mt4 mb4 c1-13 c4-12-lg">
29+ <ul class="posts measure-wide">
30+ {% for page in term.pages %}
31+ <a class="bb-0" href="{{ page.permalink }}">
32+ <li class="mb4">
33+ <h2 class="f5 fw6 mt0 mb1">{{ page.title }}</h2>
34+ <p class="mt0">{{ page.description }}</p>
35+ {% if page.extra.image %}
36+ <img class="pv2 obj-cover h5 w-100" src="{{ page.extra.image }}"/>
37+ {% endif %}
38+ <time class="mono f6">{{ page.date | date(format="~%Y.%-m.%-d") }}</time>
39+ <span class="mono f6">
40+ {% if page.extra.ship %}<address class="mono f6 ml2">{{ page.extra.ship }}</address> {% endif %}
41+ </span>
42+ </li>
43+ </a>
44+ {% endfor %}
45+ </ul>
46+</article>
47+{% include "partials/footer.html" %}
48+{% endblock content %}