docs: Update example workdir with YAML

Signed-off-by: Minecon724 <git@m724.eu>
This commit is contained in:
Minecon724 2025-02-12 16:23:04 +01:00
parent d155079514
commit 0b91f2d7a1
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
4 changed files with 22 additions and 10 deletions

View file

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

View file

@ -0,0 +1,10 @@
name: my blog
baseUrl: https://example.com
coolProperty: 1231
coolerProperty:
isMap: true
aList:
- a value
- another value
- check out site-config.yml!

View file

@ -20,7 +20,12 @@
<h1>{{ site.name }} - {{ site.custom.coolerProperty.get('isMap') }}</h1>
<article>
<header>
<h2><a href="">{{ article.title }}</a></h2>
<h2>
<a href="">{{ article.title }}</a>
{% if article.draft %}
<strong>DRAFT</strong>
{% endif %}
</h2>
<h4>{{ article.summary }}</h4>
<p>{{ article.createdAt | date("dd.MM.yyyy") }} by {{ article.createdBy }}</p>

View file

@ -19,5 +19,11 @@
</article>
</a>
{% endfor %}
<ul>
{% for e in site.custom.coolerProperty.aList %}
<li>{{ e }}</li>
{% endfor %}
</ul>
</body>
</html>