Improve example

This commit is contained in:
Minecon724 2025-01-19 10:30:35 +01:00
parent 6fcb8e088b
commit 481aae25ca
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
6 changed files with 16 additions and 4 deletions

View file

@ -1 +1,2 @@
# Ignore output
generated_out/

View file

@ -1,5 +1,6 @@
title lorem ipsum 2: the lorem ipsuming
summary watch skibidi toilet free online no virus
customText This article is cool because it has small text
<h1>THI SI ANOTEHR POSTT</h1>

View file

@ -1,4 +1,9 @@
{
"name": "my blog",
"baseUrl": "https://example.com"
"baseUrl": "https://example.com",
"coolProperty": 1231,
"coolerProperty": {
"isMap": "yes"
}
}

View file

@ -17,12 +17,17 @@
<link rel="stylesheet" href="{{ static('style.css') }}">
</head>
<body>
<h1>{{ site.name }}</h1>
<h1>{{ site.name }} - {{ site.custom.coolerProperty.get('isMap') }}</h1>
<article>
<header>
<h2><a href="">{{ article.title }}</a></h2>
<h4>{{ article.summary }}</h4>
<p>{{ article.createdAt | date("dd.MM.yyyy") }} by {{ article.createdBy }}</p>
<!-- article custom properties are converted to lower case -->
{% if article.custom.containsKey("customtext") %}
<small>{{ article.custom.customtext }}</small>
{% endif %}
</header>
<div>

View file

@ -8,7 +8,7 @@
<link rel="stylesheet" href="{{ static('style.css') }}">
</head>
<body>
<h1>{{ site.name }}</h1>
<h1>{{ site.name }} - {{ site.custom.coolProperty }}</h1>
{% for article in articles %}
<a href="post/{{ article.slug }}.html" class="post-short">
<article>

View file

@ -8,7 +8,7 @@ article {
}
article > header {
padding: 10px;
padding: 5px 20px;
background: white;
color: black;
}