feat: improve metadata display
This commit is contained in:
parent
917b19fea0
commit
1d939fb107
4 changed files with 34 additions and 16 deletions
|
|
@ -6,6 +6,7 @@ compile_sass = true
|
||||||
|
|
||||||
# Whether to build a search index to be used later on by a JavaScript library
|
# Whether to build a search index to be used later on by a JavaScript library
|
||||||
build_search_index = true
|
build_search_index = true
|
||||||
|
default_language = 'fr'
|
||||||
|
|
||||||
[markdown]
|
[markdown]
|
||||||
# Whether to do syntax highlighting
|
# Whether to do syntax highlighting
|
||||||
|
|
|
||||||
|
|
@ -27,10 +27,7 @@ article {
|
||||||
|
|
||||||
section {
|
section {
|
||||||
&.title {
|
&.title {
|
||||||
border-bottom-width: 1px;
|
margin-bottom: 2.5rem;
|
||||||
border-bottom-color: var(--overlay0);
|
|
||||||
border-bottom-style: solid;
|
|
||||||
margin-bottom: 3rem;
|
|
||||||
|
|
||||||
&>h1.title {
|
&>h1.title {
|
||||||
font-size: 3rem;
|
font-size: 3rem;
|
||||||
|
|
@ -40,20 +37,22 @@ section {
|
||||||
}
|
}
|
||||||
|
|
||||||
&>p {
|
&>p {
|
||||||
&.metadata {
|
|
||||||
color: var(--subtext1);
|
|
||||||
font-size: .8rem;
|
|
||||||
font-style: italic;
|
|
||||||
font-weight: 300;
|
|
||||||
text-align: end;
|
|
||||||
margin: 0
|
|
||||||
}
|
|
||||||
|
|
||||||
&.subtitle {
|
&.subtitle {
|
||||||
color: var(--subtext1);
|
color: var(--subtext1);
|
||||||
font-size: 1.5rem;
|
font-size: 1.5rem;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 2rem;
|
margin-bottom: 2.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.metadata {
|
||||||
|
color: var(--subtext1);
|
||||||
|
font-size: .8rem;
|
||||||
|
font-weight: 100;
|
||||||
|
text-align: center;
|
||||||
|
margin: 0;
|
||||||
|
border-bottom-width: 1px;
|
||||||
|
border-bottom-color: var(--overlay0);
|
||||||
|
border-bottom-style: solid;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,11 @@
|
||||||
<!-- If you are using pagination, section.pages will be empty.
|
<!-- If you are using pagination, section.pages will be empty.
|
||||||
You need to use the paginator object -->
|
You need to use the paginator object -->
|
||||||
{% for page in section.pages %}
|
{% for page in section.pages %}
|
||||||
<li><a href="{{ page.permalink | safe }}">{{ page.title }}</a></li>
|
<li>
|
||||||
|
<a href="{{ page.permalink | safe }}">{{ page.title }}</a>
|
||||||
|
{% if page.description %}{{ page.description }}{% endif %}
|
||||||
|
{{ page.summary }}
|
||||||
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endblock content %}
|
{% endblock content %}
|
||||||
|
|
@ -7,7 +7,21 @@
|
||||||
{% if page.description %}
|
{% if page.description %}
|
||||||
<p class=subtitle>{{ page.description }}</p>
|
<p class=subtitle>{{ page.description }}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p class=metadata>par {{ page.authors | join(sep=', ') }} le {{ page.date }}{% if page.updated %} (mise à jour : {{ page.updated }}){% endif %}</p>
|
<p class=metadata>
|
||||||
|
<span> {{ page.authors | join(sep=', ') }}</span>
|
||||||
|
|
|
||||||
|
<span>
|
||||||
|
<meta itemprop="datePublished" content="{{ page.date | date(format='%+') }}">
|
||||||
|
{{ page.date | date(format='%d %b %Y') }}
|
||||||
|
</span>
|
||||||
|
|
|
||||||
|
{% if page.updated %}
|
||||||
|
<span> {{ page.updated | date(format='%d %b %Y') }}</span>
|
||||||
|
|
|
||||||
|
{% endif %}
|
||||||
|
<span> {{ page.reading_time }} min</span>
|
||||||
|
|
||||||
|
</p>
|
||||||
</section>
|
</section>
|
||||||
<section>
|
<section>
|
||||||
{{ page.content | safe }}
|
{{ page.content | safe }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue