From d245c05825743e20d2df2900c4f8313d82ebcfe1 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Mon, 2 Feb 2026 21:10:12 +0530 Subject: first commit --- templates/404.html | 25 +++++++++++ templates/base.html | 70 +++++++++++++++++++++++++++++++ templates/feed.xml | 39 +++++++++++++++++ templates/index.html | 9 ++++ templates/macros/date.html | 3 ++ templates/macros/header.html | 26 ++++++++++++ templates/page.html | 9 ++++ templates/post.html | 29 +++++++++++++ templates/posts.html | 35 ++++++++++++++++ templates/shortcodes/guestbook_entry.html | 25 +++++++++++ templates/shortcodes/guestbook_form.html | 20 +++++++++ templates/shortcodes/img.html | 13 ++++++ 12 files changed, 303 insertions(+) create mode 100644 templates/404.html create mode 100644 templates/base.html create mode 100644 templates/feed.xml create mode 100644 templates/index.html create mode 100644 templates/macros/date.html create mode 100644 templates/macros/header.html create mode 100644 templates/page.html create mode 100644 templates/post.html create mode 100644 templates/posts.html create mode 100644 templates/shortcodes/guestbook_entry.html create mode 100644 templates/shortcodes/guestbook_form.html create mode 100644 templates/shortcodes/img.html (limited to 'templates') diff --git a/templates/404.html b/templates/404.html new file mode 100644 index 0000000..071d8bd --- /dev/null +++ b/templates/404.html @@ -0,0 +1,25 @@ +{% extends "base.html" %} + +{% block head_extra %} + +{% endblock head_extra %} + +{% block title %}404 Page Not Found - {{ config.title }}{% endblock title %} +{% block description %}The requested resource was not found (404){% endblock description %} + +{% block og_title %}404 Page Not Found - {{ config.title }}{% endblock og_title %} +{% block og_description %}The requested resource was not found (404){% endblock og_description %} + +{% block main %} +
+

+ The requested page was not found. +

+ +

+ The URL is either invalid or the page was deleted. +
+ Anyways, Return to the homepage. +

+
+{% endblock main %} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..181d859 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,70 @@ +{% import "macros/header.html" as header %} + + + + + + + + + + {% block head_extra %}{% endblock head_extra %} + + {% if current_url %} + + {% endif %} + + + + {% if current_url %} + + {% endif %} + + + + + + + + + {% block title %}{{ config.title }}{% endblock title %} + + + +
+ + + +
+ {% block main %} +
+ {{ page.content | safe }} +
+ {% endblock main %} +
+ +
+ {% block footer %} + {% endblock footer %} + + + + +
+ + diff --git a/templates/feed.xml b/templates/feed.xml new file mode 100644 index 0000000..8f7e3de --- /dev/null +++ b/templates/feed.xml @@ -0,0 +1,39 @@ + + + + {{ 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 %} + + {{ page.title }} + {{ page.date | date(format="%a, %d %b %Y %H:%M:%S %z") }} + {{ config.extra.email }} ({{ config.author }}) + {{ page.permalink | escape_xml | safe }} + {{ page.permalink | escape_xml | safe }} + + {% if page.summary %} + {{ page.summary }} + {% else %} + Reply to this post via email

]]> + {% endif %} +
+
+ {%- endfor %} +
+
+ diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..2b5296d --- /dev/null +++ b/templates/index.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block og_type %}website{% endblock og_type %} + +{% block main %} +
+ {{ section.content | safe }} +
+{% endblock main %} diff --git a/templates/macros/date.html b/templates/macros/date.html new file mode 100644 index 0000000..020b47e --- /dev/null +++ b/templates/macros/date.html @@ -0,0 +1,3 @@ +{% macro format_date(date) %} +{{ date | date(format="%d %h, %Y") }} +{% endmacro format_date %} diff --git a/templates/macros/header.html b/templates/macros/header.html new file mode 100644 index 0000000..ff6cd44 --- /dev/null +++ b/templates/macros/header.html @@ -0,0 +1,26 @@ +{% macro site_header(activePage="") %} +

{{ config.title }}

+ +{% endmacro header %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..7f4dd5b --- /dev/null +++ b/templates/page.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} + +{% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} +{% block description %}{{ page.description }}{% endblock description %} + +{% block og_title %}{{ page.title }} - {{ config.title }}{% endblock og_title %} +{% block og_description %}{{ page.description }}{% endblock og_description %} + +{% block og_type %}website{% endblock og_type %} diff --git a/templates/post.html b/templates/post.html new file mode 100644 index 0000000..e055397 --- /dev/null +++ b/templates/post.html @@ -0,0 +1,29 @@ +{% import "macros/header.html" as header %} +{% import "macros/date.html" as date %} + +{% extends "base.html" %} + +{% block title %}{{ page.title }} - {{ config.title }}{% endblock title %} +{% block description %}{{ page.description }}{% endblock description %} + +{% block og_title %}{{ page.title }} - {{ config.title }}{% endblock og_title %} +{% block og_description %}{{ page.description }}{% endblock og_description %} + +{% block header %} +{{ header::site_header(activePage="/posts") }} +{% endblock header %} + +{% block main %} +
+
+

{{ page.title }}

+

+ +

+
+
+ {{ page.content | safe }} +
+{% endblock main %} diff --git a/templates/posts.html b/templates/posts.html new file mode 100644 index 0000000..c62e299 --- /dev/null +++ b/templates/posts.html @@ -0,0 +1,35 @@ +{% import "macros/header.html" as header %} +{% import "macros/date.html" as date %} + +{% extends "base.html" %} + +{% block title %}Index - {{ config.title }}{% endblock title %} +{% block description %}All posts on {{ config.title }}.{% endblock description %} + +{% block og_title %}Index - {{ config.title }}{% endblock og_title %} +{% block og_description %}All posts on {{ config.title }}{% endblock og_description %} + +{% block header %} +{{ header::site_header(activePage="/posts") }} +{% endblock header %} + +{% block main %} + +{% endblock main %} diff --git a/templates/shortcodes/guestbook_entry.html b/templates/shortcodes/guestbook_entry.html new file mode 100644 index 0000000..69789ca --- /dev/null +++ b/templates/shortcodes/guestbook_entry.html @@ -0,0 +1,25 @@ +{% import "macros/date.html" as date %} + +
+

+ {% if website %}{% endif %} + {{ name | safe }} + {% if website %}{% endif %} +
+ +

+

+ {{ message | safe }} +

+ {% if reply %} +
+

+ {{ reply | safe }} +

+ — {{ config.extra.nickname }} +

+
+ {% endif %} +
diff --git a/templates/shortcodes/guestbook_form.html b/templates/shortcodes/guestbook_form.html new file mode 100644 index 0000000..99dcf4c --- /dev/null +++ b/templates/shortcodes/guestbook_form.html @@ -0,0 +1,20 @@ +
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +
+
diff --git a/templates/shortcodes/img.html b/templates/shortcodes/img.html new file mode 100644 index 0000000..8ff0820 --- /dev/null +++ b/templates/shortcodes/img.html @@ -0,0 +1,13 @@ +
+ {% if href %}{% endif %} + {{ alt }} + {% if href %}{% endif %} + + {% if caption %} +
{{ caption | safe }}
+ {% endif %} +
-- cgit v1.2.3