diff options
Diffstat (limited to 'packages/web/site/templates')
| -rw-r--r-- | packages/web/site/templates/index.html | 2 | ||||
| -rw-r--r-- | packages/web/site/templates/page.html | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/packages/web/site/templates/index.html b/packages/web/site/templates/index.html index bc2994a..41954b6 100644 --- a/packages/web/site/templates/index.html +++ b/packages/web/site/templates/index.html @@ -7,7 +7,7 @@ <div style="margin-bottom: 3em"> <h1>{{ section.title }}</h1> <ul style="list-style: none; padding-left: 0"> - {% for page in section.pages | slice(end=3) %} + {% for page in section.pages[-3:] %} <li style="margin-bottom: 1em"> <a href="{{ page.path }}">{{ page.title }}</a> <br /> diff --git a/packages/web/site/templates/page.html b/packages/web/site/templates/page.html index 8189fe6..32e13f3 100644 --- a/packages/web/site/templates/page.html +++ b/packages/web/site/templates/page.html @@ -1,11 +1,10 @@ {% extends "base.html" %} -{% if page.title %} {% block title%} +{% if page.title %} {{ page.title }} :: {{ super() }} -{% endblock title %} {% endif %} - +{% endblock title %} {% block content %} <article> |
