]> git.vanrenterghem.biz Git - www2.vanrenterghem.biz.git/commitdiff
Voeg mustache templates toe.
authorFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Sat, 9 Dec 2023 06:40:30 +0000 (14:40 +0800)
committerFrederik Vanrenterghem <frederik@vanrenterghem.biz>
Sat, 9 Dec 2023 06:40:30 +0000 (14:40 +0800)
html/head.mustache [new file with mode: 0644]
html/landing.mustache [new file with mode: 0644]
html/post-head.mustache [new file with mode: 0644]
html/post-index.mustache [new file with mode: 0644]
html/post.mustache [new file with mode: 0644]

diff --git a/html/head.mustache b/html/head.mustache
new file mode 100644 (file)
index 0000000..a34ade4
--- /dev/null
@@ -0,0 +1,5 @@
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<link href="/assets/styles/bootstrap-5.3.0/css/bootstrap.min.css" rel="stylesheet" />
+<link rel="webmention" href="https://www.vanrenterghem.biz/webmention">
+<meta charset="utf-8" />
+<title>{{title}}</title>
diff --git a/html/landing.mustache b/html/landing.mustache
new file mode 100644 (file)
index 0000000..6749b33
--- /dev/null
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    {{>head}}
+    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.11.2/css/all.min.css">
+  </head>
+  <body>
+    {{>navbar}} 
+
+    <main class="container-fluid">
+
+         {{{contents}}}
+    </main>
+    
+    {{>footer}}
+  </body>
+</html>
diff --git a/html/post-head.mustache b/html/post-head.mustache
new file mode 100644 (file)
index 0000000..baa79de
--- /dev/null
@@ -0,0 +1,6 @@
+<link rel="alternate" type="application/rss+xml" title="blog (RSS feed)" href="comments.rss" />
+<meta name="date" content="{{date}}" />
+
+<link rel="up" href="../" title="posts" />
+<link rel="next" href="../" title="" />
+
diff --git a/html/post-index.mustache b/html/post-index.mustache
new file mode 100644 (file)
index 0000000..5622b6d
--- /dev/null
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    {{>head}}
+  </head>
+  <body>
+    {{>navbar}} 
+
+    <main class="container content inlinepage">
+
+         {{{contents}}}
+    </main>
+    
+    {{>footer}}
+  </body>
+</html>
diff --git a/html/post.mustache b/html/post.mustache
new file mode 100644 (file)
index 0000000..e7d7cdc
--- /dev/null
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    {{>head}}
+    {{>post-head}}
+  </head>
+  <body>
+    {{>navbar}} 
+      <nav aria-label="breadcrumb">
+        <ol class="breadcrumb">
+          <li class="breadcrumb-item"><a href="/">Home</a></li>
+          <li class="breadcrumb-item"><a href="/posts/sitemap.html">Blog</a></li>
+          <li class="breadcrumb-item active" aria-current="page">{{title}}</li>
+        </ol>
+      </nav>
+      <article class="container content inlinepage card h-entry">
+       <div class="info">
+         <ul class="tags list-group list-group-horizontal">
+           <svg class="assist-icon tags" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
+              <path d="M0 0v2l3 3 1.5-1.5.5-.5-2-2-1-1h-2zm3.41 0l3 3-1.19 1.22.78.78 2-2-3-3h-1.59zm-1.91 1c.28 0 .5.22.5.5s-.22.5-.5.5-.5-.22-.5-.5.22-.5.5-.5z" transform="translate(0 1)" />
+           </svg> Tags:
+           {{#tags}}
+           <li class="list-group-item border-0"><a href='/tags/{{tag}}/'>{{tag}}</a></li>
+           {{/tags}}
+         </ul>
+          Posted on {{{date}}}
+         {{#author}}
+         by {{{author}}}
+         {{/author}}
+       </div>
+       <section id="content" role="main" class="e-content">
+        <h1>{{title}}</h1>
+        {{{contents}}}
+       </section>
+      </article>
+    {{>footer}}
+  </body>
+</html>