summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorbie <bie@blekksprut.net>2017-08-04 16:27:02 +0900
committerbie <bie@blekksprut.net>2017-08-04 16:27:02 +0900
commit241cffabb7ce2b9175c752f35d1a1865bd7f82a0 (patch)
treec84c888c6e4add39ca5c782ad652878f7335de94 /templates
parentbcc916147c695604c1b00ad73210321ce6843b87 (diff)
downloadmaker-241cffabb7ce2b9175c752f35d1a1865bd7f82a0.tar.xz
fuchhhh
Diffstat (limited to 'templates')
-rw-r--r--templates/archive.html18
-rw-r--r--templates/index.html14
-rw-r--r--templates/layout.html31
-rw-r--r--templates/yearly.html11
4 files changed, 64 insertions, 10 deletions
diff --git a/templates/archive.html b/templates/archive.html
new file mode 100644
index 0000000..97103b2
--- /dev/null
+++ b/templates/archive.html
@@ -0,0 +1,18 @@
+{{#articles}}
+ <article>
+ <header>
+ <h2><a href='{{url}}'>{{title}}</a></h2>
+ <p>posted {{date}}, by {{author}}
+ </header>
+ {{&text}}
+ </article>
+{{/articles}}
+
+{{#prevarchive}}
+<p>Previous: {{slug}}: {{url}}
+{{/prevarchive}}
+
+{{#nextarchive}}
+<p>Next: {{slug}}: {{url}}
+{{/nextarchive}}
+
diff --git a/templates/index.html b/templates/index.html
index 4695387..c275df3 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,10 +1,14 @@
{{#articles}}
<article>
- <h2><a href='{{url}}'>{{title}}</a></h2>
- <p>posted {{date}} by {{author}}
- {{#lead}}
- <p class=lead>{{lead}}
- {{/lead}}
+ <header>
+ <h2><a href='{{url}}'>{{title}}</a></h2>
+ <p>posted {{date}}, by {{author}}
+ </header>
+ {{&text}}
</article>
{{/articles}}
+{{#next}}
+<p><a href='{{archive}}#{{slug}}'>More</a>
+{{/next}}
+
diff --git a/templates/layout.html b/templates/layout.html
index 7937763..3aeaa54 100644
--- a/templates/layout.html
+++ b/templates/layout.html
@@ -1,14 +1,35 @@
<!doctype html>
-<meta charset=utf-8>
+<meta charset='utf-8'>
+<meta name='twitter:card' content='summary_large_image'>
+<meta name='twitter:site' content='@twiss'>
+<meta name='twitter:creator' content='@twiss'>
+<meta name='twitter:title' content='Musings from Mt. Prometheus'>
+<meta name='twitter:description' content='disney blog'>
+{{#image}}
+<meta name='twitter:image' content='{{image}}'>
+{{/image}}
+{{^image}}
+<meta name='twitter:image' content='https://happiest.place/gallery/images/1486815538136542.jpg.m.jpg'>
+{{/image}}
+<meta name='viewport' content='width=device-width'><meta name='viewport' content='initial-scale=1.0'>
+{{#title}}
+<title>{{title}} ยท {{site.title}}</title>
+{{/title}}
+{{^title}}
<title>{{site.title}}</title>
-<meta name=viewport content=width=device-width>
-<meta name=viewport content=initial-scale=1.0>
-<link rel=stylesheet href='{{&site.base}}/maker.css'>
-
+{{/title}}
+<link href='blog.css' rel='stylesheet'>
<header>
<h1>{{site.title}}</h1>
</header>
+<nav>
+ <ul>
+ <li><a href='/blog'>Blog</a>
+ <li><a href='/gallery'>Gallery</a>
+ </ul>
+</nav>
+
<main>
{{&_}}
</main>
diff --git a/templates/yearly.html b/templates/yearly.html
new file mode 100644
index 0000000..8fd8b8c
--- /dev/null
+++ b/templates/yearly.html
@@ -0,0 +1,11 @@
+{{#articles}}
+ <article>
+ <header>
+ <h2><a href='{{url}}'>{{title}}</a></h2>
+ </header>
+ </article>
+{{/articles}}
+
+{{#prevarchive}}
+lol
+{{/prevarchive}}