diff --git a/.gitignore b/.gitignore index feab7a2..d14f266 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ __pycache__ build/ dist/ +.vscode/ *.egg-info diff --git a/madblog/static/css/blog.css b/madblog/static/css/blog.css index 5726700..b62455a 100644 --- a/madblog/static/css/blog.css +++ b/madblog/static/css/blog.css @@ -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%; +} diff --git a/madblog/templates/article.html b/madblog/templates/article.html index 1f74564..c3d240a 100644 --- a/madblog/templates/article.html +++ b/madblog/templates/article.html @@ -34,6 +34,12 @@ {% endif %} {% endif %} + {% if image %} +
+ . +
+ {% endif %} +
{{ content | safe }}