diff options
author | Alan Pearce | 2023-06-21 13:21:25 +0200 |
---|---|---|
committer | Alan Pearce | 2023-06-21 13:21:25 +0200 |
commit | 6be02cea11848175ead843d2ecad78dd0548a8a4 (patch) | |
tree | 69bcd1f49b4ceeede63d2651004a9edf8c8a6f52 /templates/index.html | |
parent | f8acc923560a4b3fde660256ae7b7a6f9688b306 (diff) | |
download | website-6be02cea11848175ead843d2ecad78dd0548a8a4.tar.lz website-6be02cea11848175ead843d2ecad78dd0548a8a4.tar.zst website-6be02cea11848175ead843d2ecad78dd0548a8a4.zip |
Add skip links for accessibility
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 66 |
1 files changed, 34 insertions, 32 deletions
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 %} - <div> - {{ section.content | safe }} - </div> - <section> - <h2>Latest Posts</h2> - <ul class="h-feed"> - {%- set section = get_section(path="post/_index.md") %} - {%- for page in section.pages | slice(end=3) %} - <li class="h-entry"> - <time class="dt-published" datetime="{{ page.date | date(format="%+") }}">{{ page.date | date(format=config.extra.date_format) }}</time> - <a class="u-url p-name" href="{{ page.path | safe }}">{{ page.title }}</a> - </li> - {%- endfor %} - </ul> - </section> - <section> - <h2>Elsewhere on the Internet</h2> - <ul> - {%- for item in config.extra.contact_menu %} - <li> - {%- if item.url is starting_with("mailto:") %} - <a href="{{ item.url | safe }}" class="u-email email" rel="me">{{ item.name }}</a> - {%- else %} - <a href="{{ item.url | safe }}" class="u-url url" rel="me">{{ item.name }}</a> - {%- endif %} - </li> - {%- endfor %} - </ul> - </section> - <footer> - GPG Key: <a href="{{ config.extra.gpg_url | safe }}" rel="u-key key">{{ config.extra.gpg_fingerprint }}</a> - </footer> + <main id="content"> + <div> + {{ section.content | safe }} + </div> + <section> + <h2>Latest Posts</h2> + <ul class="h-feed"> + {%- set section = get_section(path="post/_index.md") %} + {%- for page in section.pages | slice(end=3) %} + <li class="h-entry"> + <time class="dt-published" datetime="{{ page.date | date(format="%+") }}">{{ page.date | date(format=config.extra.date_format) }}</time> + <a class="u-url p-name" href="{{ page.path | safe }}">{{ page.title }}</a> + </li> + {%- endfor %} + </ul> + </section> + <section> + <h2>Elsewhere on the Internet</h2> + <ul> + {%- for item in config.extra.contact_menu %} + <li> + {%- if item.url is starting_with("mailto:") %} + <a href="{{ item.url | safe }}" class="u-email email" rel="me">{{ item.name }}</a> + {%- else %} + <a href="{{ item.url | safe }}" class="u-url url" rel="me">{{ item.name }}</a> + {%- endif %} + </li> + {%- endfor %} + </ul> + </section> + <footer> + GPG Key: <a href="{{ config.extra.gpg_url | safe }}" rel="u-key key">{{ config.extra.gpg_fingerprint }}</a> + </footer> + </main> {% endblock %} |