aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--templates/base.html17
-rw-r--r--templates/index.html8
-rw-r--r--templates/post-page.html10
-rw-r--r--templates/posts.html12
-rw-r--r--templates/robots.txt4
-rw-r--r--theme.toml11
6 files changed, 62 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..aba4506
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+
+<head>
+ <meta charset="utf-8">
+ <title>CHANGE ME</title>
+</head>
+
+<body>
+ <section class="section">
+ <div class="container">
+ {% block content %} {% endblock content %}
+ </div>
+ </section>
+</body>
+
+</html>
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..560c000
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,8 @@
+{% extends "base.html" %}
+
+{% block content %}
+<h1 class="title">
+ This is a blog made with Zola.
+</h1>
+<p><a href="{{ get_url(path='@/posts/_index.md') }}">Posts</a>.</p>
+{% endblock content %}
diff --git a/templates/post-page.html b/templates/post-page.html
new file mode 100644
index 0000000..5bb6f40
--- /dev/null
+++ b/templates/post-page.html
@@ -0,0 +1,10 @@
+{% extends "base.html" %}
+
+
+{% block content %}
+<h1 class="title">
+ {{ page.title }}
+</h1>
+<p class="subtitle"><strong>{{ page.date }}</strong></p>
+{{ page.content | safe }}
+{% endblock content %}
diff --git a/templates/posts.html b/templates/posts.html
new file mode 100644
index 0000000..cb6c14b
--- /dev/null
+++ b/templates/posts.html
@@ -0,0 +1,12 @@
+{% extends "base.html" %}
+
+{% block content %}
+<h1 class="title">
+ {{ section.title }}
+</h1>
+<ul>
+ {% for page in section.pages %}
+ <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
+ {% endfor %}
+</ul>
+{% endblock content %}
diff --git a/templates/robots.txt b/templates/robots.txt
new file mode 100644
index 0000000..b6ac790
--- /dev/null
+++ b/templates/robots.txt
@@ -0,0 +1,4 @@
+User-agent: *
+Disallow:
+Allow: /
+Sitemap: {{ get_url(path="sitemap.xml") }}
diff --git a/theme.toml b/theme.toml
new file mode 100644
index 0000000..cf9dead
--- /dev/null
+++ b/theme.toml
@@ -0,0 +1,11 @@
+name = "shawl"
+description = "A simple, unintrusive theme for Zola."
+
+license = "GPLv3"
+homepage = "https://foswret.com/shawl"
+
+min_version = "0.22.1"
+
+[author]
+name = "foswret"
+homepage = "https://foswret.com"