add some demo content, from the Zola Getting Started pages

This commit is contained in:
Colin 2022-03-29 05:26:14 +00:00
parent a608ecc3ce
commit 63b952fe5c
7 changed files with 59 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
public/

6
content/blog/_index.md Normal file
View File

@ -0,0 +1,6 @@
+++
title = "Perfectly Sane Blog"
sort_by = "date"
template = "blog.html"
page_template = "blog-page.html"
+++

6
content/blog/test.md Normal file
View File

@ -0,0 +1,6 @@
+++
title = "Test Post"
date = 2022-03-28
+++
It's nearly April, already?

17
templates/base.html Normal file
View File

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Perfectly Sane</title>
</head>
<body>
<section class="section">
<div class="container">
{% block content %} {% endblock %}
</div>
</section>
</body>
</html>

9
templates/blog-page.html Normal file
View File

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

13
templates/blog.html Normal file
View File

@ -0,0 +1,13 @@
{% extends "base.html" %}
{% block content %}
<h1 class="title">
{{ section.title }}
</h1>
<ul>
{% for page in section.pages %}
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
{% endfor %}
</ul>
{% endblock content %}

7
templates/index.html Normal file
View File

@ -0,0 +1,7 @@
{% extends "base.html" %}
{% block content %}
<h1 class="title">
WIP
</h1>
{% endblock content %}