diff options
-rw-r--r-- | sass/style.sass | 6 | ||||
-rw-r--r-- | templates/shortcodes/img.html | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/sass/style.sass b/sass/style.sass index 69c0b1c..29de71b 100644 --- a/sass/style.sass +++ b/sass/style.sass @@ -118,6 +118,12 @@ body color: var(--fg-color) background-color: var(--bg-color) +.float-left + float: left + +.float-right + float: right + main display: flex flex-direction: column diff --git a/templates/shortcodes/img.html b/templates/shortcodes/img.html index 320ac84..d57e54e 100644 --- a/templates/shortcodes/img.html +++ b/templates/shortcodes/img.html @@ -3,7 +3,7 @@ {% if not float -%} <figure> {% else -%} -<figure style="float: {{ float }};"> +<figure class="float-{{ float }}"> {% endif -%} <a href="{% if link %}{{ link }}{% else %}/{{ url }}{% endif %}"> <img src="{{ image.url }}" alt="{{ alt }}" /> |