This commit is contained in:
2023-10-31 23:23:51 +01:00
commit ef15a6ec8f
20 changed files with 1707 additions and 0 deletions

16
templates/base.html Normal file
View File

@ -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>

View File

@ -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 %}

11
templates/blog.html Normal file
View File

@ -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 %}

14
templates/index.html Normal file
View File

@ -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 %}

9
templates/page.html Normal file
View File

@ -0,0 +1,9 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ page.title }}</h1>
{{ page.content | safe }}
{% endblock %}

View File

@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block content %}
<h1>{{ taxonomy.name }}: multiple</h1>
{% endblock %}

View File

@ -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 %}