From e2aec1353e9bb008be68d49e4baf5d456bcc3bd5 Mon Sep 17 00:00:00 2001 From: David Arcos Date: Thu, 8 Oct 2026 18:42:51 +0200 Subject: [PATCH 1/4] Stop skipping heading levels 14 pages jumped a heading level, which the HTML validator reports as an error and which makes a screen reader read the wrong outline: a reader moving by heading gets no way back up from a subsection that was never under a section. Six sources, not one: - bordered-col, the shortcode behind the cards on /contact/, the PyLadies home and the PyLadies contact page, emitted an h4 under the h1. An h2. - contact.html emitted two more under the h1. Two h2. - options.html emitted one under an h2, on seven event pages. An h3. - home.html emitted one under an h2. An h3. - Six event pages wrote #### directly under a ##, 18 headings between them. They are ### now. - promote-your-event and the 2017 PyData page wrote ### under the h1, and the 2018 PyDay page five raw h3 in its pre-Hugo block. All h2. Every one keeps the size it had, through the h4 and h3 Bootstrap classes, which is the pattern event.html already uses with h2 class="h1". Nothing moves on the page: only the level changes, and the level is what carries the outline. Measured over the whole build, leaving the frozen copies under /archives/ out: 14 pages had a skip and none has one now. Nothing but heading lines is touched, which the diff shows. --- content/events/other_events/pydata_2017_barcelona.md | 4 ++-- content/events/pydatabcn/pydatabcn_2023.md | 4 ++-- content/events/pyday_bcn/pyday_bcn_2018.md | 10 +++++----- content/events/pyday_bcn/pyday_bcn_2021.md | 8 ++++---- content/events/pyday_bcn/pyday_bcn_2022.md | 6 +++--- content/events/pyday_bcn/pyday_bcn_2023.md | 6 +++--- content/events/pyday_bcn/pyday_bcn_2024.md | 6 +++--- content/events/pyday_bcn/pyday_bcn_2025.md | 6 +++--- content/pybcn_association/promote-your-event.md | 6 +++--- layouts/shortcodes/bordered-col.html | 8 +++++++- themes/pybcn_theme/layouts/_default/contact.html | 4 ++-- themes/pybcn_theme/layouts/_default/home.html | 2 +- themes/pybcn_theme/layouts/_default/options.html | 2 +- 13 files changed, 39 insertions(+), 33 deletions(-) diff --git a/content/events/other_events/pydata_2017_barcelona.md b/content/events/other_events/pydata_2017_barcelona.md index ded5879d5..8b996afbb 100644 --- a/content/events/other_events/pydata_2017_barcelona.md +++ b/content/events/other_events/pydata_2017_barcelona.md @@ -12,11 +12,11 @@ mainColumn: true The [PyData 2017 - Barcelona edition](https://pydata.org/barcelona2017/) took place from May 19th to 21th at [ESADE](https://www.esade.edu/homesite/esp/esadeforum). -### Media +## Media You can see all the [photos](https://www.flickr.com/photos/pydata/sets/72157684439580266/) and [videos](https://www.youtube.com/playlist?list=PLGVZCDnMOq0oieXy92cJBwSirA3G2MCU1) from the event. -### Slides +## Slides This is the list of the slides talks and workshops you can find from the event: diff --git a/content/events/pydatabcn/pydatabcn_2023.md b/content/events/pydatabcn/pydatabcn_2023.md index 50b9e3d8e..e7d7ba160 100644 --- a/content/events/pydatabcn/pydatabcn_2023.md +++ b/content/events/pydatabcn/pydatabcn_2023.md @@ -362,11 +362,11 @@ PyDataBCN is a free non-profit event and is open to everyone, regardless of thei We look forward to seeing you at PyDataBCN and sharing our passion for Python, data science, and engineering! -#### `When and where` +### `When and where` It is scheduled for **Saturday 10th June** in [Canòdrom - Ateneu d'Innovació Digital i Democràtica](https://g.page/Canodrom?share), from 9:00pm to 18:00pm CET, aprox. -#### `Disclaimer` +### `Disclaimer` PyDataBCN would like to expressly clarify that it is an independent event and is not associated or affiliated with the PyData events organized by NumFOCUS. PyDataBCN operates autonomously with its own distinct goals, structure, and organization. \ No newline at end of file diff --git a/content/events/pyday_bcn/pyday_bcn_2018.md b/content/events/pyday_bcn/pyday_bcn_2018.md index 5da1b2aa9..7b8f3a8a3 100644 --- a/content/events/pyday_bcn/pyday_bcn_2018.md +++ b/content/events/pyday_bcn/pyday_bcn_2018.md @@ -18,15 +18,15 @@ heroBackground: /images/photos/people-pyday-2016.jpg

PyDay Barcelona 2018 is going to take place on November 24th at PuntMultimèdia (Espanya Industrial, Sants), full of FREE workshops, talks and contests for the local Python community and an opportunity to spread the word of its existence to other people that could be interested in Python.

-

What is PyDay Barcelona 2018 about?

+

What is PyDay Barcelona 2018 about?

PyDay Barcelona 2018 has the aim of expanding the local Python community. It will be a whole day event, consisting of different level workshops focused on people with a variety of interestss levels and interests. There will be two tracks: beginner and intermediate. Each workshop will be about 80 minutes long. There will be networking opportunities amongst attendees and the sponsoring companies: coffee breaks, open spaces, etc.

-

Join the event

+

Join the event

Eventbrite - PyDay Barcelona 2018

-

Agenda

+

Agenda

@@ -214,10 +214,10 @@ Get the workshop materialsSponsors

Do you want to sponsor this event? Contact us at pyday-bcn-2018@googlegroups.com.

-

Platinum

+

Platinum

-

Gold

+

Gold

diff --git a/content/events/pyday_bcn/pyday_bcn_2021.md b/content/events/pyday_bcn/pyday_bcn_2021.md index 94a6901bc..781e7a0a5 100644 --- a/content/events/pyday_bcn/pyday_bcn_2021.md +++ b/content/events/pyday_bcn/pyday_bcn_2021.md @@ -402,20 +402,20 @@ We are organizing the **the fifth edition** of PyDay in Barcelona! PyDay is an event full of FREE **python-related workshops** and activities for the Python community, organized once per year. Over the [last four editions](#previous_editions_section), PyDay has become a great opportunity to share our love for Python and engage users, companies and newcomers into it! -#### When and where +### When and where It is scheduled for **Saturday 27th November** in [Canòdrom - Ateneu d'Innovació Digital i Democràtica](https://g.page/Canodrom?share), from 9:30pm to 19:00pm CET, aprox. -#### A full day of in-person hands-on workshops +### A full day of in-person hands-on workshops PyDay BCN 2021 will have different **thematic tracks** --e.g. data science, web development, security-- with hands-on workshops of about 90 minutes in which participants will learn how to use different libraries, tools and techniques, fully guided by members of the community and support volunteers. -#### Participate in Kahoot and win prizes! +### Participate in Kahoot and win prizes! We will host a Kahoot game with questions about PyBCN and Python in general, with prizes for the fastest players. Will you miss it?! -#### Covid-safe event +### Covid-safe event We are super excited to be back to in person events, and we are working hard to make PyDay 2021 a safe encounter: - We will ask all in-person attendees to show a vaccination certificate or have a negative covid test taken in the 24 hours previous to the event. - We will have a reduced attendance ratio. diff --git a/content/events/pyday_bcn/pyday_bcn_2022.md b/content/events/pyday_bcn/pyday_bcn_2022.md index 60b6b7a2f..16c2a0ae8 100644 --- a/content/events/pyday_bcn/pyday_bcn_2022.md +++ b/content/events/pyday_bcn/pyday_bcn_2022.md @@ -418,14 +418,14 @@ We are organizing the **the sixth edition** of PyDay in Barcelona! PyDay is an event full of FREE **python-related workshops** and activities for the Python community, organized once per year. Over the [last five editions](#previous_editions_section), PyDay has become a great opportunity to share our love for Python and engage users, companies and newcomers into it! -#### When and where +### When and where It is scheduled for **Saturday 26th November** in [Canòdrom - Ateneu d'Innovació Digital i Democràtica](https://g.page/Canodrom?share), from 9:30pm to 19:00pm CET, aprox. -#### A full day of in-person hands-on workshops +### A full day of in-person hands-on workshops PyDay BCN 2022 will have different **thematic tracks** --e.g. data science, web development, security-- with hands-on workshops of about 90 minutes in which participants will learn how to use different libraries, tools and techniques, fully guided by members of the community and support volunteers. -#### Participate in Kahoot and win prizes! +### Participate in Kahoot and win prizes! We will host a Kahoot game with questions about PyBCN and Python in general, with prizes for the fastest players. Will you miss it?! diff --git a/content/events/pyday_bcn/pyday_bcn_2023.md b/content/events/pyday_bcn/pyday_bcn_2023.md index 6c47a9d2c..a0a0f61fb 100644 --- a/content/events/pyday_bcn/pyday_bcn_2023.md +++ b/content/events/pyday_bcn/pyday_bcn_2023.md @@ -430,14 +430,14 @@ We are organizing the **the seventh edition** of PyDay in Barcelona! PyDay is an event full of FREE **python-related workshops** and activities for the Python community, organized once per year. Over the [last six editions](#previous_editions_section), PyDay has become a great opportunity to share our love for Python and engage users, companies and newcomers into it! -#### When and where +### When and where It is scheduled for **Saturday 11th November** in [Universitat de Barcelona](https://maps.app.goo.gl/RT9THKhxqz3eTvxf7), from 9:00am to 18:00pm CET, aprox. -#### A full day of in-person hands-on workshops +### A full day of in-person hands-on workshops PyDay BCN 2023 will have different **thematic tracks** --e.g. data science, web development, security-- with hands-on workshops of about 90 minutes in which participants will learn how to use different libraries, tools and techniques, fully guided by members of the community and support volunteers. -#### Participate in Kahoot and win prizes! +### Participate in Kahoot and win prizes! We will host a Kahoot game with questions about PyBCN and Python in general, with prizes for the fastest players. Will you miss it?! diff --git a/content/events/pyday_bcn/pyday_bcn_2024.md b/content/events/pyday_bcn/pyday_bcn_2024.md index f022c1db0..a03d97be1 100644 --- a/content/events/pyday_bcn/pyday_bcn_2024.md +++ b/content/events/pyday_bcn/pyday_bcn_2024.md @@ -529,14 +529,14 @@ We are excited to announce the **8th edition** of PyDay in Barcelona! PyDay is an event packed with FREE **python-related workshops** and activities for the Python community. It is organized once per year. Over the [last seven editions](#previous_editions_section), PyDay has become a fantastic opportunity to share our love for Python and engage users, companies, and newcomers! -#### When and where +### When and where It is scheduled for **Saturday 9th November** at [Canòdrom](https://maps.app.goo.gl/Uxiao2Dr7uio9o3v9), from 9:00 a.m. to 18:00 p.m. CET, approximately. -#### A full day of in-person, hands-on workshops +### A full day of in-person, hands-on workshops PyDay BCN 2024 will have different **thematic tracks** --e.g. data science, web development, security-- with hands-on workshops lasting about 90 minutes. Participants will learn how to use different libraries, tools and techniques, fully guided by community members and support volunteers. -#### Participate in Kahoot and win prizes! +### Participate in Kahoot and win prizes! We will host a Kahoot game with questions about PyBCN and Python in general, with prizes for the fastest players. Will you miss it?! diff --git a/content/events/pyday_bcn/pyday_bcn_2025.md b/content/events/pyday_bcn/pyday_bcn_2025.md index 98cf6034a..c5e8fb61f 100644 --- a/content/events/pyday_bcn/pyday_bcn_2025.md +++ b/content/events/pyday_bcn/pyday_bcn_2025.md @@ -563,14 +563,14 @@ We are excited to announce the **9th edition** of PyDay in Barcelona! PyDay is an event packed with FREE **Python-related workshops** and activities for the Python community. It is organized once per year. Over the [last eight editions](#previous_editions_section), PyDay has become a fantastic opportunity to share our love for Python and engage users, companies, and newcomers! -#### When and where +### When and where It is scheduled for **Saturday 29th November** at [Canòdrom](https://maps.app.goo.gl/Uxiao2Dr7uio9o3v9), from 9:00 a.m. to 18:00 p.m. CET, approximately. -#### A full day of in-person, hands-on workshops +### A full day of in-person, hands-on workshops PyDay BCN 2025 will have different **thematic tracks** --e.g. data science, web development, security-- with hands-on workshops lasting about 90 minutes. Participants will learn how to use different libraries, tools and techniques, fully guided by community members and support volunteers. -#### Participate in Kahoot and win prizes! +### Participate in Kahoot and win prizes! We will host a Kahoot game with questions about PyBCN and Python in general, with prizes for the fastest players. Will you miss it?! diff --git a/content/pybcn_association/promote-your-event.md b/content/pybcn_association/promote-your-event.md index aa57ec864..8cfeea36d 100644 --- a/content/pybcn_association/promote-your-event.md +++ b/content/pybcn_association/promote-your-event.md @@ -11,17 +11,17 @@ heroBackground: /images/photos/reg-desk-pyday-2019.jpg --- -### Conditions: +## Conditions: - The event must be **related to Python**. - It must be **free**, or offer some advantages to PyBCN members. - It must be **hosted in Spain**, or be accessible remotely. - There must be a **Code of conduct** in line with [our own](/pybcn_association/coc/). - It must be clearly stated **who is organizing the event**, and therefore who is responsible for it. -### What do you get +## What do you get - We'll forward your event information to our PyBCN meetup list, with more than 3K members. - We'll forward your event information to our PyLadiesBCN meetup list, with more than 600 members. - We'll mention your event in our social networks. -### How does it work? +## How does it work? - Send us an email that we can directly forward to our mailing lists to our [main contact address](mailto:pybcn@googlegroups.com) and our [PyLadiesBCN Committee](mailto:pyladies-bcn@googlegroups.com). We'll be glad to answer any question you may have. diff --git a/layouts/shortcodes/bordered-col.html b/layouts/shortcodes/bordered-col.html index f452fb988..059d7893a 100644 --- a/layouts/shortcodes/bordered-col.html +++ b/layouts/shortcodes/bordered-col.html @@ -21,8 +21,14 @@ {{- end -}}

+ {{- /* h2 and not h4. The card title is a section of its page, and + every page that uses this shortcode puts it straight under the + h1, so an h4 skipped two levels: the validator rejects that and + a screen reader reads the outline wrong. The h4 class keeps the + size it had, which is the pattern event.html already uses with + h2 class="h1". */ -}} {{- with .Get "title" }} -

{{ with $.Get "icon" }} {{ end }}{{ . }}

+

{{ with $.Get "icon" }} {{ end }}{{ . }}

{{- end }} {{ .Inner | markdownify }}
diff --git a/themes/pybcn_theme/layouts/_default/contact.html b/themes/pybcn_theme/layouts/_default/contact.html index e0ba0b6c9..90734d483 100644 --- a/themes/pybcn_theme/layouts/_default/contact.html +++ b/themes/pybcn_theme/layouts/_default/contact.html @@ -6,7 +6,7 @@
{{ if .Params.show_pybcn }} -

PyBCN

+

PyBCN

{{ range $.Site.Params.social_items }} @@ -15,7 +15,7 @@

PyBCN


{{ end }} -

PyLadiesBCN

+

PyLadiesBCN

{{ range $.Site.Params.social_items_pyladies }} diff --git a/themes/pybcn_theme/layouts/_default/home.html b/themes/pybcn_theme/layouts/_default/home.html index 337343387..322995eef 100644 --- a/themes/pybcn_theme/layouts/_default/home.html +++ b/themes/pybcn_theme/layouts/_default/home.html @@ -33,7 +33,7 @@

COLLABORATE

{{ $latest.Title }}

The annual gathering for the Python community in Barcelona!

-

Have a look at the programme and don't miss out!

+

Have a look at the programme and don't miss out!

diff --git a/themes/pybcn_theme/layouts/_default/options.html b/themes/pybcn_theme/layouts/_default/options.html index 020fa8bc8..a12e92d21 100644 --- a/themes/pybcn_theme/layouts/_default/options.html +++ b/themes/pybcn_theme/layouts/_default/options.html @@ -14,7 +14,7 @@

{{ $option.name }}

{{ range $block := $option.blocks }}
-

{{ $block.name }}

+

{{ $block.name }}

{{ range $description := $block.descriptions }}
From 2921a117a029fd284c2484ac7539e4267c82c6ed Mon Sep 17 00:00:00 2001 From: David Arcos Date: Thu, 8 Oct 2026 20:14:02 +0200 Subject: [PATCH 2/4] Close the tags the event pages leave open The PyDay BCN 2025 page carries 48 validator errors. 41 of them are three mistakes, and none is in the page: they are in a template and in a sed-able typo repeated across four event pages. event_detail.html wrote `Requirements:` and `Repository:`, with the closing tag doubled, which is 30 stray end tags across the 15 workshops of that page. It also wrapped `markdownify` in a `p`, and markdownify emits a `p` of its own, so every description nested one inside another: 6 more. The labels are their own paragraph now and markdownify is left to wrap its own text. `
` is not a tag. A `br` is void and has no closing form, so a browser reads `
` as an opening one and the page gets a line break it was not asked for. 36 of them across the 2022, 2023, 2024, and 2025 pages, 4 of them on 2025. And one that is not a markup problem but a broken link a reader can press: the Registration section of PyDay BCN 2025 says "General registration will open ... through Eventbrite" with `href=''`. An empty href reloads the page. The URL is the one the Important dates section of the same page already carries, which answers 200. Measured on the built page: 30 stray `` and 6 stray `

` are 0, the 4 `
` are 0, and there is no empty href left anywhere in content. The 7 errors this does not fix are the `