From 6be02cea11848175ead843d2ecad78dd0548a8a4 Mon Sep 17 00:00:00 2001
From: Alan Pearce
Date: Wed, 21 Jun 2023 13:21:25 +0200
Subject: Add skip links for accessibility
---
templates/index.html | 66 +++++++++++++++++++++++++++-------------------------
1 file changed, 34 insertions(+), 32 deletions(-)
(limited to 'templates/index.html')
diff --git a/templates/index.html b/templates/index.html
index 7370d21..7a7d753 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -5,36 +5,38 @@
{% block title_class %} p-name fn{% endblock %}
{% block main %}
-
+
+ {{ section.content | safe }}
+
+
+ Latest Posts
+
+ {%- set section = get_section(path="post/_index.md") %}
+ {%- for page in section.pages | slice(end=3) %}
+ -
+
+ {{ page.title }}
+
+ {%- endfor %}
+
+
+
+ Elsewhere on the Internet
+
+ {%- for item in config.extra.contact_menu %}
+ -
+ {%- if item.url is starting_with("mailto:") %}
+ {{ item.name }}
+ {%- else %}
+ {{ item.name }}
+ {%- endif %}
+
+ {%- endfor %}
+
+
+
+
{% endblock %}
--
cgit 1.4.1