diff options
author | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-08-16 16:03:14 +0700 |
---|---|---|
committer | Ngô Ngọc Đức Huy <huyngo@disroot.org> | 2021-08-16 16:03:14 +0700 |
commit | ceaf24acd391d392e43177cfac1c10f8992ec699 (patch) | |
tree | 15fbba1c6f1a0ed88a80fa277b254dcfb5e828b8 /content/posts/2021-05-30-css-stylus.md | |
parent | 75d5209e5c9dc8c9c22a5a865f7c7f8166b282e6 (diff) | |
download | blog-ceaf24acd391d392e43177cfac1c10f8992ec699.tar.gz |
Add webp alternative to reduce loading time
Also, edit CSS version to clear cache
Diffstat (limited to 'content/posts/2021-05-30-css-stylus.md')
-rw-r--r-- | content/posts/2021-05-30-css-stylus.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/content/posts/2021-05-30-css-stylus.md b/content/posts/2021-05-30-css-stylus.md index 65a9e8f..b5206ae 100644 --- a/content/posts/2021-05-30-css-stylus.md +++ b/content/posts/2021-05-30-css-stylus.md @@ -29,7 +29,10 @@ privacy policy: I've customized my theme to look a bit like my vim theme, badwolf, but with a lighter background: - +<picture> + <source srcset="images/badwolf-ish.webp" type="image/webp"> + <img alt="badwolf-ish theme" src="/images/badwolf-ish.png"> +</picture> Here is the CSS I used: |