Skip to content

Commit 8a717ab

Browse files
authored
fix: headers should use webp and remove the overlay (for accessibility and load)
2 parents 81b5750 + e2580a5 commit 8a717ab

File tree

112 files changed

+75
-126
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+75
-126
lines changed

_includes/page__hero.html

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
{% capture overlay_img_path %}{{ page.header.overlay_image | relative_url }}{% endcapture %}
22

3-
{% if page.header.overlay_filter contains "gradient" %}
4-
{% capture overlay_filter %}{{ page.header.overlay_filter }}{% endcapture %}
5-
{% elsif page.header.overlay_filter contains "rgba" %}
6-
{% capture overlay_filter %}{{ page.header.overlay_filter }}{% endcapture %}
7-
{% capture overlay_filter %}linear-gradient({{ overlay_filter }}, {{ overlay_filter }}){% endcapture %}
8-
{% elsif page.header.overlay_filter %}
9-
{% capture overlay_filter %}rgba(0, 0, 0, {{ page.header.overlay_filter }}){% endcapture %}
10-
{% capture overlay_filter %}linear-gradient({{ overlay_filter }}, {{ overlay_filter }}){% endcapture %}
11-
{% endif %}
12-
133
{% if page.header.image_description %}
144
{% assign image_description = page.header.image_description %}
155
{% else %}
166
{% assign image_description = page.title %}
177
{% endif %}
188

199
{% assign image_description = image_description | markdownify | strip_html | strip_newlines | escape_once %}
20-
10+
<!-- Add support for webp and remove overlay filter -->
2111
<div class="page__hero{% if page.header.overlay_color or page.header.overlay_image %}--overlay{% endif %}"
22-
style="{% if page.header.overlay_color %}background-color: {{ page.header.overlay_color | default: 'transparent' }};{% endif %} {% if overlay_img_path %}background-image: {% if overlay_filter %}{{ overlay_filter }}, {% endif %}url('{{ overlay_img_path }}');{% endif %}"
23-
>
12+
style="
13+
{% if page.header.overlay_color %}
14+
background-color: {{ page.header.overlay_color | default: '#33205c' }};
15+
{% endif %}
16+
{% if overlay_img_path %}
17+
background-image: image-set(
18+
url('{{ overlay_img_path | replace: '.png', '.webp' }}') 1x,
19+
url('{{ overlay_img_path }}') type('image/png') 2x
20+
);
21+
{% endif %}
22+
">
2423
{% if page.header.overlay_color or page.header.overlay_image %}
2524
<div class="wrapper">
2625
<h1 id="page-title" class="page__title" itemprop="headline">

_pages/about-peer-review.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ layout: splash
33
permalink: /about-peer-review/
44
title: "pyOpenSci Makes Python Software Better and Easier to Find Through Peer Review"
55
header:
6-
overlay_image: images/header.png
7-
overlay_filter: 0.8
6+
overlay_image: images/headers/pyos-peer-review-header.png
87
intro:
98
- excerpt: "Our open peer review process makes scientific software better and easier to discover. [Check out our accepted packages.](https://www.pyopensci.org/python-packages.html)"
109
benefits_scientists:
@@ -16,7 +15,7 @@ benefits_scientists:
1615
btn_label: Learn more about scientific Python community partnerships
1716
btn_class: btn--primary
1817
benefits_maintainers:
19-
- image_path: images/landing-pages/pyopensci-supports-maintainers.png
18+
- image_path: images/landing-pages/peer-review-supports-maintainers.png
2019
alt: "A pencil sketch of a round table with people sitting around it from different backgrounds working on laptops and also writing together."
2120
excerpt: "The pyOpenSci peer review process multiplies shared knowledge, making it easier for Pythonistas of all levels to accomplish challenging tasks, such as navigating the Python packaging ecosystem, with relative ease. And our diverse community supports scientific package maintainers in their efforts to develop and build robust software."
2221
title: "Peer review benefits open source maintainers"

_pages/contributors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ title: "The pyOpenSci Team & Contributors"
55
excerpt: "pyOpenSci is a diverse community of people interested in building a community of practice around scientific software written in Python."
66
classes:
77
header:
8-
overlay_image: images/header.png
8+
overlay_image: images/headers/pyopensci-learn-header.png
99
overlay_filter: 0.6
1010
redirect_from:
1111
- /contributors.html

_pages/events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ classes: wide
55
title: "pyOpenSci Events"
66
excerpt: "pyOpenSci holds events that support scientists developing open science skills."
77
header:
8-
overlay_image: images/headers/scipy-2024-workshop.png
8+
overlay_image: images/headers/pyopensci-learn-header.png
99
overlay_filter: rgba(20, 13, 36, 0.8)
1010
author_profile: false
1111
---

_pages/home.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
layout: splash
33
title: "Welcome to pyOpenSci"
4-
excerpt: "We make it easier for scientists to create, find, maintain and contribute to reusable code and software."
4+
excerpt: "We make it easier for scientists to create, find, maintain, and contribute to reusable code and software."
55
author_profile: false
66
published: true
77
site-map: true
88
permalink: /
99
header:
10-
overlay_image: /images/people/header-mentored-sprints-smaller.png
10+
overlay_image: /images/headers/pyopensci-sprints.png
1111
overlay_filter: 0.7
1212
actions:
1313
- label: "Submit a Package"

_pages/how-to-submit-package.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
layout: single
33
title: "How to submit a Python package to pyOpenSci for review"
44
header:
5-
overlay_image: images/header.png
6-
overlay_filter: 0.8
5+
overlay_image: images/headers/pyos-peer-review-header.png
76
author_profile: false
87
published: true
98
site-map: true

_pages/packaging-resources.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ permalink: /python-packaging-science.html
55
title: "Python packaging resources for scientists"
66
excerpt: "We make the Python package ecosystem easier to navigate through peer review and packaging resources."
77
header:
8-
overlay_image: images/header.png
8+
overlay_image: images/headers/pyopensci-software.png
99
overlay_filter: 0.8
1010
intro:
1111
- excerpt: "There are many tools and approaches that can be used to create a Python package. We build resources that help you both understand the tool ecosystem and also learn how to create a Python package using modern best practices."

_pages/partners.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ permalink: /partners.html
44
title: "pyOpenSci Community Partners: affiliated package review"
55
classes: flowing
66
header:
7-
overlay_image: images/header.png
8-
overlay_filter: 0.6
7+
overlay_image: images/headers/pyos-peer-review-header.png
98
intro:
109
- excerpt: "More here on community partners."
1110
scientists:

_pages/python-packages.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ permalink: /python-packages.html
44
title: "pyOpenSci Open Peer Review & Accepted Packages"
55
classes:
66
header:
7-
overlay_image: images/header.png
8-
overlay_filter: 0.6
7+
overlay_image: images/headers/pyopensci-software.png
98
intro:
109
- excerpt: "The Python packages below have
1110
been accepted into the pyOpenSci ecosystem through our [open software peer review process](/about-peer-review/)."

_posts/2019-10-25-welcome-to-pyopensci.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "pyOpenSci is a community organization devoted to the development of ro
55
author: "Leah Wasser"
66
permalink: blog/welcome-to-pyopensci/
77
header:
8-
overlay_filter: 0.6
9-
overlay_color: "#333"
8+
overlay_color: "#33205c"
109
categories:
1110
- updates
1211
- blog-post

_posts/2019-10-26-pyos-min-mistakes-theme.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "pyOpenSci minimal mistakes theme documentation."
55
author: "Leah Wasser"
66
permalink: docs/pyos-website/
77
header:
8-
overlay_filter: 0.6
9-
overlay_color: "#333"
8+
overlay_color: "#33205c"
109
last_modified: 2025-03-05
1110
toc: true
1211
categories:

_posts/2019-11-18-pandera-dataframe-validation.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "Pandera is a a flexible and expressive toolkit for performing statisti
55
author: "Niels Bantilan"
66
permalink: /blog/pandera-python-pandas-dataframe-validation
77
header:
8-
overlay_image: images/pandas.jpg
9-
overlay_filter: 0.6
8+
overlay_image: images/blog/headers/pandas.png
109
caption: "Photo credit: [**Ann Batdorf, Smithsonian's National Zoo**](https://www.flickr.com/photos/nationalzoo/5371290900/in/photostream/)"
1110
categories:
1211
- blog-post

_posts/2019-12-03-agu-2019-pyopensci-events.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "Several pyOpenSci and Open Source Software events will occur at AGU 20
55
author: "Leah Wasser"
66
permalink: /blog/pyopensci-at-agu-2019-python
77
header:
8-
overlay_color: "#333"
9-
caption:
8+
overlay_color: "#33205c"
109
categories:
1110
- updates
1211
- blog-post

_posts/2020-04-29-movingpandas-movement-data-analysis.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "MovingPandas is an easy to use toolkit for exploring movement data tha
55
author: "Anita Graser"
66
permalink: /blog/movingpandas-movement-data-analysis
77
header:
8-
overlay_image: images/pandas.jpg
9-
overlay_filter: 0.6
8+
overlay_image: images/blog/headers/pandas.png
109
caption: "Photo credit: [**Ann Batdorf, Smithsonian's National Zoo**](https://www.flickr.com/photos/nationalzoo/5371290900/in/photostream/)"
1110
categories:
1211
- blog-post

_posts/2022-09-10-executive-director-pyopensci-leah-wasser-updates.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "pyOpenSci has recently transitioned to a fiscal sponsor and has a new
55
author: "Leah Wasser"
66
permalink: /blog/new-executive-director-leah-wasser
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- updates
1211
- blog-post

_posts/2022-09-27-call-for-python-software-review-editors.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "pyOpenSci is developing its open peer review process for Python scient
55
author: "Leah Wasser"
66
permalink: /blog/python-software-review-process-editor-in-chief
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- updates
1211
- blog-post

_posts/2022-10-24-why-should-python-open-source-matter-science.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "Free and open source software tools are the foundation for thousands i
55
author: "Leah Wasser"
66
permalink: /blog/why-python-open-source-software-matters-for-scientists.html
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- blog-post
1211
- highlight

_posts/2022-11-07-why-python-package-health-metrics-matter.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "Collecting baseline data that aligns with the goals and outcomes of yo
55
author: "Leah Wasser"
66
permalink: /blog/why-python-package-health-metrics-matter.html
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- blog-post
1211
- highlight

_posts/2022-11-21-what-makes-a-python-package-healthy.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "How should pyOpenSci measure Python open source package health and lev
55
author: "Leah Wasser"
66
permalink: /blog/what-makes-open-source-python-package-healthy.html
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- blog-post
1211
- highlight

_posts/2023-03-22-demystifying-python-packaging.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "pyOpenSci has published the packaging structure and tool section of it
55
author: "Leah Wasser"
66
permalink: /blog/demystifying-python-packaging.html
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- blog-post
1211
- highlight

_posts/2023-06-13-pycon2023-peer-review-david-nicholson-crowsetta.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ excerpt: "David Nicholson gave a lightning talk about his experience going throu
55
author: Leah Wasser
66
permalink: /blog/pycon2023-crowsetta-peer-review.html
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
10-
overlay_image: /images/talks/david-nicholson-crowsetta-lightning-pycon2023.png
8+
overlay_color: "#33205c"
9+
overlay_image: /images/blog/headers/david-nicholson-2023-header.png
1110
categories:
1211
- blog-post
1312
- highlight

_posts/2023-06-14-pycon-maintainers-summit-python-packaging-talk-leah-wasser.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "This year I attended by first PyCon US meeting representing pyOpenSci.
55
author: "Leah Wasser"
66
permalink: /blog/pycon-2023-packaging-presentation-sprints-leah-wasser.html
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- blog-post
1211
- highlight

_posts/2023-07-18-pyopensci-scipy-2023.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "The SciPy 2023 meeting did not disappoint this year. We have a whole n
55
author: "Leah Wasser"
66
permalink: /blog/scipy-2023-community.html
77
header:
8-
overlay_color: "#542668"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- blog-post
1211
- highlight

_posts/2023-09-11-community-manager-job-available.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "This position has been filled. pyOpenSci is hiring a community manager
55
author: "Leah Wasser"
66
permalink: /blog/pyOpenSci-hiring-community-manager-fall-2023.html
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- blog-post
1211
- jobs

_posts/2023-10-18-rse-2023-pyopensci-bof.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "pyOpenSci held a community birds of a feather session at the 2023 RSE
55
author: "Leah Wasser"
66
permalink: /blog/pyOpenSci-research-software-2023.html
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- blog-post
1211
- community

_posts/2023-11-29-welcome-jesse-pyos-community-manager.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "Learn more about our new pyOpenSci Community Manager, Jesse Mostipak,
55
author: "Jesse Mostipak"
66
permalink: /blog/pyOpenSci-new-community-manager.html
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- blog-post
1211
- community

_posts/2024-01-03-czi-funds-pyopensci-2024.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "CZI has received funding from the Chan Zuckerberg Foundation. Learn mo
55
author: "Leah Wasser"
66
permalink: /blog/czi-funds-pyOpenSci-2024.html
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- blog-post
1211
- community

_posts/2024-03-01-pyos-newsletter-march-2024.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "New partnerships, packages, and conference announcements!"
55
author: "Jesse Mostipak"
66
permalink: /blog/pyos-newsletter-march-2024.html
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- blog-post
1211
- community

_posts/2024-04-01-pyos-newsletter-april-2024.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "New contributors, a new package, and a few new social campaigns, all t
55
author: "Jesse Mostipak"
66
permalink: /blog/pyos-newsletter-april-2024.html
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- blog-post
1211
- community

_posts/2024-04-16-pyos-open-education-resources-announcement.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "We're excited to share information about the pyOpenSci approach to edu
55
author: "Jesse Mostipak"
66
permalink: /blog/pyos-education-announcement.html
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- blog-post
1211
- community

_posts/2024-04-18-rdata-read-r-datasets.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "rdata is a library for reading R datasets and converting them to Pytho
55
author: "Carlos Ramos Carreño"
66
permalink: /blog/read-r-datasets-from-python.html
77
header:
8-
overlay_image: images/pandas.jpg
9-
overlay_filter: 0.6
8+
overlay_image: images/blog/headers/pandas.png
109
caption: "Photo credit: [**Ann Batdorf, Smithsonian's National Zoo**](https://www.flickr.com/photos/nationalzoo/5371290900/in/photostream/)"
1110
categories:
1211
- blog-post

_posts/2024-04-29-pyos-newsletter-may-2024.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "May has brought two new packages, the first (of many!) pyOpenSci works
55
author: "Jesse Mostipak"
66
permalink: /blog/pyos-newsletter-may-2024.html
77
header:
8-
overlay_color: "#666"
9-
overlay_filter: 0.6
8+
overlay_color: "#33205c"
109
categories:
1110
- blog-post
1211
- community

_posts/2024-05-14-pyos-guide-to-pyconus-2024.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ author: "Jesse Mostipak"
66
permalink: /blog/pyos-guide-to-pyconus-2024.html
77
header:
88
overlay_image: images/blog/2024/may/pycon-us-2024.png
9-
overlay_filter: rgba(20, 13, 36, 0.8)
109
categories:
1110
- blog-post
1211
- community

_posts/2024-05-23-pyos-call-for-editors.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "pyOpenSci is looking for volunteers from a wide array of scientific ba
55
author: "Jesse Mostipak"
66
permalink: /blog/pyos-call-for-editors-may-2024.html
77
header:
8-
overlay_image: images/blog/headers/23-05-2024-call-for-editors.png
9-
overlay_filter: rgba(20, 13, 36, 0.8)
8+
overlay_image: images/blog/headers/call-for-editors.png
109
categories:
1110
- blog-post
1211
- community

_posts/2024-05-24-oss-fall-festival-save-the-date-2024.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ excerpt: "Shake off those post-PyCon blues by adding our Open Science Fall Festi
55
author: "Jesse Mostipak"
66
permalink: /blog/save-the-date-oss-fall-festival-2024.html
77
header:
8-
overlay_image: images/blog/2024/may/fall-festival-save-the-date-2024.png
9-
overlay_filter: rgba(20, 13, 36, 0.8)
8+
overlay_color: "#33205c"
109
categories:
1110
- blog-post
1211
- community

0 commit comments

Comments
 (0)