From 6d2f00dfe6d3279d2239cf0135dcd017d1bae46b Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Thu, 15 Aug 2024 01:50:22 -0400 Subject: project page + pomd page --- templates/project-page.html | 42 ++++++++++++++++++++++++++++++++++++++++++ templates/projects.html | 19 +++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 templates/project-page.html (limited to 'templates') 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 %} + <- back to projects +

+ {{ page.title }} +

+

{{ page.description }}

+ +{% if page.taxonomies.categories %} +

category: {{ page.taxonomies.categories[0] }}

+{% endif %} +{% if page.extra.finished %} +

finished: {{ page.extra.finished }}

+{% endif %} +{% if page.taxonomies.languages %} +

+ languages: + {% for language in page.taxonomies.languages %} + {{ language }} + {% endfor %} +

+{% endif %} +{% if page.extra.github %} +

+ github: + {% for repo in page.extra.github %} + {{ repo }} + {% endfor %} +

+{% endif %} +{% if page.extra.crates %} +

+ crates.io: + {% for crate in page.extra.crates %} + {{ crate }} + {% endfor %} +

+{% endif %} +
+{{ 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 %} + <- back to landing +

+ {{ section.title }} +

+{% set categories = get_taxonomy(kind="categories") %} + +{% for category in categories.items %} +{{category.name}} + +{% endfor %} + +{% endblock content %} -- cgit v1.2.3