aboutsummaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
authorBradley Taunt <bt@btxx.org>2024-07-01 16:23:43 -0400
committerBradley Taunt <bt@btxx.org>2024-07-01 16:23:43 -0400
commit088c87bcb58be576308da503d4f11a68843c5013 (patch)
tree4299b974a40b22fcc9d1d2df0a67810f1e61d50c /_layouts
Initial new commit
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/all_posts.html12
-rw-r--r--_layouts/default.html16
-rw-r--r--_layouts/home.html14
-rw-r--r--_layouts/page.html7
-rw-r--r--_layouts/post.html8
5 files changed, 57 insertions, 0 deletions
diff --git a/_layouts/all_posts.html b/_layouts/all_posts.html
new file mode 100644
index 0000000..182a2d0
--- /dev/null
+++ b/_layouts/all_posts.html
@@ -0,0 +1,12 @@
+---
+layout: default
+---
+
+<h1>{{ page.title }}</h1>
+
+{{ content }}
+
+{% for post in site.posts %}
+ <small>{{ post.date | date: "%B %-d, %Y" }}</small><br><a href="{{ post.url }}">{{ post.title }}</a><br><br>
+{% endfor %}
+
diff --git a/_layouts/default.html b/_layouts/default.html
new file mode 100644
index 0000000..f969a9d
--- /dev/null
+++ b/_layouts/default.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html lang="{{ page.lang | default: site.lang | default: 'en' }}">
+
+ {%- include head.html -%}
+
+ <body>
+ <div class="wrapper">
+ {%- include header.html -%}
+ <main>
+ {{ content }}
+ </main>
+ {%- include footer.html -%}
+ </div>
+ </body>
+
+</html>
diff --git a/_layouts/home.html b/_layouts/home.html
new file mode 100644
index 0000000..5fea726
--- /dev/null
+++ b/_layouts/home.html
@@ -0,0 +1,14 @@
+---
+layout: default
+---
+
+{{ content }}
+
+{% for post in site.posts limit:5 %}
+<div class="post">
+ <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
+ <span class="post-date">{{ post.date | date: "%B %-d, %Y" }}</span>
+ {{ post.excerpt }}
+</div>
+{% endfor %}
+
diff --git a/_layouts/page.html b/_layouts/page.html
new file mode 100644
index 0000000..80476ae
--- /dev/null
+++ b/_layouts/page.html
@@ -0,0 +1,7 @@
+---
+layout: default
+---
+
+<h1>{{ page.title }}</h1>
+
+{{ content }}
diff --git a/_layouts/post.html b/_layouts/post.html
new file mode 100644
index 0000000..50545e8
--- /dev/null
+++ b/_layouts/post.html
@@ -0,0 +1,8 @@
+---
+layout: default
+---
+
+<h1>{{ page.title }}</h1>
+<p><small>{{ page.date | date: "%B %-d, %Y" }}</small></p>
+
+{{ content }}