on master help sign in
UU pages have a sidebar
831fad6Matilde Park
content/understanding-urbit/_index.md+1−1
@@ -2,5 +2,5 @@
2title = "Understanding Urbit"
2title = "Understanding Urbit"
3sort_by = "weight"
3sort_by = "weight"
4template = "understanding-urbit/list.html"
4template = "understanding-urbit/list.html"
5−page_template = "essays/post.html"
5+page_template = "understanding-urbit/post.html"
6+++
6+++
templates/page_indiced.html+2−2
@@ -36,13 +36,13 @@
36
36
37{% for h2 in toc %}
37{% for h2 in toc %}
38{% if h2.children %}
38{% if h2.children %}
39−<details class="dn mw5-xl mt2 mw5-l db-l db-xl page-indiced"><summary>{{ h2.title }}</summary>
39+<details class="dn mw5-xl mt2 mw5-l db-xl page-indiced"><summary>{{ h2.title }}</summary>
40 {% for h3 in h2.children %}
40 {% for h3 in h2.children %}
41 <li class="ml3 mv1"><a href="{{h3.permalink | safe}}">{{h3.title}}</a></li>
41 <li class="ml3 mv1"><a href="{{h3.permalink | safe}}">{{h3.title}}</a></li>
42 {% endfor %}
42 {% endfor %}
43</details>
43</details>
44{% else %}
44{% else %}
45− <li class="dn mw5-xl mw5-l db-l db-xl page-indiced mv2"><a href="{{h2.permalink}}">{{h2.title}}</a></li>
45+ <li class="dn mw5-xl mw5-l db-xl page-indiced mv2"><a href="{{h2.permalink}}">{{h2.title}}</a></li>
46{% endif %}
46{% endif %}
47{% endfor %}
47{% endfor %}
48</nav>
48</nav>
templates/understanding-urbit/post.htmlnew file+56
@@ -0,0 +1,56 @@
1+{% extends "base.html" %}
2+{% block title %}
3+ {{ page.title }}
4+{% endblock title %}
5+
6+{% block description %} {{ page.description }} {% endblock description %}
7+
8+{% block bodyclasses %}
9+ class="essay
10+ {% if page.extra.classes %}
11+ {{ page.extra.classes }}
12+ {% else %}
13+ bg-white
14+ {% endif %}"
15+{% endblock bodyclasses %}
16+
17+{% block content %}
18+<nav class="mt4 full fourth-1-lg mb3 mb0-m mb0-l mb0-xl fixed-xl">
19+ <a class="gray3" href="/">Urbit</a>
20+ <span class="gray3"> / </span>
21+ <a class="section" href="/{{ page.components[0] }}">
22+ {% set sectionname = get_section(path=page.components[0] ~ "/_index.md") %}
23+ {{ sectionname.title }}
24+ </a>
25+
26+ {% include "partials/navigation-search.html" %}
27+ {% set posts = get_section(path="understanding-urbit/_index.md") %}
28+ {% for directorypage in posts.pages %}
29+ {% if directorypage.title == page.title %}
30+ <li class="dn mw5-xl mw5-l db-xl page-indiced mv2"><a class="fw6" href="{{directorypage.permalink}}">{{directorypage.title}}</a></li>
31+ {% else %}
32+ <li class="dn mw5-xl mw5-l db-xl page-indiced mv2"><a href="{{directorypage.permalink}}">{{directorypage.title}}</a></li>
33+ {% endif %}
34+ {% endfor %}
35+</nav>
36+ <h1 class="mb4 full mt4 c4-10-lg">{{ page.title }}</h1>
37+ {% if page.extra.author %}
38+ <span class="dib full c4-10-lg" rel="author"> {{ page.extra.author }}
39+ {% if page.extra.ship %}
40+ <address class="dib fw4 ml2 mono">{{ page.extra.ship }}</address>
41+ {% endif %}
42+ </span>
43+ {% if page.date %}
44+ <time class="mono full c4-10-lg db mv2 gray0 f5">{{page.date | date(format="~%Y.%-m.%-d") }}</time>
45+ {% endif %}
46+{% endif %}
47+ {% if page.extra.readtime %}
48+ <span class="dib mono full c4-10-lg{% if page.date %} ml2{% endif %} gray2 f5">{{ page.reading_time }}m read</span>
49+ {% endif %}
50+
51+ <article class="mb4 full grid12">
52+ {{ page.content | safe }}
53+
54+ {% include "partials/pagination.html" %}
55+ </article>
56+{% endblock content %}