summaryrefslogtreecommitdiff
path: root/src/_layouts/post.html
blob: d979adbe258829bfd4dc9f43cf452feaf0ad6d91 (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
---
layout: default
---

<article>
	<header>
		<h1>
			{{ page.title }}
			{% if page.wip %}<small>Work in progress!</small>{% endif %}
		</h1>
		<small>
			{% for tag in page.tags %}
			<a href="{{ site.baseurl | prepend: site.url }}/tag/{{ tag | slugify }}">#{{ tag | slugify }}</a>
			{% endfor %}
		</small>
	</header>
	<main>
		{{ content }}
	</main>
	<footer>
		<p class="text-center">
			<a class="image-link" rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">
				<img alt="Creative Commons License" style="border-width:0" src="{{ "/img/cc-by-sa.png" | prepend: site.baseurl }}" />
			</a>{% if page.social %}
			<span class="footer-link-seperator"></span>
			{% for media in page.social %}
			<a class="image-link" href="{{ media[1] }}">
				<img alt="{{ media[0] }}" src="{{ media[0] | append: ".png" | prepend: "/img/" | prepend: site.baseurl }}" />
			</a>
			{% endfor %}
			{% endif %}
		</p>
		{% if page.authors %}
			<p>
				This <span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/Text" rel="dct:type">work</span> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/4.0/">Creative Commons Attribution-ShareAlike 4.0 International License</a>.
				You can freely modify and redistribute this work as long as attribution to the author(s) remains:
			</p>
			<ul>
				{% for author in page.authors %}
					<li>
						{% if author[1] %}
							<a xmlns:cc="http://creativecommons.org/ns#" href="{{ author[1] }}" property="cc:attributionName" rel="cc:attributionURL">{{ author[0] }}</a> 
						{% else %}
							{{ author[0] }}
						{% endif %}
					</li>
				{% endfor %}
			</ul>
		{% endif %}
	</footer>
</article>