Skip to content

Commit 50afa47

Browse files
committed
Updat epubs
1 parent 1a5b32c commit 50afa47

5 files changed

Lines changed: 30 additions & 1 deletion

File tree

-quality

Whitespace-only changes.

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ imagemagick:
348348
- ".tiff"
349349
- ".gif"
350350
output_formats:
351-
webp: "-quality 85"
351+
webp: "-strip -quality 90"
352352

353353
# Lazy loading images
354354
# If you enable lazy loading, all images will add the loading="lazy" attribute.

_includes/responsive_image.liquid

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{% comment %}
2+
Usage: {% include responsive_image.liquid path="/assets/img/path/to/image.jpg" alt="Alt text" class="optional-class" %}
3+
{% endcomment %}
4+
5+
{% assign image_path = include.path %}
6+
{% assign image_alt = include.alt | default: "" %}
7+
{% assign image_class = include.class | default: "" %}
8+
9+
{% comment %} Extract base path without extension {% endcomment %}
10+
{% assign path_parts = image_path | split: '.' %}
11+
{% assign extension = path_parts | last %}
12+
{% assign path_without_ext = image_path | replace_last: extension, "" | remove_last: "." %}
13+
14+
<picture>
15+
{% comment %} WebP sources with different widths {% endcomment %}
16+
<source
17+
type="image/webp"
18+
srcset="{{ path_without_ext }}-480.webp 480w,
19+
{{ path_without_ext }}-800.webp 800w,
20+
{{ path_without_ext }}-1400.webp 1400w"
21+
sizes="(max-width: 480px) 480px, (max-width: 800px) 800px, 1400px">
22+
23+
{% comment %} Fallback to original image {% endcomment %}
24+
<img src="{{ image_path }}" alt="{{ image_alt }}" class="{{ image_class }}" loading="lazy">
25+
</picture>
26+

_pages/publications.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ permalink: /publications/
4242
<div class="pub-authors">P Tiwari, S Nath, R Prakash</div>
4343
<div class="pub-venue">2026 IEEE International Conference on Robotics and Automation (ICRA)</div>
4444
<div class="pub-links">
45+
<span class="pub-link-text">Paper</span>
4546
</div>
4647
</div>
4748
</div>
@@ -56,6 +57,7 @@ permalink: /publications/
5657
<div class="pub-authors">S Kumar, R Prakash</div>
5758
<div class="pub-venue">2026 IEEE International Conference on Robotics and Automation (ICRA)</div>
5859
<div class="pub-links">
60+
<span class="pub-link-text">Paper</span>
5961
</div>
6062
</div>
6163
</div>
@@ -70,6 +72,7 @@ permalink: /publications/
7072
<div class="pub-authors">S Saharsh, S Sonkar, P Jagtap, R Prakash</div>
7173
<div class="pub-venue">2026 IEEE International Conference on Robotics and Automation (ICRA)</div>
7274
<div class="pub-links">
75+
<span class="pub-link-text">Paper</span>
7376
</div>
7477
</div>
7578
</div>
798 KB
Binary file not shown.

0 commit comments

Comments
 (0)