Skip to content
Snippets Groups Projects
Commit ebf755b1 authored by codecraft's avatar codecraft :crocodile:
Browse files

fix right aligned images

parent 444d19cb
No related branches found
No related tags found
1 merge request!48fix right aligned images
Pipeline #179090 passed
<section class="section"> <section class="section">
<div class="container"> <div class="container">
{% if title %}<h2 class="title is-2">{{ title }}</h2>{% endif %} {% if title %}<h2 class="title is-2">{{ title }}</h2>{% endif %}
<div class="columns is-vcentered mt-4"> <div class="columns is-vcentered mt-4 {% if align|default(value="left") == "right" %}is-flex-direction-row-reverse{% endif %}">
<div class="column is-one-third {% if align|default(value="left") == "right" %}is-pulled-right{% endif %}"> <div class="column is-one-third">
<figure class="image is-4by3"> <figure class="image is-4by3">
{% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ img, width=800, height=600) -%} {% set image = resize_image(path="@/" ~ page.colocated_path ~ "/" ~ img, width=800, height=600) -%}
<img src="{{image.url}}" alt="{{ alt }}"/> <img src="{{image.url}}" alt="{{ alt }}"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment