on master help sign in
docs: add hoon template
commit55944485b1405cf1bc61307d3416935a6e5c8d6a authorMatilde Park <matilde@tlon.io> dateMon 23 Dec 2019, 17:57 (7 years ago) parent821134e
1 file changed+52
templates/sections/docs/hoon.html+52
templates/sections/docs/hoon.htmlnew file+52
@@ -0,0 +1,52 @@
1+{% extends "base.html" %}
2+{% block title %}
3+ <meta name="og:title" content="{{ section.title }} - {{ config.title }}">
4+ <title>{{ section.title }} - {{ config.title }}</title>
5+{% endblock title %}
6+
7+{% block description %}
8+ <meta name="og:description" content="From the Urbit documentation.">
9+ <meta name="description" content="From the Urbit documentation.">
10+{% endblock description %}
11+
12+{% block image %}
13+ <meta name="twitter:image" content="https://media.urbit.org/logo/urbit-logo-card.png">
14+{% endblock image %}
15+
16+{% block content %}
17+<!-- header -->
18+<!-- content -->
19+{% include "partials/navigation-docs.html" %}
20+<article class="mt4 mb6 full c4-11-lg">
21+<!-- header -->
22+<h1>{{ section.title }}</h1>
23+<!-- body -->
24+
25+<div class="measure-wide mb4">
26+{{ section.content | safe }}
27+
28+{% set lessons = get_section(path="docs/tutorials/hoon/_index.md") %}
29+
30+<ul>
31+ <h2 class="mv4">Chapter 1</h2>
32+{% for lesson in lessons.pages %}
33+ {% if lesson.title is starting_with("1") %}
34+ <li><a href="{{lesson.permalink}}">{{lesson.title}}</a></li>
35+ {% endif %}
36+{% endfor %}
37+ <h2 class="mv4">Chapter 2</h2>
38+ {% for lesson in lessons.pages %}
39+ {% if lesson.title is starting_with("2") %}
40+ <li><a href="{{lesson.permalink}}">{{lesson.title}}</a></li>
41+ {% endif %}
42+{% endfor %}
43+
44+<br/>
45+{% for lesson in lessons.pages %}
46+ {% if (lesson.title is not starting_with("2")) and (lesson.title is not starting_with("1")) %}
47+ <li><a href="{{lesson.permalink}}">{{lesson.title}}</a></li>
48+ {% endif %}
49+{% endfor %}
50+</ul>
51+</div>
52+{% endblock content %}