From c455896ae9e69e2498742ff795e7886dee1ffa23 Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Fri, 5 Feb 2021 09:55:25 +0100 Subject: Move source files into src --- src/_layouts/archive.html | 39 ++++++++++++++++++++++++++++++++ src/_layouts/default.html | 12 ++++++++++ src/_layouts/language-war.html | 40 +++++++++++++++++++++++++++++++++ src/_layouts/post.html | 51 ++++++++++++++++++++++++++++++++++++++++++ src/_layouts/project.html | 22 ++++++++++++++++++ 5 files changed, 164 insertions(+) create mode 100644 src/_layouts/archive.html create mode 100644 src/_layouts/default.html create mode 100644 src/_layouts/language-war.html create mode 100644 src/_layouts/post.html create mode 100644 src/_layouts/project.html (limited to 'src/_layouts') diff --git a/src/_layouts/archive.html b/src/_layouts/archive.html new file mode 100644 index 0000000..c794c22 --- /dev/null +++ b/src/_layouts/archive.html @@ -0,0 +1,39 @@ +--- +layout: default +--- + +{% markdown %} +## Blog posts tagged with #{{ page.title | slugify }} +{% endmarkdown %} + +{% include posts-intro.md %} + +{% for post in page.posts %} + {% if post.wip %}{% continue %}{% endif %} + {% assign this_year = post.date | date: "%Y" %} + + {% if this_year != prev_year %} + {% if forloop.first != true %} + + {% endif %} + +

{{ this_year }}

+ + {% endif %} + + {% assign prev_year = post.date | date: "%Y" %} +{% endfor %} diff --git a/src/_layouts/default.html b/src/_layouts/default.html new file mode 100644 index 0000000..228f4c7 --- /dev/null +++ b/src/_layouts/default.html @@ -0,0 +1,12 @@ + + +{% include head.html %} + +{% include header.html %} +
+
+{{ content }}
+
+{% include footer.html %} + + diff --git a/src/_layouts/language-war.html b/src/_layouts/language-war.html new file mode 100644 index 0000000..31f1085 --- /dev/null +++ b/src/_layouts/language-war.html @@ -0,0 +1,40 @@ + + + + {% include head.html %} + + + + {% include header.html %} +
+
+ {{ content }} +
+ +
+ {% include footer.html %} + + diff --git a/src/_layouts/post.html b/src/_layouts/post.html new file mode 100644 index 0000000..d979adb --- /dev/null +++ b/src/_layouts/post.html @@ -0,0 +1,51 @@ +--- +layout: default +--- + +
+
+

+ {{ page.title }} + {% if page.wip %}Work in progress!{% endif %} +

+ + {% for tag in page.tags %} + #{{ tag | slugify }} + {% endfor %} + +
+
+ {{ content }} +
+
+

+ + Creative Commons License + {% if page.social %} + + {% for media in page.social %} + + {{ media[0] }} + + {% endfor %} + {% endif %} +

+ {% if page.authors %} +

+ This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. + You can freely modify and redistribute this work as long as attribution to the author(s) remains: +

+
    + {% for author in page.authors %} +
  • + {% if author[1] %} + {{ author[0] }} + {% else %} + {{ author[0] }} + {% endif %} +
  • + {% endfor %} +
+ {% endif %} +
+
diff --git a/src/_layouts/project.html b/src/_layouts/project.html new file mode 100644 index 0000000..e85b209 --- /dev/null +++ b/src/_layouts/project.html @@ -0,0 +1,22 @@ +--- +layout: default +--- + +
+
+

{{ page.title }}

+
+
+ {{ content }} +
+ +
-- cgit v1.1