restructure repo
This commit is contained in:
parent
dc79d5c4de
commit
232e4c414e
82 changed files with 2 additions and 2 deletions
8
themes/terminimal/templates/shortcodes/image.html
Normal file
8
themes/terminimal/templates/shortcodes/image.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
{% if src %}
|
||||
{# If the image's URL is internal to the site... #}
|
||||
{% if src is not starting_with("http") %}
|
||||
{# ... then prepend the site's base URL to the image's URL. #}
|
||||
{% set src = config.base_url ~ src %}
|
||||
{% endif %}
|
||||
<img src="{{ src | safe }}"{% if alt %} alt="{{ alt }}"{% endif %} class="{% if position %}{{ position }}{% else -%} center {%- endif %}" {%- if style %} style="{{ style | safe }}" {%- endif %} />
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue