summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2017-08-07 09:17:36 +0300
committerYuval Adam <_@yuv.al>2017-08-07 09:17:36 +0300
commitdd0cce923a29aee84f7050b7e0c886c8d32a84a7 (patch)
tree620c8c963ecfdbce277aa79388d5fd42fca6e518 /templates
parent14958653b9bf92f56316511e8080baeeaf409b97 (diff)
Add wiki content
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html2
-rw-r--r--templates/index.html16
-rw-r--r--templates/wiki-page.html6
-rw-r--r--templates/wiki.html9
4 files changed, 24 insertions, 9 deletions
diff --git a/templates/base.html b/templates/base.html
index 379b224..64d672f 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -19,7 +19,9 @@
</head>
<body>
+ <div class="mw7 center">
{% block body %}
{% endblock %}
+ </div>
</body>
</html>
diff --git a/templates/index.html b/templates/index.html
index e0067fb..6f6ea1a 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,15 +1,13 @@
{% extends 'base.html' %}
{% block body %}
-<div class="mw7 center">
- <div class="cf ph2-ns">
- <h1 class="f2 lh-title">postmarketOS</h1>
- <div class="fl w-100 w-50-ns pa2">
- <img src="{{ url_for('static', filename='img/banner.jpg') }}"></img>
- </div>
- <div class="fl w-100 w-50-ns pa2">
- <p class="intro">postmarketOS, or <i>pmOS</i> in short, is a touch-optimized, pre-configured <a href="https://alpinelinux.org">Alpine Linux</a> with own packages, that can be installed on smartphones (Not usable for most people yet!).</p>
- </div>
+<div class="cf ph2-ns">
+ <h1 class="f2 lh-title">postmarketOS</h1>
+ <div class="fl w-100 w-50-ns pa2">
+ <img src="{{ url_for('static', filename='img/banner.jpg') }}"></img>
+ </div>
+ <div class="fl w-100 w-50-ns pa2">
+ <p class="intro">postmarketOS, or <i>pmOS</i> in short, is a touch-optimized, pre-configured <a href="https://alpinelinux.org">Alpine Linux</a> with own packages, that can be installed on smartphones (Not usable for most people yet!).</p>
</div>
</div>
{% endblock %}
diff --git a/templates/wiki-page.html b/templates/wiki-page.html
index e69de29..7a24d02 100644
--- a/templates/wiki-page.html
+++ b/templates/wiki-page.html
@@ -0,0 +1,6 @@
+{% extends 'base.html' %}
+
+{% block body %}
+<h1>{{ title }}</h1>
+{{ html|safe }}
+{% endblock %}
diff --git a/templates/wiki.html b/templates/wiki.html
index e69de29..66d870b 100644
--- a/templates/wiki.html
+++ b/templates/wiki.html
@@ -0,0 +1,9 @@
+{% extends 'base.html' %}
+
+{% block body %}
+<ul>
+{% for page in pages %}
+ <li><a href="{{ page.url }}">{{ page.title }}</a></li>
+{% endfor %}
+</ul>
+{% endblock %}