on master help sign in
UU: Introduction bottom navigation
commitc2b1d334db8bddf1d2e458c1d7c3df069dc2daa2 authorMatilde Park <matilde@park.computer> dateWed 9 Oct 2019, 14:27 (7 years ago) parent699d10a
2 files changed+11−24
templates/partials/pagination.html−9 templates/understanding-urbit/list.html+11−15
templates/partials/pagination.html−9
@@ -27,15 +27,6 @@
2727 </nav>
2828 </a>
2929
30− {% elif page.lighter %}
31−
32− <a class="bb-0" href="{{page.lighter.permalink}}">
33− <nav class="next mv5 absolute left-2 f4">
34− <p class="mb0 f5">Previous Post:</p>
35− <p class="fw6 f5 f4-l f4-xl mb0 mt0">{{page.lighter.title}}</p>
36− </nav>
37− </a>
38−
3930 {% endif %}
4031
4132</footer>
templates/understanding-urbit/list.html+11−15
@@ -65,20 +65,16 @@
6565 <p class="lh-copy">Urbit is a large, ambitious project. But at the core it’s durable, simple and yours.</p>
6666 </section>
6767 </section>
68− <article class="mt4 mb6 full c4-10-lg">
69− <p class="mb5">Want to continue down this rabbit hole? If you’re new to Urbit
70− and want to learn more, start from the beginning. If you’re technical, start
71− with the technical overview.</p>
72− <ul class="posts">
73− {% set posts = get_section(path="understanding-urbit/_index.md") %}
74− {% for page in posts.pages %}
75− <li class="mb4 ml0"><a class="bn" href="{{ page.permalink }}">
76− <h2 class="f4 dib ml0 fw4 mt0 mb0 b--black bb lh-solid">{{ page.title }}</h2>
77− <p class="mt1 db">{{ page.description }}</p>
78− </a>
79− </li>
80− {% endfor %}
81− </ul>
68+ <footer class="relative mt4 c4-10-lg full">
69+ {% set posts = get_section(path="understanding-urbit/_index.md") %}
70+ {% for directorypage in posts.pages | slice (end=1) %}
71+ <a class="bb-0" href="{{directorypage.permalink}}">
72+ <nav class="previous mv5 absolute right-2 f4 t-right">
73+ <p class="mb0 f5">Next Post:</p>
74+ <p class="fw6 f5 f4-l f4-xl mb0 mt0">{{directorypage.title}}</p>
75+ </nav>
76+ </a>
77+ {% endfor %}
78+ </footer>
8279</article>
83−{% include "partials/footer.html" %}
8480{% endblock content %}