summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/project-page.html42
-rw-r--r--templates/projects.html19
2 files changed, 61 insertions, 0 deletions
diff --git a/templates/project-page.html b/templates/project-page.html
new file mode 100644
index 0000000..3e8e2e4
--- /dev/null
+++ b/templates/project-page.html
@@ -0,0 +1,42 @@
+{% extends "base.html" %}
+
+{% block content %}
+<a href="{{ get_url(path='@/projects/_index.md') }}"> <- back to projects</a>
+<h1 class="title">
+ {{ page.title }}
+</h1>
+<p><strong>{{ page.description }}</strong></p>
+
+{% if page.taxonomies.categories %}
+<p>category: {{ page.taxonomies.categories[0] }}</p>
+{% endif %}
+{% if page.extra.finished %}
+<p>finished: {{ page.extra.finished }}</p>
+{% endif %}
+{% if page.taxonomies.languages %}
+<p>
+ languages:
+ {% for language in page.taxonomies.languages %}
+ <span class="langcolor-{{ language }}">{{ language }}</span>
+ {% endfor %}
+</p>
+{% endif %}
+{% if page.extra.github %}
+<p>
+ github:
+ {% for repo in page.extra.github %}
+ <a href="https://github.com/{{ repo }}" target="_blank">{{ repo }}</a>
+ {% endfor %}
+</p>
+{% endif %}
+{% if page.extra.crates %}
+<p>
+ crates.io:
+ {% for crate in page.extra.crates %}
+ <a href="https://crates.io/crates/{{ crate }}" target="_blank">{{ crate }}</a>
+ {% endfor %}
+</p>
+{% endif %}
+<br/>
+{{ page.content | safe }}
+{% endblock content %}
diff --git a/templates/projects.html b/templates/projects.html
index e69de29..8b01177 100644
--- a/templates/projects.html
+++ b/templates/projects.html
@@ -0,0 +1,19 @@
+{% extends "base.html" %}
+
+{% block content %}
+<a href="{{ get_url(path='@/_index.md') }}"> <- back to landing</a>
+<h1 class="title">
+ {{ section.title }}
+</h1>
+{% set categories = get_taxonomy(kind="categories") %}
+
+{% for category in categories.items %}
+<b>{{category.name}}</b>
+<ul>
+ {% for page in category.pages %}
+ <li><a href="{{ page.permalink | safe }}">{{ page.title }}: {{ page.description }}</a></li>
+ {% endfor %}
+</ul>
+{% endfor %}
+
+{% endblock content %}