aboutsummaryrefslogtreecommitdiffstats
path: root/build/templates
diff options
context:
space:
mode:
Diffstat (limited to 'build/templates')
-rw-r--r--build/templates/home.html12
-rw-r--r--build/templates/page.html12
-rw-r--r--build/templates/partials/.gitkeep0
-rw-r--r--build/templates/partials/footer.html16
-rw-r--r--build/templates/partials/head.html11
-rw-r--r--build/templates/partials/header.html6
6 files changed, 57 insertions, 0 deletions
diff --git a/build/templates/home.html b/build/templates/home.html
new file mode 100644
index 0000000..e0b7521
--- /dev/null
+++ b/build/templates/home.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ {{> head.html}}
+ <title>ubergeek</title>
+ </head>
+ <body>
+ {{> header.html}}
+ <main>{{{CONTENT}}}</main>
+ {{> footer.html}}
+ </body>
+</html>
diff --git a/build/templates/page.html b/build/templates/page.html
new file mode 100644
index 0000000..502dd58
--- /dev/null
+++ b/build/templates/page.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<html lang="{{LANG}}">
+ <head>
+ {{> head.html}}
+ <title>ubergeek{{#PAGE_TITLE}}: {{PAGE_TITLE}}{{/PAGE_TITLE}}</title>
+ </head>
+ <body{{#DIR}} dir="{{DIR}}"{{/DIR}}>
+ {{> header.html}}
+ <main>{{{CONTENT}}}</main>
+ {{> footer.html}}
+ </body>
+</html>
diff --git a/build/templates/partials/.gitkeep b/build/templates/partials/.gitkeep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/build/templates/partials/.gitkeep
diff --git a/build/templates/partials/footer.html b/build/templates/partials/footer.html
new file mode 100644
index 0000000..6dca778
--- /dev/null
+++ b/build/templates/partials/footer.html
@@ -0,0 +1,16 @@
+<footer>
+ <hr />
+ <a href="https://git.gumx.cc">git</a> /
+ <a href="https://mail.gumx.cc">mail</a> /
+ <a href="https://irc.gumx.cc">irc</a> /
+ <a href="https://vpn.gumx.cc">vpn</a> /
+ <a href="https://pgp.gumx.cc">pgp</a> /
+ <a href="https://wk.fo">wk.fo</a>
+ <br />
+ <a href="https://webring.gumx.cc/gumx.cc/previous">&larr; previous site</a> /
+ <a href="https://webring.gumx.cc/">webring</a> /
+ <a href="https://webring.gumx.cc/gumx.cc/next">next site &rarr;</a>
+ <br />
+ <a href="https://git.gumx.cc/ubergeek">source</a> /
+ <a href="/license">license</a>
+</footer>
diff --git a/build/templates/partials/head.html b/build/templates/partials/head.html
new file mode 100644
index 0000000..f9f143e
--- /dev/null
+++ b/build/templates/partials/head.html
@@ -0,0 +1,11 @@
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width,initial-scale=1" />
+ <meta name="author" content="Ahmed (gumx) Alaa" />
+ <meta name="copyright" content="CC BY-SA 4.0" />
+ {{#META_DATE}}<meta name="date" content="{{META_DATE}}" />{{/META_DATE}}
+ {{#META_DESCRIPTION}}<meta name="description" content="{{META_DESCRIPTION}}" />{{/META_DESCRIPTION}}
+ <link rel="stylesheet" href="/styles/main.css" />
+ {{#HAS_CODE}}<link rel="stylesheet" href="/styles/highlight.min.css" />
+ <script src="/scripts/highlight.min.js"></script>
+ <script>hljs.highlightAll();</script>{{/HAS_CODE}}
+ <link href="data:," rel="icon">
diff --git a/build/templates/partials/header.html b/build/templates/partials/header.html
new file mode 100644
index 0000000..cbe3936
--- /dev/null
+++ b/build/templates/partials/header.html
@@ -0,0 +1,6 @@
+ <header>
+ <nav>
+ <strong><a href="/">ubergeek</a>{{BREADCRUMBS}}</strong>
+ {{#HEADER_EXTRA}}<br /><em>{{HEADER_EXTRA}}</em>{{/HEADER_EXTRA}}
+ </nav>
+ </header>