diff options
| author | devels <devels@tuta.com> | 2026-09-04 20:59:23 +0100 |
|---|---|---|
| committer | devels <devels@tuta.com> | 2026-09-04 20:59:23 +0100 |
| commit | d45551a628cb51fed0dac9efe089aa223cabb196 (patch) | |
| tree | 8224085dc93052367d2ca8ef5d0fe41b2bc21489 /templates | |
| download | site-d45551a628cb51fed0dac9efe089aa223cabb196.tar.gz site-d45551a628cb51fed0dac9efe089aa223cabb196.zip | |
initial commit
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 16 | ||||
| -rw-r--r-- | templates/index.html | 4 | ||||
| -rw-r--r-- | templates/page.html | 6 | ||||
| -rw-r--r-- | templates/section.html | 9 |
4 files changed, 35 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..4e79148 --- /dev/null +++ b/templates/base.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <title>{% block title %}{{ config.title }}{% endblock %}</title> + <link rel="stylesheet" href="{{ get_url(path='style.css') }}"> +</head> +<body> + <nav> + <a href="{{ get_url(path='@/_index.md') }}">home</a> + <a href="{{ get_url(path='@/blog/_index.md') }}">blog</a> + </nav> + <main>{% block content %}{% endblock %}</main> +</body> +</html> + diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..b539396 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,4 @@ +{% extends "base.html" %} +{% block content %} + {{ section.content | safe }} +{% endblock %} diff --git a/templates/page.html b/templates/page.html new file mode 100644 index 0000000..7e1febd --- /dev/null +++ b/templates/page.html @@ -0,0 +1,6 @@ +{% extends "base.html" %} +{% block content %} + <h1>{{ page.title }}</h1> + <time>{{ page.date }}</time> + {{ page.content | safe }} +{% endblock %} diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..cae39d3 --- /dev/null +++ b/templates/section.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} +{% block content %} + {{ section.content | safe }} + <ul> + {% for post in section.pages %} + <li><a href="{{ post.permalink }}">{{ post.title }} -- {{ post.date }}</a></li> + {% endfor %} + </ul> +{% endblock %} |
