You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,16 +53,16 @@ For MAC:
53
53
Linux:
54
54
`sudo apt-get install imagemagick`
55
55
56
-
You can convert a directory of PNG images associated with a
57
-
blog post that you write using:
56
+
You can convert a directory of `.png` images associated with a
57
+
blog post that you write using the following bash command:
58
58
59
59
`for file in *.png; do cwebp "$file" -o "${file%.*}.webp"; done`
60
60
61
-
or a single image
61
+
or you can convert a single image:
62
62
63
63
`cwebp input-image.png -o output-image.webp`
64
64
65
-
Below is an example of adding a figure to a post that has both webp and .png formatsto support older and newer browsers.
65
+
Below is an example of how to add figure to a post that supports both `.webp` and `.png` formats. Providing both allows the website to be backwards-compatible with older browsers.
66
66
67
67
```html
68
68
<figure>
@@ -74,10 +74,12 @@ Below is an example of adding a figure to a post that has both webp and .png for
74
74
```
75
75
## How to update blog post last_updated field
76
76
77
-
We have a script that will automatically update the last_updated field for all of our blog posts. To run it use:
77
+
We have a bash script that will automatically update the `last_updated` field in the YAML for all of our blog posts. To run it use:
78
78
79
79
`./scripts/date-updated.sh`
80
80
81
+
Note: it would be nice to add this into our CI build but right now we do not have that setup. So we just need to run this script periodically to update the `last_updated` field when we update a blog post.
82
+
81
83
## Contributors ✨
82
84
83
85
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
0 commit comments