initial commit

This commit is contained in:
Minecon724 2024-05-27 13:32:29 +02:00
commit 92b51ec63b
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
5 changed files with 42 additions and 0 deletions

7
article_template.html Normal file
View file

@ -0,0 +1,7 @@
<title>{{ article.title }} - {{ site.name }}</title>
<a href="{{ site.url }}">Back to {{ site.name }}</a>
<h1>{{ article.title }}</h1>
<h4>{{ article.summary }}</h4>
{{ article.content|safe }}

6
index.html Normal file
View file

@ -0,0 +1,6 @@
<title>{{ site.name }}</title>
{% for article in articles %}
<h3>{{ article.title }}</h3>
<p>{{ article.summary }}</p>
{% endfor %}

24
site_template.html Normal file
View file

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
{% if article %}
<title>{{ article.title }}</title>
<meta property="og:title" content="{{ article.title }}" />
<meta property="og:description" content="{{ article.summary }}" />
<meta property="og:type" content="article" />
{% else %}
<title>{{ site.name }}</title>
<meta property="og:title" content="{{ site.name }}" />
<meta property="og:description" content="{{ site.description }}" />
<meta property="og:type" content="website" />
{% endif %}
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta property="og:url" content="{{ url }}" />
<meta property="og:image" content="/favicon.ico" />
<meta property="og:site_name" content="{{ site.name }}" />
<link rel="stylesheet" href="/static/style.css" />
</head>
</html>

0
static/style.css Normal file
View file

5
template.json Normal file
View file

@ -0,0 +1,5 @@
{
"version": 1,
"name": "basic template",
"articles_per_page": 10
}