summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorAlif Radhitya <radhitya@noreply.codeberg.org>2026-06-25 17:53:21 +0200
committerAlif Radhitya <radhitya@noreply.codeberg.org>2026-06-25 17:53:21 +0200
commite2ef625c779dffd6a580c0aa8d1d57dcf7abd7eb (patch)
tree32c9da33a864c744fede28fe11654fc7bbd479bc /templates/index.html
parent829b4e3cf1e59732d0166cbd24d31c93c4095977 (diff)
parent85133d6dcaa7b02d67e243ce8df8324e46f4009f (diff)
Merge pull request 'farewell adieu rust' (#1) from exp into master
Reviewed-on: https://codeberg.org/radhitya/ahsi/pulls/1
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html34
1 files changed, 34 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..f981b3b
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>{{ site.title }}</title>
+<link rel="stylesheet" href="{{ site.url }}style.css">
+</head>
+<body>
+<header>
+ <h1><a href="/">{{ site.title }}</a></h1>
+ <nav><a href="/search/">search</a></nav>
+</header>
+<main>
+{% if intro %}<section class="intro">{{ intro }}</section>{% endif %}
+<ul class="post-list">
+{% for post in posts %}
+ <li>
+ <span class="date">{{ post.date }}</span>
+ <a href="/{{ post.slug }}/">{{ post.title }}</a>
+ </li>
+{% endfor %}
+</ul>
+{% if total_pages > 1 %}
+<nav class="pagination">
+ <span>{% if has_prev %}<a href="{{ prev_url }}">← newer</a>{% else %}<span class="disabled">← newer</span>{% endif %}</span>
+ <span class="info">page {{ page }} of {{ total_pages }}</span>
+ <span>{% if has_next %}<a href="{{ next_url }}">older →</a>{% else %}<span class="disabled">older →</span>{% endif %}</span>
+</nav>
+{% endif %}
+</main>
+<footer><p>{{ site.author }}</p></footer>
+</body>
+</html>