aughhhh
This commit is contained in:
20
blog/templates/base.html
Normal file
20
blog/templates/base.html
Normal 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>
|
10
blog/templates/blog-page.html
Normal file
10
blog/templates/blog-page.html
Normal 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
15
blog/templates/blog.html
Normal 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
30
blog/templates/index.html
Normal 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 %}
|
Reference in New Issue
Block a user