This commit is contained in:
CJSatnarine
2025-03-15 23:14:24 -04:00
parent 955979513e
commit 6f5a806d24
16 changed files with 2540 additions and 3 deletions

20
blog/templates/base.html Normal file
View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>{{ config.extra.site_name }}</title>
<link rel="stylesheet" href="{{ get_url(path="/extra.css") }}" />
</head>
<body>
<section class="section">
<div class="container">
{% block content %} {% endblock %}
</div>
</section>
</body>
</html>

View File

@@ -0,0 +1,10 @@
{% extends "base.html" %}
{% block content %}
<h1 class="title">
{{ page.title }}
</h1>
<p class="subtitle"><strong>{{ page.date }}</strong></p>
{{ page.content | safe }}
{% endblock content %}

15
blog/templates/blog.html Normal file
View File

@@ -0,0 +1,15 @@
{% extends "base.html" %}
{% block content %}
<h1 class="title">
{{ section.title }}
</h1>
<!-- Not sure what this page stuff is but I reckon I'll find out soon enough. -->
<ul>
{% for page in section.pages %}
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
{% endblock content %}

30
blog/templates/index.html Normal file
View File

@@ -0,0 +1,30 @@
{% extends "base.html" %}
<head>
<script type="importmap">
{
"imports": {
"three": "https://cdn.jsdelivr.net/npm/three@<version>/build/three.module.js",
"three/addons/": "https://cdn.jsdelivr.net/npm/three@<version>/examples/jsm/"
}
}
</script>
<script type="module" src="/main.js"></script>
<script type="module" src="/window.js"></script>
</head>
{% block content %}
<body>
<h1 class="title">
{{ section.title }}
</h1>
<p>{{ section.content | safe }}</p>
<p><a href="{{ get_url(path='@/blog/_index.md') }}">Posts</a>.</p>
</body>
{% endblock content %}