summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2017-08-07 22:23:21 +0300
committerYuval Adam <_@yuv.al>2017-08-07 22:23:21 +0300
commit02985b5387b9fcb181d2d89123665e24661482a7 (patch)
treeabd0a0db1695e4b103dcb154f34daf96b8537aca /templates
parenta09c7e5156ee730adfb636394b0382a3eeabb0b0 (diff)
Fix URL links
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html8
-rw-r--r--templates/index.html2
2 files changed, 5 insertions, 5 deletions
diff --git a/templates/base.html b/templates/base.html
index 8c26bcc..26d4d00 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -21,7 +21,7 @@
<body>
<div class="mw7 center">
<div class="cf ph2-ns">
- <a class="title" href="/">
+ <a class="title" href="{{ url_for('home') }}">
<h1 class="f2 lh-title">
<img src="{{ url_for('static', filename='img/recycle.png') }}"></img>
<span>postmarketOS</span>
@@ -29,9 +29,9 @@
</a>
<div class="menu">
<ul>
- <li><a href="/">Home</a></li>
- <li><a href="/wiki/">Wiki</a></li>
- <li><a href="/blog/">Blog</a></li>
+ <li><a href="{{ url_for('home') }}">Home</a></li>
+ <li><a href="{{ url_for('wiki') }}">Wiki</a></li>
+ <li><a href="{{ url_for('blog') }}">Blog</a></li>
</ul>
</div>
{% block body %}
diff --git a/templates/index.html b/templates/index.html
index 1d51734..5cf06c6 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -6,7 +6,7 @@
</div>
<div class="fl w-100 w-50-ns pa2">
<p class="intro">postmarketOS (<i>pmOS</i>), is a touch-optimized, pre-configured <a href="https://alpinelinux.org">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 class="intro">For further details read our <a href="{{ url_for('blog_post', y='2017', m='05', d='26', slug='intro') }}">introductory blog post</a>.</p>
<p>Find us on:</p>
<ul>
<li><a href="https://github.com/postmarketOS">GitHub</a></li>