summaryrefslogtreecommitdiff
path: root/templates/project-page.html
blob: c024b10364927b83d9df5d6ee3001371bd3b07f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{% extends "base.html" %}

{% block content %}
<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>
{% 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 }}
{% 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 %}