aboutsummaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorFran├žois Kooman <fkooman@tuxed.net>2017-01-07 20:40:44 +0100
committerFran├žois Kooman <fkooman@tuxed.net>2017-01-07 20:40:44 +0100
commitc44287313ec05665f4e9b2df8fb4db4ce2cb7b7e (patch)
tree37566e3eaa4c559f692f5d49d7d864738f9b14e8 /views
parent0fa6ad7f34739099792dbb927d9c3f27340a226f (diff)
downloadwww.tuxed.net-c44287313ec05665f4e9b2df8fb4db4ce2cb7b7e.zip
www.tuxed.net-c44287313ec05665f4e9b2df8fb4db4ce2cb7b7e.tar.gz
www.tuxed.net-c44287313ec05665f4e9b2df8fb4db4ce2cb7b7e.tar.xz
generate pages as well
Diffstat (limited to 'views')
-rw-r--r--views/contact.twig36
-rw-r--r--views/header.twig21
-rw-r--r--views/index.twig4
-rw-r--r--views/page.twig13
-rw-r--r--views/post.twig6
5 files changed, 35 insertions, 45 deletions
diff --git a/views/contact.twig b/views/contact.twig
deleted file mode 100644
index 9b70552..0000000
--- a/views/contact.twig
+++ /dev/null
@@ -1,36 +0,0 @@
-{% include 'header.twig' %}
-
- <p>
- <em>{{ blogDescription|e }}</em>
- </p>
-
- <p><small><a href="index.html">Return to Index</a></small></p>
-
-<div class="content">
-
- <h2>Contact</h2>
-
- <h3>Mail</h3>
- <p>
- <a href="mailto:{{ blogAuthorMail }}">{{ blogAuthorMail }}</a>
- </p>
-
- <p>
- PGP Fingerprint: <code>{{ blogAuthorMailFingerprint }}</code>
- </p>
-
- <h3>Twitter</h3>
- <p>
- <a href="https://twitter.com/{{ blogAuthorTwitter }}">@{{ blogAuthorTwitter }}</a>
- </p>
-
- <h3>GitHub</h3>
- <p>
- <a href="https://github.com/{{ blogAuthorGitHub }}">@{{ blogAuthorGitHub }}</a>
- </p>
-
-</div> <!-- /content -->
-
-<p><small><a href="index.html">Return to Index</a></small></p>
-
-{% include 'footer.twig' %}
diff --git a/views/header.twig b/views/header.twig
index 619c466..46095a1 100644
--- a/views/header.twig
+++ b/views/header.twig
@@ -8,4 +8,25 @@
<link rel="stylesheet" type="text/css" href="css/screen.css">
</head>
<body>
+
<h1>{{ blogTitle|e }}</h1>
+
+<p>
+ <em>{{ blogDescription|e }}</em>
+</p>
+
+<ul class="pages">
+ {% if 'index.html' == activePage %}
+ <li class="active"><a href="index.html">Blog</a></li>
+ {% else %}
+ <li><a href="index.html">Blog</a></li>
+ {% endif %}
+
+ {% for p in pagesList %}
+ {% if p.fileName == activePage %}
+ <li class="active"><a href="{{ p.fileName }}">{{ p.title }}</a></li>
+ {% else %}
+ <li><a href="{{ p.fileName }}">{{ p.title }}</a></li>
+ {% endif %}
+ {% endfor %}
+</ul>
diff --git a/views/index.twig b/views/index.twig
index 34f0bcb..8a744a2 100644
--- a/views/index.twig
+++ b/views/index.twig
@@ -1,9 +1,5 @@
{% include 'header.twig' %}
- <p>
- <em>{{ blogDescription|e }}</em>
- </p>
-
<div class="content">
<h2>{{ pageTitle|e }}</h2>
diff --git a/views/page.twig b/views/page.twig
new file mode 100644
index 0000000..503e3c1
--- /dev/null
+++ b/views/page.twig
@@ -0,0 +1,13 @@
+{% include 'header.twig' %}
+
+<div class="content">
+
+ <h2>{{ pageTitle|e }}</h2>
+
+ {{ pageContent.htmlContent|raw }}
+
+</div> <!-- /content -->
+
+<p><small><a href="index.html">Return to Index</a></small></p>
+
+{% include 'footer.twig' %}
diff --git a/views/post.twig b/views/post.twig
index a218062..8cdcefa 100644
--- a/views/post.twig
+++ b/views/post.twig
@@ -1,10 +1,6 @@
{% include 'header.twig' %}
- <p>
- <em>{{ blogDescription|e }}</em>
- </p>
-
- <p><small><a href="index.html">Return to Index</a></small></p>
+<!-- <p><small><a href="index.html">Return to Index</a></small></p> -->
<div class="content">