on 66c19ee help sign in
urbit.org/templates/list.html
48 lines 1.8 kB history raw
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{% block description %}
7 <meta name="og:description" content="Directory for {{ section.title }}.">
8 <meta name="description" content="Directory for {{ section.title }}.">
9{% endblock description %}
11{% block image %}
12 <meta name="twitter:image" content="https://media.urbit.org/logo/urbit-logo-card.png">
13{% endblock image %}
15{% block content %}
16<!-- header -->
17<nav class="mt4 full fourth-1-lg mb3 mb0-m mb0-l mb0-xl">
18 <a class="gray3" href="/">Urbit</a>
19 <span class="gray3"> / </span>
20 <a href="/{{ section.components[0] }}{% if section.components[2] %}/{{ section.components[1] }}{% endif %}">
21 {{ section.title }}
22 </a>
23 {% include "partials/navigation-search.html" %}
24</nav>
25<!-- content -->
26<article class="mt4 mb7 c1-12 c4-12-lg">
27 <ul class="posts">
28 {% set posts = get_section(path=section.relative_path) %}
29 {% for page in posts.pages %}
30 <li class="mb4">
31 <h2 class="f4 fw4 mt0 mb0"><a class="bb-0" href="{{ page.permalink }}">{{ page.title }}</a></h2>
32 <p class="mt0">{{ page.description }}</p>
33 <span class="mono f5">
34 {% if page.extra.ship %}<address class="mono f5 ml2">{{ page.extra.ship }}</address> {% endif %}
35 </span>
36 </li>
37 {% endfor %}
38 {% for s in posts.subsections %}
39 {% set subsection = get_section(path=s) %}
40 <li class="mb4">
41 <h2 class="f4 fw4 mt0 mb0"><a class="bb-0" href="{{ subsection.permalink }}">{{ subsection.title }}</a></h2>
42 <p class="mt0">{{ subsection.description }}</p>
43 </li>
44 {% endfor %}
45 </ul>
46</article>
47{% include "partials/footer.html" %}
48{% endblock content %}