summaryrefslogtreecommitdiff
path: root/static/src/_layouts
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2022-05-21 14:07:14 -0600
committerBrian Picciano <mediocregopher@gmail.com>2022-05-21 14:07:14 -0600
commitf3340ae5f4ac6c60823bf4d14e1fcdbeaaec353c (patch)
tree41d7eda870083cfa0776d650478ceeb2baee2837 /static/src/_layouts
parent55eb40d4bb489b2b26ab5d0ce2c70c7cb2f766b7 (diff)
Remove old code related to static, it's not needed anymore
Diffstat (limited to 'static/src/_layouts')
-rw-r--r--static/src/_layouts/code.html10
-rw-r--r--static/src/_layouts/default.html22
-rw-r--r--static/src/_layouts/page.html13
-rw-r--r--static/src/_layouts/post.html80
4 files changed, 0 insertions, 125 deletions
diff --git a/static/src/_layouts/code.html b/static/src/_layouts/code.html
deleted file mode 100644
index 18cfb3b..0000000
--- a/static/src/_layouts/code.html
+++ /dev/null
@@ -1,10 +0,0 @@
----
-layout: default
----
-
-{% capture body %}```{{ page.lang | default: "go" }}
-{% include_relative {{ page.include }} %}```{% endcapture %}
-
-<br/><a href="{{ page.include }}">Raw source file</a>
-
-{{ body | markdownify }}
diff --git a/static/src/_layouts/default.html b/static/src/_layouts/default.html
deleted file mode 100644
index 5df9d6d..0000000
--- a/static/src/_layouts/default.html
+++ /dev/null
@@ -1,22 +0,0 @@
-<!DOCTYPE html>
-<html lang="{{ page.lang | default: site.lang | default: "en" }}">
-
- {%- include head.html -%}
-
- <body>
-
- <div class="container">
-
- {%- include header.html -%}
-
- <main aria-label="Content">
- {{ content }}
- </main>
-
- {%- include footer.html -%}
-
- </div>
-
- </body>
-
-</html>
diff --git a/static/src/_layouts/page.html b/static/src/_layouts/page.html
deleted file mode 100644
index 469413a..0000000
--- a/static/src/_layouts/page.html
+++ /dev/null
@@ -1,13 +0,0 @@
----
-layout: default
----
-
-<header id="post-header">
- <h1 id="post-headline" itemprop="name headline">
- {{ page.title | escape }}
- </h1>
-</header>
-
-<div id="post-content">
- {{ content }}
-</div>
diff --git a/static/src/_layouts/post.html b/static/src/_layouts/post.html
deleted file mode 100644
index d55f3eb..0000000
--- a/static/src/_layouts/post.html
+++ /dev/null
@@ -1,80 +0,0 @@
----
-layout: default
----
-<article itemscope itemtype="http://schema.org/BlogPosting">
-
- <header id="post-header">
- <h1 id="post-headline" itemprop="name headline">
- {{ page.title | escape }}
- </h1>
- <div class="light">
- <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
- <span itemprop="name">{{ site.author }}</span>
- </span>
- <!-- • -->
- <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
- {{ page.date | date: site.date_format }}
- </time>
- &nbsp;•&nbsp;
- {%- if page.updated %}
- <time datetime="{{ page.updated | date_to_xmlschema }}" itemprop="dateModified">
- (Updated {{ page.updated | date: site.date_format }})
- </time>
- &nbsp;•&nbsp;
- {% endif -%}
- <description itemprop="about"><em>{{ page.description }}</em></description>
- </div>
- </header>
-
- {% if page.series %}
- {% assign foundThis = false %}
- {% for post in site.posts reversed %}
- {% if post.series == page.series %}
- {% if post.url == page.url %}
- {% assign foundThis = true %}
- {% elsif foundThis %}
- {% assign next = post %}
- {% break %}
- {% else %}
- {% assign prev = post %}
- {% endif %}
- {% endif %}
- {% endfor %}
- {% if prev or next %}
- <p class="light"><em>
- This post is part of a series:<br/>
- {% if prev %}
- Previously: <a href="{{ prev.url | relative_url }}">{{ prev.title }}</a></br>
- {% endif %}
- {% if next %}
- Next: <a href="{{ next.url | relative_url }}">{{ next.title }}</a></br>
- {% endif %}
- </em></p>
- {% endif %}
- {% endif %}
-
- <div id="post-content" itemprop="articleBody">
- {{ content }}
- </div>
-
- {% if page.git_repo %}
- <p class="light">
- <em>To check this project out locally:</em></br>
- <pre><code>git clone {{ page.git_repo }}
-{% if page.git_commit %}git checkout {{ page.git_commit }}{% endif %}</code></pre>
- </p>
- {% endif %}
-
- {% if prev or next %}
- <p class="light"><em>
- If you liked this post, consider checking out other posts in the series:<br/>
- {% if prev %}
- Previously: <a href="{{ prev.url | relative_url }}">{{ prev.title }}</a></br>
- {% endif %}
- {% if next %}
- Next: <a href="{{ next.url | relative_url }}">{{ next.title }}</a></br>
- {% endif %}
- </em></p>
- {% endif %}
-
-</article>