docs: Update example workdir with YAML
Signed-off-by: Minecon724 <git@m724.eu>
This commit is contained in:
parent
d155079514
commit
0b91f2d7a1
4 changed files with 22 additions and 10 deletions
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
"name": "my blog",
|
||||
"baseUrl": "https://example.com",
|
||||
|
||||
"coolProperty": 1231,
|
||||
"coolerProperty": {
|
||||
"isMap": "yes"
|
||||
}
|
||||
}
|
10
example_workdir/site-config.yml
Normal file
10
example_workdir/site-config.yml
Normal 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!
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -19,5 +19,11 @@
|
|||
</article>
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
||||
<ul>
|
||||
{% for e in site.custom.coolerProperty.aList %}
|
||||
<li>{{ e }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Reference in a new issue