summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html26
-rw-r--r--templates/blog-page.html4
-rw-r--r--templates/index.html33
3 files changed, 45 insertions, 18 deletions
diff --git a/templates/base.html b/templates/base.html
index f07856d..53a9db5 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -2,13 +2,31 @@
<html lang="en">
<head>
- <meta charset="utf-8">
- <title>Sorre</title>
+ <meta charset="UTF-8">
+ <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
+ <meta content="width=device-width, initial-scale=1" name="viewport" />
<link rel="stylesheet" href="/style.css">
+
+ {% if page.title %}
+ {% set title = page.title %}
+ {% elif section.title %}
+ {% set title = section.title %}
+ {% elif config.title %}
+ {% set title = config.title %}
+ {% endif %}
+ {% if title %}<title>{{ title }}</title>{% endif %}
+
+ {% if config.generate_feed %}
+ <link rel="alternate" type="application/atom+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false)}}">
+ {% endif %}
+
+ <link rel="stylesheet" href="{{ get_url(path='style.css', trailing_slash=false) | safe }}" />
</head>
-<body>
- {% block content %} {% endblock %}
+<body theme="auto">
+ <div class="w">
+ {% block content %} {% endblock %}
+ </div>
</body>
</html>
diff --git a/templates/blog-page.html b/templates/blog-page.html
index 0414d85..2e54a27 100644
--- a/templates/blog-page.html
+++ b/templates/blog-page.html
@@ -3,7 +3,7 @@
{% block content %}
<header>
- <h1 class="title">
+ <h1 id="title">
{{ page.title }}
</h1>
<div>
@@ -14,4 +14,4 @@
</header>
{{ page.content | safe }}
-{% endblock content %}
+{% endblock content %} \ No newline at end of file
diff --git a/templates/index.html b/templates/index.html
index d894455..f57baf5 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -1,23 +1,32 @@
{% extends "base.html" %}
{% block content %}
-<h1 class="title">
+<h1 id="page-title">
{{ section.title }}
</h1>
<p>{{ section.description }}</p>
<nav>
- Posts:
- <ul>
- {% for page in section.pages %}
- <li>
- <a href="{{ page.permalink | safe }}">{{ page.title }}</a>
- <p>written: {{ page.date }}, </p>
- <p>updated: {{ page.updated }}</p>
- </li>
- {% endfor %}
- </ul>
+ <table>
+ <caption>
+ Posts
+ </caption>
+ <thead>
+ <tr>
+ <td>Title</td>
+ <td>Date</td>
+ </tr>
+ </thead>
+ <tbody>
+ {% for page in section.pages %}
+ <tr>
+ <td><a href="{{ page.permalink | safe }}">{{page.title}}</a></td>
+ <td>{{ page.date }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
</nav>
-{% endblock %}
+{% endblock %} \ No newline at end of file