diff options
Diffstat (limited to 'templates/index.html')
-rw-r--r-- | templates/index.html | 99 |
1 files changed, 62 insertions, 37 deletions
diff --git a/templates/index.html b/templates/index.html index a79b1c8..b4832a9 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,39 +1,64 @@ -{% extends "base.html" %} - -{% block body_attrs %} class="h-card vcard"{% endblock %} - -{% block title_class %} p-name fn{% endblock %} - -{% block main -%} - <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) %} +<!doctype html> +<html> + <head> + <meta charset="utf-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + <title>Site Title</title> + <meta name="referrer" content="no-referrer-when-downgrade" /> + <link + rel="alternate" + type="application/atom+xml" + title="" + href="/atom.xml" + /> + <style></style> + </head> + <body> + <a class="skip" href="#main">Skip to main content</a> + <header> + <h2> + <a href="/" class="title">Site title</a> + </h2> + <nav> + <a href="/">Home</a> + </nav> + </header> + <main id="main"> + <div id="content"></div> + <section> + <h2>Latest Posts</h2> + <ul class="h-feed"> <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> + <span> + <time + class="dt-published" + datetime="2000-12-31T12:33:02+02:00" + pubdate + > + 2000-12-31 + </time> + </span> + <a class="p-name u-url" href="/post/lorem-ipsum/">Lorem Ipsum</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> - </main> -{% endblock %} + </ul> + </section> + <section> + <h2>Elsewhere on the Internet</h2> + <ul> + <li><a href="mailto:alan@alanpearce.eu">alan@alanpearce.eu</a></li> + <li><a href="https://codeberg.org/alanpearce/">Codeberg</a></li> + <li><a href="https://github.com/alanpearce/">GitHub</a></li> + <li><a href="https://gitlab.com/alanpearce/">GitLab</a></li> + <li><a href="https://ieji.de/@alanpearce">Mastodon</a></li> + <li><a href="https://bsky.app/profile/alanpearce.eu">Bluesky</a></li> + </ul> + </section> + </main> + <footer> + Licensed under a + <a rel="license" href="http://creativecommons.org/licenses/by/4.0/" + >Creative Commons Attribution 4.0 International License</a + >. + </footer> + </body> +</html> |