Added support for main article image on the article head

This commit is contained in:
Fabio Manganiello 2022-01-17 11:22:20 +01:00
parent 587e5e9af3
commit 5e4c168933
3 changed files with 18 additions and 0 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
__pycache__
build/
dist/
.vscode/
*.egg-info

View file

@ -48,3 +48,14 @@ a:hover {
padding: 0 .5em;
overflow: auto;
}
.main-image-container {
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}
.main-image-container img {
width: 80%;
}

View file

@ -34,6 +34,12 @@
{% endif %}
{% endif %}
{% if image %}
<div class="main-image-container">
<img class="main-image" src="{{ image }}" alt=".">
</div>
{% endif %}
<div class="content">
{{ content | safe }}
</div>