aboutsummaryrefslogtreecommitdiff
path: root/_includes
diff options
context:
space:
mode:
Diffstat (limited to '_includes')
-rw-r--r--_includes/outdated.html5
-rw-r--r--_includes/posts.html18
-rw-r--r--_includes/search.html6
3 files changed, 29 insertions, 0 deletions
diff --git a/_includes/outdated.html b/_includes/outdated.html
new file mode 100644
index 0000000..a1c5489
--- /dev/null
+++ b/_includes/outdated.html
@@ -0,0 +1,5 @@
+<blockquote class="admonition warning" hidden x-unhide-after="{{ include.date | date: "%s" | plus: site.stale_threshold }}">
+ <p class="title">Warning</p>
+ <p>This post was last updated on {{ include.date | datefmt }}, and may no
+ longer contain accurate or up-to-date information.</p>
+</blockquote>
diff --git a/_includes/posts.html b/_includes/posts.html
new file mode 100644
index 0000000..cdd9b47
--- /dev/null
+++ b/_includes/posts.html
@@ -0,0 +1,18 @@
+<link rel="stylesheet" href="style.css">
+
+{% include search.html %}
+
+<table id="posts" class="plainlink">
+ <tr>
+ <th><a href="by-date" class="{% if include.sort == "date" %}sortcolumn{% endif %}">date</a></th>
+ <th><a href="by-title" class="{% if include.sort == "title" %}sortcolumn{% endif %}">title</a></th>
+ </tr>
+ {% assign posts = site.items | post_sort: include.sort %}
+ {% for post in posts %}
+ <tr>
+ <td>{{ post.date | datefmt }}</td>
+ <td><a href="{{ post.url }}">{{ post.title }}</a></td>
+ </tr>
+ {% endfor %}
+</table>
+
diff --git a/_includes/search.html b/_includes/search.html
new file mode 100644
index 0000000..cc8cd56
--- /dev/null
+++ b/_includes/search.html
@@ -0,0 +1,6 @@
+<form id="search" method="get" action="https://google.com/search">
+ <input type="text" placeholder="search" name="q" spellcheck="false" autocomplete="off">
+ <input type="hidden" name="q" value="site:{{ site.domain }}">
+ <input type="submit">
+</form>
+