Skip to content

Commit

Permalink
fix: resolve responsive image bug
Browse files Browse the repository at this point in the history
Github issue link
alshedivat/al-folio#537
  • Loading branch information
YukunXia committed May 25, 2022
1 parent 94e5193 commit 02393fe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ last_name: Xia
email: yukunxia2020@gmail.com
description: > # the ">" symbol means to ignore newlines until "footer_text:"
A simple, whitespace theme for academics. Based on [*folio](https://github.com/bogoli/-folio) design.
footer_text: >
Powered by <a href="https://jekyllrb.com/" target="_blank">Jekyll</a> with <a href="https://github.com/alshedivat/al-folio">al-folio</a> theme.
Hosted by <a href="https://pages.github.com/" target="_blank">GitHub Pages</a>.
Photos from <a href="https://unsplash.com" target="_blank">Unsplash</a>.
# footer_text: >
# Powered by <a href="https://jekyllrb.com/" target="_blank">Jekyll</a> with <a href="https://github.com/alshedivat/al-folio">al-folio</a> theme.
# Hosted by <a href="https://pages.github.com/" target="_blank">GitHub Pages</a>.
# Photos from <a href="https://unsplash.com" target="_blank">Unsplash</a>.
keywords: jekyll, jekyll-theme, academic-website, portfolio-website # add your own keywords or leave empty

lang: en # the language of your site (for example: en, fr, cn, ru, etc.)
Expand All @@ -36,7 +36,7 @@ rss_icon: true
# -----------------------------------------------------------------------------

navbar_fixed: true
footer_fixed: true
footer_fixed: false

# Dimensions
max_width: 800px
Expand Down Expand Up @@ -249,7 +249,7 @@ imagemagick:
- 800
- 1400
input_directories:
- assets/img/
- /
input_formats:
- ".jpg"
- ".jpeg"
Expand Down
4 changes: 2 additions & 2 deletions _includes/figure.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
<figure>

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

<!-- Fallback to the original file -->
<img {% if include.class %}class="{{ include.class }}"{% endif %} src="{{ include.path | relative_url }}" {% if include.alt %}alt="{{ include.alt }}"{% endif %} {% if include.title %}title="{{ include.title }}"{% endif %} {% if include.zoomable %}data-zoomable{% endif %} />
Expand Down
2 changes: 1 addition & 1 deletion _projects/2022-05-17-gan-guo-hua-cai.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
layout: page
title: 干锅花菜
title: 干锅花菜 Dry Pot Califlower
description: 2022-05-17
img: assets/img/food/2022-05-17-gan-guo-hua-cai.jpg
importance: 4
Expand Down

0 comments on commit 02393fe

Please sign in to comment.