Improve example
This commit is contained in:
parent
6fcb8e088b
commit
481aae25ca
6 changed files with 16 additions and 4 deletions
1
example_workdir/.gitignore
vendored
1
example_workdir/.gitignore
vendored
|
@ -1 +1,2 @@
|
|||
# Ignore output
|
||||
generated_out/
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -1,4 +1,9 @@
|
|||
{
|
||||
"name": "my blog",
|
||||
"baseUrl": "https://example.com"
|
||||
"baseUrl": "https://example.com",
|
||||
|
||||
"coolProperty": 1231,
|
||||
"coolerProperty": {
|
||||
"isMap": "yes"
|
||||
}
|
||||
}
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -8,7 +8,7 @@ article {
|
|||
}
|
||||
|
||||
article > header {
|
||||
padding: 10px;
|
||||
padding: 5px 20px;
|
||||
background: white;
|
||||
color: black;
|
||||
}
|
Loading…
Add table
Reference in a new issue