diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/project-page.html | 15 | ||||
-rw-r--r-- | templates/projects.html | 2 |
2 files changed, 16 insertions, 1 deletions
diff --git a/templates/project-page.html b/templates/project-page.html index 3e8e2e4..c024b10 100644 --- a/templates/project-page.html +++ b/templates/project-page.html @@ -4,8 +4,13 @@ <a href="{{ get_url(path='@/projects/_index.md') }}"> <- back to projects</a> <h1 class="title"> {{ page.title }} + {% if page.extra.wip %} + (<span class="wip-indicator">wip</span>) + {% endif %} </h1> +{% if page.description %} <p><strong>{{ page.description }}</strong></p> +{% endif %} {% if page.taxonomies.categories %} <p>category: {{ page.taxonomies.categories[0] }}</p> @@ -39,4 +44,14 @@ {% endif %} <br/> {{ page.content | safe }} +{% set project = get_taxonomy_term(kind="projects", term=page.title, required=false) %} +{% if project and project.page_count > 0 %} +<br/> +<p><strong>related blog posts:</strong></p> +<ul> + {% for page in project.pages %} + <li><a href="{{ page.permalink }}">{{ page.title }}</a> ({{ page.date }})</li> + {% endfor %} +</ul> +{% endif %} {% endblock content %} diff --git a/templates/projects.html b/templates/projects.html index 8b01177..4b042a4 100644 --- a/templates/projects.html +++ b/templates/projects.html @@ -11,7 +11,7 @@ <b>{{category.name}}</b> <ul> {% for page in category.pages %} - <li><a href="{{ page.permalink | safe }}">{{ page.title }}: {{ page.description }}</a></li> + <li><a href="{{ page.permalink | safe }}">{{ page.title }}{% if page.description %}: {{ page.description }}{% endif %}</a>{% if page.extra.wip %} (<span class="wip-indicator">wip</span>){% endif %}</li> {% endfor %} </ul> {% endfor %} |