Prepend baseurl everywhere.
This allows for easy re-deployment in sub folders
This commit is contained in:
parent
516ab78579
commit
27c7600eff
|
@ -1,6 +1,6 @@
|
|||
<div class="post">
|
||||
<h2 class="heading">
|
||||
<a href="{{post.url}}">{{post.title}}</a>
|
||||
<a href="{{site.baseurl}}{{post.url | replace_first: '/'}}">{{post.title}}</a>
|
||||
</h2>
|
||||
{% if post.date %}
|
||||
<p class="date">
|
||||
|
|
|
@ -2,26 +2,26 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>fnordig.de</title>
|
||||
<link rel="stylesheet" href="/fnord.css" type="text/css" />
|
||||
<link rel="stylesheet" href="/coderay.css" type="text/css" />
|
||||
<title>fnordig.de</title>
|
||||
<link rel="stylesheet" href="{{site.baseurl}}fnord.css" type="text/css" />
|
||||
<link rel="stylesheet" href="{{site.baseurl}}coderay.css" type="text/css" />
|
||||
<!--[if !IE]>-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0" />
|
||||
<script type="text/javascript">
|
||||
window.scrollTo(0, 1);
|
||||
</script>
|
||||
<!--<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
</head>
|
||||
<body>
|
||||
<div class="content">
|
||||
<div class="nav">
|
||||
<h1>
|
||||
<a href="/">fnordig</a>
|
||||
<a href="{{site.baseurl}}">fnordig</a>
|
||||
</h1>
|
||||
<ul>
|
||||
<li><a href="/posts/">posts</a></li>
|
||||
<li><a href="/about/">about</a></li>
|
||||
<li><a href="/feed.xml">feed</a></li>
|
||||
<li><a href="{{site.baseurl}}posts/">posts</a></li>
|
||||
<li><a href="{{site.baseurl}}about/">about</a></li>
|
||||
<li><a href="{{site.baseurl}}feed.xml">feed</a></li>
|
||||
<li>| links:</li>
|
||||
<li><a href="https://twitter.com/badboy_">@badboy_</a> /</li>
|
||||
<li><a href="https://github.com/badboy">github</a></li>
|
||||
|
@ -34,10 +34,10 @@
|
|||
<p>//
|
||||
jan-erik /
|
||||
<a href="http://twitter.com/badboy_">@badboy_</a> /
|
||||
<a href="/imprint/">imprint</a> /
|
||||
<a href="/feed.xml">feed</a>
|
||||
<a href="{{site.baseurl}}imprint/">imprint</a> /
|
||||
<a href="{{site.baseurl}}feed.xml">feed</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -3,7 +3,7 @@ layout: default
|
|||
---
|
||||
<div class="post">
|
||||
<h2 class="heading">
|
||||
<a href="{{page.url}}">{{page.title}}</a>
|
||||
<a href="{{site.baseurl}}{{page.url | replace_first: '/'}}">{{page.title}}</a>
|
||||
</h2>
|
||||
{% if page.date %}
|
||||
<p class="date">
|
||||
|
|
2
feed.xml
2
feed.xml
|
@ -19,7 +19,7 @@ layout: nil
|
|||
<title>{{ post.title }}</title>
|
||||
<link href="http://fnordig.de{{ post.url }}"/>
|
||||
<updated>{{ post.date | date_to_xmlschema }}</updated>
|
||||
<id>http://fnordig.de{{ post.url }}</id>
|
||||
<id>http://fnordig.de{{site.baseurl}}{{ post.url | replace_first: '/'}}</id>
|
||||
<content type="html">{{ post.content | xml_escape }}</content>
|
||||
</entry>
|
||||
{% endfor %}
|
||||
|
|
|
@ -10,9 +10,9 @@ title: fnordig.de
|
|||
<div class="paginator">
|
||||
{% if paginator.previous_page %}
|
||||
{% if paginator.previous_page == 1 %}
|
||||
<a class="prev" href="/">« Previous page</a>
|
||||
<a class="prev" href="{{site.baseurl}}">« Previous page</a>
|
||||
{% else %}
|
||||
<a class="prev" href="/page{{paginator.previous_page}}">« Previous page</a>
|
||||
<a class="prev" href="{{site.baseurl}}page{{paginator.previous_page}}">« Previous page</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
@ -21,6 +21,6 @@ title: fnordig.de
|
|||
{% endif %}
|
||||
|
||||
{% if paginator.next_page %}
|
||||
<a class="next" href="/page{{paginator.next_page}}">Next page »</a>
|
||||
<a class="next" href="{{site.baseurl}}page{{paginator.next_page}}">Next page »</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue