summaryrefslogtreecommitdiff
path: root/_layouts
diff options
context:
space:
mode:
Diffstat (limited to '_layouts')
-rw-r--r--_layouts/default.html48
-rw-r--r--_layouts/post.html8
2 files changed, 56 insertions, 0 deletions
diff --git a/_layouts/default.html b/_layouts/default.html
new file mode 100644
index 0000000..eb74023
--- /dev/null
+++ b/_layouts/default.html
@@ -0,0 +1,48 @@
+<!DOCTYPE html>
+<html lang="{{ site.lang | default: "en-US" }}">
+ <head>
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="color-scheme" content="dark light" />
+ <meta charset="utf-8">
+ <title>{{ page.title }} - {{ site.title }}</title>
+ <style>
+ :root {
+ --bg-color: #ffffff;
+ --text-color: #000000;
+ }
+ @media (prefers-color-scheme: dark) {
+ :root {
+ --bg-color: #000000;
+ --text-color: #ffffff;
+ }
+ }
+ body {
+ background: var(--bg-color);
+ color: var(--text-color);
+ font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
+ font-size: 16px;
+ margin: 2em auto;
+ max-width: 800px;
+ padding: 1em;
+ line-height: 1.4;
+ hyphens: auto
+ }
+ </style>
+ </head>
+ <body>
+<!-- _layout/default.html BEGIN_content -->
+{{ content -}}
+<!-- _layout/default.html END_content -->
+ {% if site.data.build %}
+ <footer>
+ <small title="Reflects the whole site, not this page. Individual pages may be unchanged since earlier versions.">
+ site version
+ <a href="/cgit/hizbu.com.git/commit/?id={{ site.data.build.commit_full }}">
+ <code>{{ site.data.build.commit }}</code>
+ </a>
+ ยท committed <time datetime="{{ site.data.build.date }}">{{ site.data.build.date }}</time>
+ </small>
+ </footer>
+ {% endif %}
+ </body>
+</html>
diff --git a/_layouts/post.html b/_layouts/post.html
new file mode 100644
index 0000000..948eb51
--- /dev/null
+++ b/_layouts/post.html
@@ -0,0 +1,8 @@
+---
+layout: default
+---
+
+<h1>{{ page.title }}</h1>
+<!-- _layout/post.html BEGIN_CONTENT -->
+{{ content -}}
+<!-- _layout/post.html END_CONTENT -->