summaryrefslogtreecommitdiffstats
path: root/templates/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html58
1 files changed, 58 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..222ea74
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,58 @@
+<!DOCTYPE html>
+
+<html class="no-js" lang="{{ config.default_language | default(value="en") }}">
+
+{% block head %}
+<head>
+ <meta charset="utf-8">
+ <meta http-equiv="x-ua-compatible" content="ie=edge">
+ <title>{% block title %}{{ config.extra.title }}{% endblock title %}</title>
+ <meta name="description" content="{% block description %}{{ config.description }}{% endblock description %}">
+ <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
+
+ <link rel="stylesheet" href="/css/normalize.css">
+ <link rel="stylesheet" href="/css/main.css">
+
+ <link rel="alternate" type="application/rss+xml" title="RSS" href="{{ get_url(path="atom.xml", trailing_slash=false) }}">
+</head>
+{% endblock head %}
+
+<body>
+
+{% block header %}
+<header>
+ <a href="/"><img id="logo" src="{{ config.extra.logo }}" /></a>
+ <h1>{{ config.extra.title }}</h1>
+</header>
+{% endblock header %}
+
+<main>
+{% block content %}
+<p>{{ config.extra.intro }}</p>
+<div class="archive">
+ <h2>Archive</h2>
+
+{%- for year, posts in section.pages | group_by(attribute="year") %}
+
+ <h3>{{ year }}</h3>
+ {%- for post in posts %}
+
+ <article class="list-item">
+ <a href="{{ post.permalink | safe }}" class="list-item-link">{{ post.title }}</a>
+ <span class="list-item-date">{{ post.date | date(format="%B %e, %Y") }}</span>
+ </article>
+ {%- endfor %}
+{% endfor %}
+</div>
+
+{% endblock content %}
+</main>
+
+{% block footer %}
+<footer>
+ {{ config.extra.copyright | safe }}
+</footer>
+{% endblock footer %}
+
+</body>
+</html>