Skip to content

Commit

Permalink
fix: audio/video path apply variable media_subpath (cotes2020#1745)
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfux authored May 18, 2024
1 parent 5cdde7d commit 00a27a1
Show file tree
Hide file tree
Showing 3 changed files with 152 additions and 183 deletions.
2 changes: 1 addition & 1 deletion _includes/embed/audio.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

{% unless src contains '://' %}
{%- capture src -%}
{% include media-url.html src=src %}
{% include media-url.html src=src subpath=page.media_subpath %}
{%- endcapture -%}
{% endunless %}

Expand Down
2 changes: 1 addition & 1 deletion _includes/embed/video.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

{% unless video_url contains '://' %}
{%- capture video_url -%}
{% include media-url.html src=video_url %}
{% include media-url.html src=video_url subpath=page.media_subpath %}
{%- endcapture -%}
{% endunless %}

Expand Down
Loading

0 comments on commit 00a27a1

Please sign in to comment.