Skip to content

Commit

Permalink
Change imagemagick optional to depend on one variable (alshedivat#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
rohandebsarkar authored and GeorgeVern committed Feb 1, 2023
1 parent 5569d13 commit 881017f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,8 @@ filtered_bibtex_keywords: [abbr, abstract, arxiv, bibtex_show, html, pdf, select
# Responsive WebP Images
# -----------------------------------------------------------------------------

enable_responsive_images: true # enables responsive images for your site (recomended, see https://github.com/alshedivat/al-folio/issues/537)

imagemagick:
enabled: true # make it 'false' if not using responsive images
enabled: false # enables responsive images for your site (recomended, see https://github.com/alshedivat/al-folio/issues/537)
widths:
- 480
- 800
Expand Down
2 changes: 1 addition & 1 deletion _includes/figure.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<figure>

<picture>
{% if site.enable_responsive_images %}
{% if site.imagemagick.enabled %}
{% for i in site.imagemagick.widths -%}
<source media="(max-width: {{ i }}px)" srcset="{{ path | relative_url }}-{{ i }}.webp" />
{% endfor -%}
Expand Down

0 comments on commit 881017f

Please sign in to comment.