summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html16
-rw-r--r--templates/index.html4
-rw-r--r--templates/page.html6
-rw-r--r--templates/section.html9
4 files changed, 35 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..4e79148
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>{% block title %}{{ config.title }}{% endblock %}</title>
+ <link rel="stylesheet" href="{{ get_url(path='style.css') }}">
+</head>
+<body>
+ <nav>
+ <a href="{{ get_url(path='@/_index.md') }}">home</a>
+ <a href="{{ get_url(path='@/blog/_index.md') }}">blog</a>
+ </nav>
+ <main>{% block content %}{% endblock %}</main>
+</body>
+</html>
+
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..b539396
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,4 @@
+{% extends "base.html" %}
+{% block content %}
+ {{ section.content | safe }}
+{% endblock %}
diff --git a/templates/page.html b/templates/page.html
new file mode 100644
index 0000000..7e1febd
--- /dev/null
+++ b/templates/page.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+{% block content %}
+ <h1>{{ page.title }}</h1>
+ <time>{{ page.date }}</time>
+ {{ page.content | safe }}
+{% endblock %}
diff --git a/templates/section.html b/templates/section.html
new file mode 100644
index 0000000..cae39d3
--- /dev/null
+++ b/templates/section.html
@@ -0,0 +1,9 @@
+{% extends "base.html" %}
+{% block content %}
+ {{ section.content | safe }}
+ <ul>
+ {% for post in section.pages %}
+ <li><a href="{{ post.permalink }}">{{ post.title }} -- {{ post.date }}</a></li>
+ {% endfor %}
+ </ul>
+{% endblock %}