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__ __pycache__
build/ build/
dist/ dist/
.vscode/
*.egg-info *.egg-info

View file

@ -48,3 +48,14 @@ a:hover {
padding: 0 .5em; padding: 0 .5em;
overflow: auto; 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 %}
{% endif %} {% endif %}
{% if image %}
<div class="main-image-container">
<img class="main-image" src="{{ image }}" alt=".">
</div>
{% endif %}
<div class="content"> <div class="content">
{{ content | safe }} {{ content | safe }}
</div> </div>