summaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2018-07-08 15:46:56 +0200
committerPatrick Spek <p.spek@tyil.nl>2018-07-08 15:46:56 +0200
commitd16530d61a04435fd8cb4d4770c4ac715ac8ef0e (patch)
tree46499a98c6f890622e5ccbf9cf43725a7597c7e4 /_layouts
Initial commit
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/default.html13
-rw-r--r--_layouts/key.html15
-rw-r--r--_layouts/post.html43
3 files changed, 71 insertions, 0 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
new file mode 100644
index 0000000..d923f68
--- /dev/null
+++ b/_layouts/default.html
@@ -0,0 +1,13 @@
+<!DOCTYPE html>
+<html lang="en">
+ {% include head.html %}
+ <body>
+ {% include header.html %}
+ <main>
+ <div class="container">
+ {{ content }}
+ </div>
+ </main>
+ {% include footer.html %}
+ </body>
+</html>
diff --git a/_layouts/key.html b/_layouts/key.html
new file mode 100644
index 0000000..62e537e
--- /dev/null
+++ b/_layouts/key.html
@@ -0,0 +1,15 @@
+---
+layout: key
+---
+
+<!doctype html>
+<html>
+ {% include head.html %}
+ <body>
+ <main>
+ <pre>
+{{ content }}
+ </pre>
+ </main>
+ </body>
+</html>
diff --git a/_layouts/post.html b/_layouts/post.html
new file mode 100644
index 0000000..b3d68f4
--- /dev/null
+++ b/_layouts/post.html
@@ -0,0 +1,43 @@
+---
+layout: default
+---
+
+<article>
+ <header>
+ <h1>
+ {{ page.title }}
+ {% if page.wip %}
+ <span class="badge badge-warning">
+ WIP
+ </span>
+ {% endif %}
+ </h1>
+ </header>
+ <main>
+ {{ content }}
+ </main>
+ <footer>
+ <p class="text-center">
+ <a 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>
+ </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>