Refactor blog image loading - #2238
Conversation
✅ Deploy Preview for changesets ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
| </script> | ||
|
|
||
|  | ||
| {loading="eager"} |
There was a problem hiding this comment.
This is kept eager as it's above the fold
beeequeue
left a comment
There was a problem hiding this comment.
If the setting works, great!
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2238 +/- ##
=======================================
Coverage 84.53% 84.53%
=======================================
Files 80 80
Lines 3168 3168
Branches 890 890
=======================================
Hits 2678 2678
Misses 433 433
Partials 57 57 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This refactors all images be written in markdown instead so VitePress can auto-calculate the width and height. Plus, use the attrs syntax to set some attributes on the image.