diff options
author | Prefetch | 2019-06-08 20:01:43 +0000 |
---|---|---|
committer | Prefetch | 2019-06-08 20:01:43 +0000 |
commit | fe4bd53f01c469ad62848fbc85b06185b9f1e653 (patch) | |
tree | 38d9731003cf2d98ac4000eeff86fc55a17ec093 /templates |
Create repository
Diffstat (limited to 'templates')
-rw-r--r-- | templates/index.html | 22 | ||||
-rw-r--r-- | templates/page.html | 8 | ||||
-rw-r--r-- | templates/section.html | 7 |
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> +© "Prefetch". 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 %} |