summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2023-10-31 23:23:51 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2023-10-31 23:23:51 +0100
commitef15a6ec8f14c2398cfd28786c83072888690718 (patch)
tree824ada8072ac1e0ee4870989679cf5deb7d99bd1 /templates
oijoij
Diffstat (limited to 'templates')
-rw-r--r--templates/base.html16
-rw-r--r--templates/blog-article.html21
-rw-r--r--templates/blog.html11
-rw-r--r--templates/index.html14
-rw-r--r--templates/page.html9
-rw-r--r--templates/taxonomy_list.html7
-rw-r--r--templates/taxonomy_single.html13
7 files changed, 91 insertions, 0 deletions
diff --git a/templates/base.html b/templates/base.html
new file mode 100644
index 0000000..f3c81fb
--- /dev/null
+++ b/templates/base.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8" />
+ <title>Steven Le Rouzic</title>
+ <link rel="preconnect" href="https://fonts.googleapis.com">
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+ <link href="https://fonts.googleapis.com/css2?family=PT+Serif&family=PT+Serif+Caption&family=Roboto+Mono&display=swap" rel="stylesheet">
+ <link rel="stylesheet" type="text/css" href="{{ get_url(path="theme.css") }}" />
+ <script src="https://unpkg.com/htmx.org@1.9.6"></script>
+</head>
+<body hx-boost="true">
+ {% block content %}{% endblock %}
+</body>
+</html>
+
diff --git a/templates/blog-article.html b/templates/blog-article.html
new file mode 100644
index 0000000..ccdd019
--- /dev/null
+++ b/templates/blog-article.html
@@ -0,0 +1,21 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+<div class="article-header">
+<h1>{{ page.title }}</h1>
+<div class="info">
+ <p class="date">{{ page.date | date(format="%B %-d, %Y") }}</p>
+ <p class="tags">
+ {% for tag in page.taxonomies["tags"] %}
+ <a href="{{ get_taxonomy_url(kind="tags", name=tag) }}">#{{ tag }}</a>
+ {%- endfor %}
+ </p>
+</div>
+</div>
+
+<div class="typography">
+{{ page.content | safe }}
+</div>
+
+{% endblock %}
diff --git a/templates/blog.html b/templates/blog.html
new file mode 100644
index 0000000..a0d2450
--- /dev/null
+++ b/templates/blog.html
@@ -0,0 +1,11 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+<ul>
+{% for page in section.pages %}
+ <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a> - {{ page.date | date(format="%B %-d, %Y") }}</li>
+{% endfor %}
+</ul>
+
+{% endblock %}
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..f8df5f9
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,14 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+{% set blog_section = get_section(path="blog/_index.md") %}
+<ul>
+{% for post in blog_section.pages | slice(end=3) %}
+ <li><a href="{{ post.permalink | safe }}">{{ post.title }}</a> - {{ post.date | date(format="%B %-d, %Y") }}</li>
+ <div class="typography">{{ post.summary | safe }}</div>
+{% endfor %}
+</ul>
+
+{% endblock %}
+
diff --git a/templates/page.html b/templates/page.html
new file mode 100644
index 0000000..0e5679f
--- /dev/null
+++ b/templates/page.html
@@ -0,0 +1,9 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+<h1>{{ page.title }}</h1>
+
+{{ page.content | safe }}
+
+{% endblock %}
diff --git a/templates/taxonomy_list.html b/templates/taxonomy_list.html
new file mode 100644
index 0000000..df8f63f
--- /dev/null
+++ b/templates/taxonomy_list.html
@@ -0,0 +1,7 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+<h1>{{ taxonomy.name }}: multiple</h1>
+
+{% endblock %}
diff --git a/templates/taxonomy_single.html b/templates/taxonomy_single.html
new file mode 100644
index 0000000..3a75df8
--- /dev/null
+++ b/templates/taxonomy_single.html
@@ -0,0 +1,13 @@
+{% extends "base.html" %}
+
+{% block content %}
+
+<h1>{{ taxonomy.name }}: {{ term.name }}</h1>
+
+<ul>
+{% for page in term.pages %}
+ <li><a href="{{ page.permalink | safe }}">{{ page.title }}</a> - {{ page.date | date(format="%B %-d, %Y") }}</li>
+{% endfor %}
+</ul>
+
+{% endblock %}