add image captions

This commit is contained in:
2022-06-23 21:50:12 -04:00
parent 7626e95032
commit 1e8616424a
4 changed files with 41 additions and 2 deletions
+28
View File
@@ -260,6 +260,34 @@
margin-left: auto;
}
.post_contents .icaption-left {
display: flex;
justify-content: left;
align-items: left;
margin-right: auto;
margin-top: 10px;
font-size: 0.9rem;
}
.post_contents .icaption-center {
display: flex;
justify-content: center;
align-items: center;
margin-left: auto;
margin-right: auto;
margin-top: 10px;
font-size: 0.9rem;
}
.post_contents .icaption-right {
display: flex;
justify-content: right;
align-items: right;
margin-left: auto;
margin-top: 10px;
font-size: 0.9rem;
}
.post_contents .tikz-left {
width: 0;
display: flex;
+5
View File
@@ -0,0 +1,5 @@
{% if text %}
<div class="icaption-{% if position %}{{ position }}{% else -%}center{%- endif %}" {%- if style %} style="{{ style | safe }}"{%- endif %}>
<i>{{ text | safe }}</i>
</div>
{% endif %}