diff options
| author | Yuval Adam <_@yuv.al> | 2017-08-07 08:55:33 +0300 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2017-08-07 08:57:40 +0300 |
| commit | 14958653b9bf92f56316511e8080baeeaf409b97 (patch) | |
| tree | 65503639105fa6074bcbeb11164cc82a70828c4e /templates | |
Basic structure and initial homepage
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 25 | ||||
| -rw-r--r-- | templates/blog-post.html | 6 | ||||
| -rw-r--r-- | templates/blog.html | 9 | ||||
| -rw-r--r-- | templates/index.html | 15 | ||||
| -rw-r--r-- | templates/wiki-page.html | 0 | ||||
| -rw-r--r-- | templates/wiki.html | 0 |
6 files changed, 55 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..379b224 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,25 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + + <title>{% block title %}postmarketOS{% endblock %}</title> + + <meta name="description" content="Aiming for a 10 year life-cycle for smartphones"> + <meta name="keywords" content="postmarketOS"> + + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <meta name="robots" content="all"> + + <link rel="canonical" href="https://postmarketos.org{{ request.path }}"> + + <link href="{{ url_for('static', filename='css/tachyons.min.css') }}" rel="stylesheet"> + <link href="{{ url_for('static', filename='css/main.css') }}" rel="stylesheet"> + </head> + + <body> + {% block body %} + {% endblock %} + </body> +</html> diff --git a/templates/blog-post.html b/templates/blog-post.html new file mode 100644 index 0000000..7a24d02 --- /dev/null +++ b/templates/blog-post.html @@ -0,0 +1,6 @@ +{% extends 'base.html' %} + +{% block body %} +<h1>{{ title }}</h1> +{{ html|safe }} +{% endblock %} diff --git a/templates/blog.html b/templates/blog.html new file mode 100644 index 0000000..deb2148 --- /dev/null +++ b/templates/blog.html @@ -0,0 +1,9 @@ +{% extends 'base.html' %} + +{% block body %} +<ul> +{% for post in posts %} + <li><a href="{{ post.url }}">{{ post.title }}</a></li> +{% endfor %} +</ul> +{% endblock %} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..e0067fb --- /dev/null +++ b/templates/index.html @@ -0,0 +1,15 @@ +{% 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> +</div> +{% endblock %} diff --git a/templates/wiki-page.html b/templates/wiki-page.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/templates/wiki-page.html diff --git a/templates/wiki.html b/templates/wiki.html new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/templates/wiki.html |
