summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2025-11-05 09:33:23 +0100
committerEugen Wissner <belka@caraus.de>2025-11-05 09:33:23 +0100
commit86f7a15a2843f8c207124345d13969fb05ecc611 (patch)
treed0850ce1f334093f70a06eec5de97fb8b54372c2 /templates
parent80e0fe22d28687f3599a949f1a4d29171b12b20f (diff)
downloadflevum-86f7a15a2843f8c207124345d13969fb05ecc611.tar.gz
Move themes files into the root directory
Diffstat (limited to 'templates')
-rw-r--r--templates/_includes/components/pagination.html15
-rw-r--r--templates/_includes/components/post.html28
-rw-r--r--templates/_includes/layout/footer.html8
-rw-r--r--templates/_includes/layout/header.html6
-rw-r--r--templates/_includes/layout/navigation.html6
-rw-r--r--templates/_includes/meta.html19
-rw-r--r--templates/_includes/partials/burgerMenu.html4
-rw-r--r--templates/_includes/partials/headerSeparator.html1
-rw-r--r--templates/_layouts/blog.html7
-rw-r--r--templates/_layouts/page.html6
-rw-r--r--templates/_layouts/post.html19
-rw-r--r--templates/_layouts/tag.html9
-rw-r--r--templates/default.html34
13 files changed, 162 insertions, 0 deletions
diff --git a/templates/_includes/components/pagination.html b/templates/_includes/components/pagination.html
new file mode 100644
index 0000000..524cc8f
--- /dev/null
+++ b/templates/_includes/components/pagination.html
@@ -0,0 +1,15 @@
+<div class="pagination">
+ $if(previousPageNum)$
+ <a href="$previousPageUrl$" class="previous">&larr; Vorherige</a>
+ $else$
+ <span>&nbsp;</span>
+ $endif$
+
+ <span class="page_number">Seite $currentPageNum$ von $numPages$</span>
+
+ $if(nextPageNum)$
+ <a href="$nextPageUrl$" class="next">Nächste &rarr;</a>
+ $else$
+ <span>&nbsp;</span>
+ $endif$
+</div>
diff --git a/templates/_includes/components/post.html b/templates/_includes/components/post.html
new file mode 100644
index 0000000..e901ec5
--- /dev/null
+++ b/templates/_includes/components/post.html
@@ -0,0 +1,28 @@
+<article class="post" role="article">
+ <h2 class="post-title">
+ <a href="$url$">$title$</a>
+ </h2>
+
+ <div class="post-author">
+ <div class="post-meta">
+ <time datetime="$date$" class="post-date">$published$</time>
+ <div class="post-categories"><a href="/$tags$">$tags$</a></div>
+ </div>
+ </div>
+
+ <div class="post-content">
+ $if(teaser)$
+ $teaser$
+ $else$
+ $description$
+ $endif$
+ <p>
+ <a href="$url$" class="read-more-button" role="button">
+ Weiterlesen...
+ </a>
+ </p>
+ </div>
+
+ <div class="post-footer">
+ </div>
+</article>
diff --git a/templates/_includes/layout/footer.html b/templates/_includes/layout/footer.html
new file mode 100644
index 0000000..bd27826
--- /dev/null
+++ b/templates/_includes/layout/footer.html
@@ -0,0 +1,8 @@
+<footer class="site-footer">
+ <nav>
+ <a href="/impressum.html">Impressum</a>
+ <a href="/datenschutz.html">Datenschutz</a>
+ </nav>
+
+ <p>E-Mail: <a href="mailto:belka@caraus.de">belka@caraus.de</a></p>
+</footer>
diff --git a/templates/_includes/layout/header.html b/templates/_includes/layout/header.html
new file mode 100644
index 0000000..d5b7a76
--- /dev/null
+++ b/templates/_includes/layout/header.html
@@ -0,0 +1,6 @@
+<header class="site-header">
+ <a class="site-header-wrapper" href="/">
+ <span class="site-subtitle">Über Technik und Philosophie</span>
+ <span class="site-title">Mein Tagebuch</span>
+ </a>
+</header>
diff --git a/templates/_includes/layout/navigation.html b/templates/_includes/layout/navigation.html
new file mode 100644
index 0000000..7f46bd8
--- /dev/null
+++ b/templates/_includes/layout/navigation.html
@@ -0,0 +1,6 @@
+<nav class="site-navigation" role="navigation">
+ <a href="/"$if(active-blog)$ class="active"$endif$>Home</a>
+ $for(categories)$
+ <a class="$body$" href="$url$">$title$</a>
+ $endfor$
+</nav>
diff --git a/templates/_includes/meta.html b/templates/_includes/meta.html
new file mode 100644
index 0000000..d649432
--- /dev/null
+++ b/templates/_includes/meta.html
@@ -0,0 +1,19 @@
+<meta property="og:url" content="https://www.flevum.de$url$" />
+
+$if(published)$
+ <meta property="og:type" content="article" />
+ <meta property="article:published_time" content="$date$" />
+$else$
+ <meta property="og:type" content="website" />
+$endif$
+$if(tags)$
+ <meta property="article:section" content="$tags$" />
+ <meta property="article:tag" content="$tags$" />
+$endif$
+<meta property="og:title" content="$title$" />
+<meta property="og:site_name" content="Flevum über Technik und Philosophie" />
+$if(teaser)$
+ <meta name="description" property="og:description" content="$teaser$" />
+$else$
+ <meta name="description" property="og:description" content="Über Technik und Philosophie" />
+$endif$
diff --git a/templates/_includes/partials/burgerMenu.html b/templates/_includes/partials/burgerMenu.html
new file mode 100644
index 0000000..5d0bdc2
--- /dev/null
+++ b/templates/_includes/partials/burgerMenu.html
@@ -0,0 +1,4 @@
+<input type="checkbox" class="toggleBurger" id="toggleBurger">
+<label for="toggleBurger" class="toggleBurgerWrapper">
+ <span></span>
+</label> \ No newline at end of file
diff --git a/templates/_includes/partials/headerSeparator.html b/templates/_includes/partials/headerSeparator.html
new file mode 100644
index 0000000..561de6d
--- /dev/null
+++ b/templates/_includes/partials/headerSeparator.html
@@ -0,0 +1 @@
+<div class="header-content-separator"></div> \ No newline at end of file
diff --git a/templates/_layouts/blog.html b/templates/_layouts/blog.html
new file mode 100644
index 0000000..3b0ab27
--- /dev/null
+++ b/templates/_layouts/blog.html
@@ -0,0 +1,7 @@
+<section class="post-list">
+ $for(posts)$
+ $partial("templates/_includes/components/post.html")$
+ $endfor$
+</section>
+
+$partial("templates/_includes/components/pagination.html")$
diff --git a/templates/_layouts/page.html b/templates/_layouts/page.html
new file mode 100644
index 0000000..a1b91c9
--- /dev/null
+++ b/templates/_layouts/page.html
@@ -0,0 +1,6 @@
+<article class="page single" role="article">
+ <h2 class="page-title" role="heading">$title$</h2>
+ <div class="page-content">
+ $body$
+ </div>
+</article>
diff --git a/templates/_layouts/post.html b/templates/_layouts/post.html
new file mode 100644
index 0000000..e9d7bbf
--- /dev/null
+++ b/templates/_layouts/post.html
@@ -0,0 +1,19 @@
+<article class="post" role="article">
+ <h2 class="post-title">
+ $title$
+ </h2>
+
+ <div class="post-author">
+ <div class="post-meta">
+ <time datetime="$date$" class="post-date">$published$</time>
+ <div class="post-categories"><a href="/$tags$">$tags$</a></div>
+ </div>
+ </div>
+
+ <div class="post-content">
+ $body$
+ </div>
+
+ <div class="post-footer">
+ </div>
+</article>
diff --git a/templates/_layouts/tag.html b/templates/_layouts/tag.html
new file mode 100644
index 0000000..3245efe
--- /dev/null
+++ b/templates/_layouts/tag.html
@@ -0,0 +1,9 @@
+<h1 class="post-lists-title">Alle Posts mit Tag: <span>$title$</span></h1>
+
+<section class="post-list">
+ $for(posts)$
+ $partial("templates/_includes/components/post.html")$
+ $endfor$
+</section>
+
+$partial("templates/_includes/components/pagination.html")$
diff --git a/templates/default.html b/templates/default.html
new file mode 100644
index 0000000..f7aa7ec
--- /dev/null
+++ b/templates/default.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html data-theme="dark">
+ <head>
+ <meta charset="utf-8">
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+
+ <meta name="author" content="Eugen Wissner" />
+
+ $partial("templates/_includes/meta.html")$
+
+ <title>$title$ | Flevum</title>
+
+ <link rel="icon" type="image/png" href="/assets/images/favicon.svg">
+ <link href="/assets/css/styles.css?v=1" rel="stylesheet">
+ <link href="/assets/css/custom.css?v=2" rel="stylesheet">
+ </head>
+
+ <body>
+ $partial("templates/_includes/partials/burgerMenu.html")$
+
+ $partial("templates/_includes/layout/header.html")$
+
+ $partial("templates/_includes/layout/navigation.html")$
+
+ $partial("templates/_includes/partials/headerSeparator.html")$
+
+ <main class="$if(active-index)$wrapper long$else$wrapper$endif$" role="main">
+ $body$
+ </main>
+
+ $partial("templates/_includes/layout/footer.html")$
+ </body>
+</html>