summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordevels <devels@tuta.com>2026-09-04 20:59:23 +0100
committerdevels <devels@tuta.com>2026-09-04 20:59:23 +0100
commitd45551a628cb51fed0dac9efe089aa223cabb196 (patch)
tree8224085dc93052367d2ca8ef5d0fe41b2bc21489
downloadsite-d45551a628cb51fed0dac9efe089aa223cabb196.tar.gz
site-d45551a628cb51fed0dac9efe089aa223cabb196.zip
initial commit
-rw-r--r--.gitignore1
-rw-r--r--content/_index.md7
-rw-r--r--content/blog/_index.md6
-rw-r--r--content/blog/first_post.md8
-rw-r--r--sass/style.scss9
-rw-r--r--templates/base.html16
-rw-r--r--templates/index.html4
-rw-r--r--templates/page.html6
-rw-r--r--templates/section.html9
-rw-r--r--zola.toml14
10 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..364fdec
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+public/
diff --git a/content/_index.md b/content/_index.md
new file mode 100644
index 0000000..f663a50
--- /dev/null
+++ b/content/_index.md
@@ -0,0 +1,7 @@
++++
+title = "home"
++++
+
+# daniels' site
+
+this is my cool site
diff --git a/content/blog/_index.md b/content/blog/_index.md
new file mode 100644
index 0000000..99811f9
--- /dev/null
+++ b/content/blog/_index.md
@@ -0,0 +1,6 @@
++++
+title = "blog"
++++
+
+hello blog
+
diff --git a/content/blog/first_post.md b/content/blog/first_post.md
new file mode 100644
index 0000000..5f21c93
--- /dev/null
+++ b/content/blog/first_post.md
@@ -0,0 +1,8 @@
++++
+title = "first post!"
+date = 2026-09-01
++++
+
+hello this is my blog
+
+hope its nice
diff --git a/sass/style.scss b/sass/style.scss
new file mode 100644
index 0000000..ca85e72
--- /dev/null
+++ b/sass/style.scss
@@ -0,0 +1,9 @@
+body {
+ color: white;
+ background-color: black;
+}
+
+time {
+ color: red;
+ font-weight: bold;
+}
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 %}
diff --git a/zola.toml b/zola.toml
new file mode 100644
index 0000000..79a69a6
--- /dev/null
+++ b/zola.toml
@@ -0,0 +1,14 @@
+base_url = "https://example.com"
+
+title = "devels' site"
+
+compile_sass = true
+
+build_search_index = false
+
+[markdown]
+
+[markdown.highlighting]
+theme = "catppuccin-mocha"
+
+[extra]