Skip to content

Commit 4a0fa68

Browse files
authored
feat(blog): 2024 recap blog (#545)
* fix: Edits * feat(blog): 2024 recap * add: alt tags * fix: add webp for all graphics * fix: add leadership teams and webp graphics * fix: images for ci * fix: better structure and clariy
1 parent 46b7137 commit 4a0fa68

21 files changed

+290
-2
lines changed

README.md

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ about contributing to our website, our **Python Packaging Guide** and our
2626
Have you decided to contribute? We use the [Jekyll framework](https://jekyllrb.org)
2727
for creating this site. To set up a **development environment** and **run the site locally**, follow these steps:
2828

29-
1. Install ruby and bundler on your machine. See [the Jekyll docs](https://jekyllrb.com/docs/installation/) for instructions, if needed.
29+
1. Install ruby and bundler on your machine. See [the Jekyll docs](https://jekyllrb.com/docs/installation/) for instructions.
3030
2. Fork and clone this repository.
3131
3. Run `bundle install` in the root of the cloned repository directory. This will
3232
install the gems needed to run the site locally.
3333
4. Run `bundle exec jekyll serve` to start the jekyll web server.
34-
NOTE: if you want the page to automagically reload use: `bundle exec jekyll serve --livereload`. this requires Jekyll 3.7 or higher.
34+
NOTE: if you want the page to automatically reload, use: `bundle exec jekyll serve --live reload.` This requires Jekyll 3.7 or higher.
3535
5. Open your browser and navigate to `http://127.0.0.1:4000/`.
3636

3737
Please test your changes locally prior to submitting a pull request (PR).
@@ -43,6 +43,36 @@ If you are publishing a blog post with a date that is in the future, you can bui
4343

4444
`bundle exec jekyll serve --future`.
4545

46+
### Images and webp
47+
48+
We try to keep the image size of our graphics as small/compressed as possible. To enable webp on your system, you first need to install it:
49+
50+
For MAC:
51+
`brew install webp`
52+
53+
Linux:
54+
`sudo apt-get install imagemagick`
55+
56+
You can convert a directory of PNG images associated with a
57+
blog post that you write using:
58+
59+
`for file in *.png; do cwebp "$file" -o "${file%.*}.webp"; done`
60+
61+
or a single image
62+
63+
`cwebp input-image.png -o output-image.webp`
64+
65+
Below is an example of adding a figure to a post that has both webp and .png formats to support older and newer browsers.
66+
67+
```html
68+
<figure>
69+
<picture>
70+
<source srcset="/images/image-name.webp" type="image/webp">
71+
<img src="/images/image-name.png" alt="Alt text here" />
72+
</picture>
73+
</figure>
74+
```
75+
4676
## Contributors ✨
4777

4878
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

_posts/2025-02-07-pyopensci-2024-a-year-in-review.md

Lines changed: 254 additions & 0 deletions
Large diffs are not rendered by default.

_sass/minimal-mistakes/_page.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,10 @@ body {
585585
}
586586
}
587587

588+
.page__content figure {
589+
max-width: 40rem;
590+
}
591+
588592
.page__related {
589593
@include breakpoint($large) {
590594
padding-right: 0;
148 KB
Loading
Binary file not shown.
293 KB
Loading
76.8 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
286 KB
Loading

0 commit comments

Comments
 (0)