From d1d65c94b888c2959c9da799e4329161ede449ea Mon Sep 17 00:00:00 2001 From: Dennis Eriksen Date: Fri, 20 Jan 2023 12:06:49 +0100 Subject: Made Riker into a Zola-theme - Rikerz --- templates/404.html | 8 +++++++ templates/atom.xml | 34 ++++++++++++++++++++++++++++++ templates/index.html | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++ templates/page.html | 23 ++++++++++++++++++++ templates/rss.xml | 32 ++++++++++++++++++++++++++++ templates/sitemap.xml | 13 ++++++++++++ 6 files changed, 168 insertions(+) create mode 100644 templates/404.html create mode 100644 templates/atom.xml create mode 100644 templates/index.html create mode 100644 templates/page.html create mode 100644 templates/rss.xml create mode 100644 templates/sitemap.xml (limited to 'templates') diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..02d0a66 --- /dev/null +++ b/templates/404.html @@ -0,0 +1,8 @@ +{% extends "index.html" %} + +{% block content %} +
+

404

+

Page not found, dude.

+
+{% endblock content %} diff --git a/templates/atom.xml b/templates/atom.xml new file mode 100644 index 0000000..dd48482 --- /dev/null +++ b/templates/atom.xml @@ -0,0 +1,34 @@ + + + {{ config.title }} + {%- if term %} - {{ term.name }} + {%- elif section.title %} - {{ section.title }} + {%- endif -%} + + {%- if config.description %} + {{ config.description }} + {%- endif %} + + + Zola + {{ last_updated | date(format="%+") }} + {{ feed_url | safe }} + {%- for page in pages %} + {%- if not page.extra.hidden|default(value=false) %} + + {{ page.title }} + {{ page.date | date(format="%+") }} + {{ page.updated | default(value=page.date) | date(format="%+") }} + + {{ page.permalink | safe }} + {{ page.content }} + + {%- endif %} + {%- endfor %} + 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 @@ + + + + +{% block head %} + + + + {% block title %}{{ config.extra.title }}{% endblock title %} + + + + + + + + +{% endblock head %} + + + +{% block header %} +
+ +

{{ config.extra.title }}

+
+{% endblock header %} + +
+{% block content %} +

{{ config.extra.intro }}

+
+

Archive

+ +{%- for year, posts in section.pages | group_by(attribute="year") %} + +

{{ year }}

+ {%- for post in posts %} + + + {%- endfor %} +{% endfor %} +
+ +{% endblock content %} +
+ +{% block footer %} + +{% endblock footer %} + + + diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..6a83bc0 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,23 @@ +{% extends "index.html" %} + +{% block title %}{{ page.title }} · {{ config.title }}{% endblock title %} + +{% block header %} +
+ +
+{% endblock header %} + +{% block content %} +
+

{{ page.title }}

+ {{ page.date | date(format="%B %e, %Y") }} +{% if page.updated | date %} +
+ Last modified {{ page.updated | date(format="%B %e, %Y") }} +{% endif %} + +{{ page.content | safe }} + +
+{% endblock content %} diff --git a/templates/rss.xml b/templates/rss.xml new file mode 100644 index 0000000..ce12795 --- /dev/null +++ b/templates/rss.xml @@ -0,0 +1,32 @@ + + + + {{ config.title }} + {%- if term %} - {{ term.name }} + {%- elif section.title %} - {{ section.title }} + {%- endif -%} + + {%- if section -%} + {{ section.permalink | escape_xml | safe }} + {%- else -%} + {{ config.base_url | escape_xml | safe }} + {%- endif -%} + + {{ config.description }} + Zola + {{ lang }} + + {{ last_updated | date(format="%a, %d %b %Y %H:%M:%S %z") }} + {%- for page in pages %} + {%- if not page.extra.hidden|default(value=false) %} + + {{ page.title }} + {{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }} + {{ page.permalink | escape_xml | safe }} + {{ page.permalink | escape_xml | safe }} + {% if page.summary %}{{ page.summary }}{% else %}{{ page.content }}{% endif %} + + {%- endif %} + {%- endfor %} + + diff --git a/templates/sitemap.xml b/templates/sitemap.xml new file mode 100644 index 0000000..e0cfc82 --- /dev/null +++ b/templates/sitemap.xml @@ -0,0 +1,13 @@ + + + {%- for sitemap_entry in entries %} + {%- if not sitemap_entry.extra.hidden|default(value=false) %} + + {{ sitemap_entry.permalink | escape_xml | safe }} + {%- if sitemap_entry.updated %} + {{ sitemap_entry.updated }} + {%- endif %} + + {%- endif %} + {%- endfor %} + -- cgit v1.2.3