1
0

Print article info

This commit is contained in:
Emil Miler 2021-12-02 12:08:48 +01:00
parent 593f510d59
commit d4f9870a56
3 changed files with 21 additions and 1 deletions

View File

@ -1,6 +1,9 @@
+++ +++
title = "Lorem Ipsum" title = "Lorem Ipsum"
date = 2021-12-02 date = 2021-12-02
[extra]
author = "Emil Miler"
+++ +++
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer facilisis lacus in ex varius bibendum. Ut arcu neque, pellentesque ut mauris in, euismod bibendum lacus. Donec bibendum mollis tempor. Cras ac lacus libero. Maecenas maximus et mi sed sagittis. Nam lobortis magna non mi varius, nec volutpat ipsum vehicula. Nam venenatis mollis leo nec euismod. Nulla molestie tempus tristique. Vivamus tincidunt nisi eu feugiat vehicula. Phasellus tristique consectetur orci, non consequat orci convallis in. Nullam nec urna commodo, efficitur metus sed, sodales urna. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer facilisis lacus in ex varius bibendum. Ut arcu neque, pellentesque ut mauris in, euismod bibendum lacus. Donec bibendum mollis tempor. Cras ac lacus libero. Maecenas maximus et mi sed sagittis. Nam lobortis magna non mi varius, nec volutpat ipsum vehicula. Nam venenatis mollis leo nec euismod. Nulla molestie tempus tristique. Vivamus tincidunt nisi eu feugiat vehicula. Phasellus tristique consectetur orci, non consequat orci convallis in. Nullam nec urna commodo, efficitur metus sed, sodales urna.

View File

@ -52,7 +52,14 @@ aside {
} }
main { main {
article h1 a { color: inherit } article {
.info {
border-top: 1px solid #eee;
margin: 2em 0;
padding: 1em 0;
}
h1 a { color: inherit }
}
} }
a { a {

View File

@ -12,5 +12,15 @@
<article> <article>
<h1><a href="{{ page.permalink }}">{{ page.title }}</a></h1> <h1><a href="{{ page.permalink }}">{{ page.title }}</a></h1>
<p>{{ page.summary | safe }}</p> <p>{{ page.summary | safe }}</p>
{{ self::page_info(page=page) }}
</article> </article>
{% endmacro %} {% endmacro %}
{% macro page_info(page) %}
<div class="info">
<span class="date">{{ page.date }}</span>
{%- if page.extra.author -%}
, <span class="author">{{ page.extra.author }}</span>
{% endif %}
</div>
{% endmacro %}