Copy static content over to output dir.

This commit is contained in:
2019-05-23 21:29:55 +02:00
parent f7ef8d8b6f
commit cb7ffc7579
2 changed files with 51 additions and 23 deletions

View File

@@ -1,26 +1,32 @@
{% if current_page.is_index %}
{% set base = "" %}
{% else %}
{% set base = "../" %}
{% endif %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{ site_title }} - {{ page_title }}</title>
<link href="{{ theme }}" rel="stylesheet" type="text/css">
<link href="{{ base }}{{ theme }}" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
</head>
<body>
<ul>
{% for page in pages %}
{% if page.is_index %}
<li><a href="{{ page.stub }}.html">{{ site_title }}</a></li>
<li><a href="{{ base }}">{{ site_title }}</a></li>
{% else %}
<li><a href="{{ page.stub }}.html">{% if current_page.stub == page.stub %}>> {% endif %}{{ page.name }}</a></li>
<li><a href="{{ base }}{{ page.stub }}">{% if current_page.stub == page.stub %}>> {% endif %}{{ page.name }}</a></li>
{% endif %}
{% endfor %}
</ul>
<div class="content">
{% for article in current_page.articles %}
{{ article.content}}
<section id="{{ article.stub }}">
{{ article.content}}
</section>
{% endfor %}
</div>
<div class="footer">