summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorPrefetch2019-06-08 20:01:43 +0000
committerPrefetch2019-06-08 20:01:43 +0000
commitfe4bd53f01c469ad62848fbc85b06185b9f1e653 (patch)
tree38d9731003cf2d98ac4000eeff86fc55a17ec093 /templates
Create repository
Diffstat (limited to 'templates')
-rw-r--r--templates/index.html22
-rw-r--r--templates/page.html8
-rw-r--r--templates/section.html7
3 files changed, 37 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..18b833a
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="utf-8">
+<title>{% block title %}{{ config.title }}{% endblock title %}</title>
+<link rel="stylesheet" href="/main.css">
+</head>
+<body>
+<div class="navbar">
+<div class="navitem navhome"><b><a href="/">PREFETCH</a></b></div>
+{% for s in config.extra.sections %}
+<div class="navitem"><a href="{{ s.url | safe }}">{{ s.name | safe }}</a></div>
+{% endfor %}
+</div>
+<hr>
+<div class="content">
+{% block content %}{{ section.content | safe }}{% endblock content %}
+</div>
+<hr>
+&copy; &quot;Prefetch&quot;. &nbsp; Licensed under <a href="https://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA 4.0</a>.
+</body>
+</html>
diff --git a/templates/page.html b/templates/page.html
new file mode 100644
index 0000000..ce0155e
--- /dev/null
+++ b/templates/page.html
@@ -0,0 +1,8 @@
+{% extends "index.html" %}
+{% block title %}
+ {{ config.title }} | {{ page.title }}
+{% endblock title %}
+{% block content %}
+ <center><h3> {{ page.title }} </h3></center>
+ {{ page.content | safe }}
+{% endblock content %}
diff --git a/templates/section.html b/templates/section.html
new file mode 100644
index 0000000..18d23c3
--- /dev/null
+++ b/templates/section.html
@@ -0,0 +1,7 @@
+{% extends "index.html" %}
+{% block title %}
+ {{ config.title }} | {{ section.title }}
+{% endblock title %}
+{% block content %}
+ {{ section.content | safe }}
+{% endblock content %}