We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cbe813 commit f457057Copy full SHA for f457057
.github/workflows/main.yml
@@ -51,7 +51,7 @@ jobs:
51
- name: Compress Image
52
uses: jruipinto/ImageMagick-action@v1
53
with:
54
- command: find ./content/posts -type f $ -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" $ -exec sh -c 'convert "$1" "${1%.*}.webp" && convert "$1" "${1%.*}.avif"' _ {} \;
+ command: find ./content/posts/ -type f $ -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" $ -exec sh -c 'for img; do convert "$img" "${img%.*}.webp" && convert "$img" "${img%.*}.avif"; done' _ {} +
55
56
github_pages:
57
name: Build and Publish Github Pages
0 commit comments