First attempt at adding some testing content to the site
This commit is contained in:
parent
89ef50ae2f
commit
816a12e599
6 changed files with 58 additions and 0 deletions
6
content/blog/_index.md
Normal file
6
content/blog/_index.md
Normal file
|
@ -0,0 +1,6 @@
|
|||
+++
|
||||
title = "List of blog posts"
|
||||
sort_by = "date"
|
||||
template = "blog.html"
|
||||
page_template = "blog-page.html"
|
||||
+++
|
7
content/blog/first.md
Normal file
7
content/blog/first.md
Normal file
|
@ -0,0 +1,7 @@
|
|||
+++
|
||||
title = "My first post"
|
||||
date = 2021-06-13
|
||||
author = "Jonas Tobias Hopusch"
|
||||
+++
|
||||
|
||||
Hello World!
|
25
templates/base.html
Normal file
25
templates/base.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta lang="EN" />
|
||||
</head>
|
||||
<body>
|
||||
{% block content %} {% endblock %}
|
||||
|
||||
<footer>
|
||||
<hr />
|
||||
<p>
|
||||
Copyright Jonas Tobias Hopusch (<a
|
||||
href="https://gitlab.com/jotoho"
|
||||
>@jotoho</a
|
||||
>)
|
||||
</p>
|
||||
<p>
|
||||
This page is being served using GitLab Pages. You can contact me
|
||||
via <a href="mailto:webmaster@jotoho.de">email</a> regarding any
|
||||
issues with this website.
|
||||
</p>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
7
templates/blog-page.html
Normal file
7
templates/blog-page.html
Normal file
|
@ -0,0 +1,7 @@
|
|||
{% extends "base.html" %} {% block content %}
|
||||
<h1 class="title">{{ page.title }}</h1>
|
||||
<article>
|
||||
<p class="subtitle"><strong>Published on: {{ page.date }}</strong></p>
|
||||
{{ page.content | safe }}
|
||||
</article>
|
||||
{% endblock content %}
|
10
templates/blog.html
Normal file
10
templates/blog.html
Normal file
|
@ -0,0 +1,10 @@
|
|||
{% extends "base.html" %} {% block content %}
|
||||
<h1 class="title">{{ section.title }}</h1>
|
||||
<article>
|
||||
<ul>
|
||||
{% for page in section.pages %}
|
||||
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</article>
|
||||
{% endblock content %}
|
3
templates/index.html
Normal file
3
templates/index.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
{% extends "base.html" %} {% block content %}
|
||||
<h1 class="title">This is my blog made with Zola.</h1>
|
||||
{% endblock content %}
|
Loading…
Reference in a new issue