Commit 9d0a78bd authored by Yuval Adam's avatar Yuval Adam

Add intro blog post and logo in header

parent bfed8746
......@@ -23,15 +23,15 @@ def blog():
posts = map(parse_post, posts)
return render_template('blog.html', posts=posts)
def blog_post(y, m, d, title):
post_path = f'{y}-{m}-{d}-{title}'
def blog_post(y, m, d, slug):
post_path = f'{y}-{m}-{d}-{slug}'
with open(f'{BLOG_CONTENT_DIR}/{post_path}.md', 'r') as f:
text =
_, header, body = text.split('---')
for h in header:
for h in header.split('\n'):
if h.startswith('title'):
title = h.split('title:')[0].strip()
title = h.split('title:')[1].strip()
html = markdown.markdown(body, extensions=['markdown.extensions.extra', 'markdown.extensions.codehilite'])
return render_template('blog-post.html', title=title, html=html)
h1 img {
height: 1.4em;
h1 span {
vertical-align: top;
} ul {
list-style: none;
padding-left: 7px;
......@@ -21,7 +21,10 @@
<div class="mw7 center">
<div class="cf ph2-ns">
<h1 class="f2 lh-title">postmarketOS</h1>
<h1 class="f2 lh-title">
<img src="{{ url_for('static', filename='img/recycle.png') }}"></img>
<div class="menu">
<li><a href="/">Home</a></li>
{% extends 'base.html' %}
{% block body %}
<h1>{{ title }}</h1>
<h2>{{ title }}</h2>
{{ html|safe }}
{% endblock %}
......@@ -5,7 +5,8 @@
<img src="{{ url_for('static', filename='img/banner.jpg') }}"></img>
<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="">Alpine Linux</a> with own packages, that can be installed on smartphones (Not usable for most people yet!).</p>
<p class="intro">postmarketOS (<i>pmOS</i>), is a touch-optimized, pre-configured <a href="">Alpine Linux</a> that can be installed on smartphones and other mobile devices. The project is at very early stages of development and is not yet usable for most users.</p>
<p class="intro">For further details read our <a href="/blog/2017/05/26/intro/">introductory blog post</a>.</p>
<p>Find us on:</p>
<li><a href="">GitHub</a></li>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment