diff options
author | Silas Bartha <[email protected]> | 2024-08-15 01:50:22 -0400 |
---|---|---|
committer | Silas Bartha <[email protected]> | 2024-08-15 01:50:22 -0400 |
commit | 6d2f00dfe6d3279d2239cf0135dcd017d1bae46b (patch) | |
tree | 9040825448ace79226fa7bcfc2dd39c3cf7de589 /templates | |
parent | e2f7f90c4a14883c30acab7353ac6e8d645a715c (diff) |
project page + pomd page
Diffstat (limited to 'templates')
-rw-r--r-- | templates/project-page.html | 42 | ||||
-rw-r--r-- | templates/projects.html | 19 |
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 %} |