From 35f13c2d308e7a077787af5cb5d4f03ca3d507ce Mon Sep 17 00:00:00 2001 From: Sakamoto Date: Fri, 5 Dec 2025 17:14:05 -0600 Subject: init smolweb compliant --- templates/base.html | 51 ++++++++++++++++++++++++++++++++++++++++++++++++ templates/blog-page.html | 12 ++++++++++++ templates/blog.html | 16 +++++++++++++++ templates/index.html | 33 +++++++++++++++++++++++++++++++ templates/page.html | 5 +++++ 5 files changed, 117 insertions(+) create mode 100644 templates/base.html create mode 100644 templates/blog-page.html create mode 100644 templates/blog.html create mode 100644 templates/index.html create mode 100644 templates/page.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..83b5cc3 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,51 @@ + + + + + {% block title %} {% endblock title %} + + + + + + + + + + + + + + +
+ +
+ +
+ +
{% block content %} {% endblock content %}
+ +
+ + + + diff --git a/templates/blog-page.html b/templates/blog-page.html new file mode 100644 index 0000000..3b02091 --- /dev/null +++ b/templates/blog-page.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} {% block title %} {{ page.title }} {% endblock title +%} {% block content %} + +

{{ page.title }}

+ + + +{{ page.content | safe }} {% endblock content %} diff --git a/templates/blog.html b/templates/blog.html new file mode 100644 index 0000000..38b96c1 --- /dev/null +++ b/templates/blog.html @@ -0,0 +1,16 @@ +{% extends "base.html" %} {% block title %} {{ section.title }} {% endblock +title %} {% block content %} +

{{ section.title }}

+ +{% endblock content %} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..a01d58f --- /dev/null +++ b/templates/index.html @@ -0,0 +1,33 @@ +{% extends "base.html" %} {% block title %} sakamoto.network {% endblock title +%} {% block content %} +

sakamoto.network

+ +

I host services for a few friends.

+ +

Services

+ + + +{% set blog = get_section(path="blog/_index.md") %} + +

Recent posts

+ +{% if blog.pages %} + +{% endif %} {% endblock content %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..4da2946 --- /dev/null +++ b/templates/page.html @@ -0,0 +1,5 @@ +{% extends "base.html" %} {% block title %} {{page.title}} {% endblock title %} +{% block content %} +

{{ page.title }}

+ +{{ page.content | safe }} {% endblock content %} -- cgit v1.2.3