Skip to content

Commit

Permalink
fix: set image path
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket committed Jan 22, 2024
1 parent 73c58d3 commit 475f8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/shortcodes/image.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{%- if img is starting_with("https://") %}{% set image = img %}{% else %}{% set image = get_url(path=img, cachebust=true) %}{% set meta = get_image_metadata(path="img") %}{%- endif %}
{%- if img is starting_with("https://") %}{% set image = img %}{% else %}{% set image = get_url(path=img, cachebust=true) %}{% set meta = get_image_metadata(path=image) %}{%- endif %}
<figure>
<center>
{%- if link %}<a href={{ link | safe }}>{%- endif %}
Expand Down

0 comments on commit 475f8d7

Please sign in to comment.