Skip to content

Commit d273dac

Browse files
Add projects listing page (#18)
1 parent 2082178 commit d273dac

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

content/pages/projects.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Title: Projects
2+
Template: projects
3+
Status: hidden
4+
5+
The various libraries we maintain.

theme/templates/projects.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{% extends "!simple/page.html" %}
2+
3+
{% block content %}
4+
<header>
5+
<h2>{{ page.title }}</h2>
6+
</header>
7+
{% import 'translations.html' as translations with context %}
8+
{{ translations.translations_for(page) }}
9+
10+
{{ page.content }}
11+
12+
{% for p in pages|sort(attribute='title') if p.prefix == "projects/" %}
13+
<article>
14+
<h3><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></h3>
15+
{{ p.summary }}
16+
</article>
17+
{% endfor %}
18+
{% endblock %}

0 commit comments

Comments
 (0)