From 92b51ec63b2cae148da9b40233b96856d69fa048 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Mon, 27 May 2024 13:32:29 +0200 Subject: [PATCH] initial commit --- article_template.html | 7 +++++++ index.html | 6 ++++++ site_template.html | 24 ++++++++++++++++++++++++ static/style.css | 0 template.json | 5 +++++ 5 files changed, 42 insertions(+) create mode 100644 article_template.html create mode 100644 index.html create mode 100644 site_template.html create mode 100644 static/style.css create mode 100644 template.json diff --git a/article_template.html b/article_template.html new file mode 100644 index 0000000..94a2154 --- /dev/null +++ b/article_template.html @@ -0,0 +1,7 @@ +{{ article.title }} - {{ site.name }} +Back to {{ site.name }} + +

{{ article.title }}

+

{{ article.summary }}

+ +{{ article.content|safe }} \ No newline at end of file diff --git a/index.html b/index.html new file mode 100644 index 0000000..85a4d29 --- /dev/null +++ b/index.html @@ -0,0 +1,6 @@ +{{ site.name }} + +{% for article in articles %} +

{{ article.title }}

+

{{ article.summary }}

+{% endfor %} \ No newline at end of file diff --git a/site_template.html b/site_template.html new file mode 100644 index 0000000..d3855be --- /dev/null +++ b/site_template.html @@ -0,0 +1,24 @@ + + + + {% if article %} + {{ article.title }} + + + + {% else %} + {{ site.name }} + + + + {% endif %} + + + + + + + + + + \ No newline at end of file diff --git a/static/style.css b/static/style.css new file mode 100644 index 0000000..e69de29 diff --git a/template.json b/template.json new file mode 100644 index 0000000..391a771 --- /dev/null +++ b/template.json @@ -0,0 +1,5 @@ +{ + "version": 1, + "name": "basic template", + "articles_per_page": 10 +} \ No newline at end of file