diff options
| author | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-15 02:53:51 +0100 |
|---|---|---|
| committer | Miran Bastaja <miran.bastaja04@gmail.com> | 2023-11-15 13:57:29 +0100 |
| commit | ff5fdcd170e6565f225c4d47caed14c2c8d73ca5 (patch) | |
| tree | cec896a54ffa48927e6dc503bc9856f9bc772bd6 /templates | |
Initial commit
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/base.html | 14 | ||||
| -rw-r--r-- | templates/blog-page.html | 13 | ||||
| -rw-r--r-- | templates/index.html | 19 |
3 files changed, 46 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..f07856d --- /dev/null +++ b/templates/base.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html lang="en"> + +<head> + <meta charset="utf-8"> + <title>Sorre</title> + <link rel="stylesheet" href="/style.css"> +</head> + +<body> + {% block content %} {% endblock %} +</body> + +</html> diff --git a/templates/blog-page.html b/templates/blog-page.html new file mode 100644 index 0000000..f6e7ac7 --- /dev/null +++ b/templates/blog-page.html @@ -0,0 +1,13 @@ +{% extends "base.html" %} + +{% block content %} + +<div style="display:flex; align-items:baseline; gap:1rem;"> + <h1 class="title"> + {{ page.title }} + </h1> + <a href="/">home</a> +</div> + +{{ page.content | safe }} +{% endblock content %} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..8fb3c95 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,19 @@ +{% extends "base.html" %} + +{% block content %} +<h1 class="title"> + {{ section.title }} +</h1> + +<p>{{ section.description }}</p> + +<p> + Posts: + <ul> + {% for page in section.pages %} + <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li> + {% endfor %} + </ul> +</p> + +{% endblock %} |
