Added support for main article image on the article head

remotes/origin/HEAD
Fabio Manganiello 10 months ago
parent 587e5e9af3
commit 5e4c168933
  1. 1
      .gitignore
  2. 11
      madblog/static/css/blog.css
  3. 6
      madblog/templates/article.html

1
.gitignore vendored

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

@ -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%;
}

@ -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>

Loading…
Cancel
Save