diff --git a/.frontmatter_check.yaml b/.frontmatter_check.yaml index 74b0541..8dd683e 100644 --- a/.frontmatter_check.yaml +++ b/.frontmatter_check.yaml @@ -1,7 +1,7 @@ # Pattern-specific rules patterns: - name: "Global Defaults" - pattern: "_posts./*.md" # match ALL `.md` files + pattern: "blog./*.md" # match ALL `.md` files rules: - field_name: date - field_name: description diff --git a/.github/workflows/accessibility-tests.yml b/.github/workflows/accessibility-tests.yml new file mode 100644 index 0000000..7dcce71 --- /dev/null +++ b/.github/workflows/accessibility-tests.yml @@ -0,0 +1,35 @@ +name: Accessibility Tests + +on: + pull_request: + branches: + - gh-pages + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + ref: ${{ github.head_ref }} + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + + - name: Install dependencies + run: | + python3 -m pip install --upgrade pip + pip install -r requirements.txt + pip install axe-core-python pytest playwright axe-playwright-python + + - name: Install Playwright browsers + run: | + playwright install + + - name: Run accessibility tests + run: | + python3 -m pytest tests/ diff --git a/_includes/join_us.html b/_includes/join_us.html index 272a2e4..7227663 100644 --- a/_includes/join_us.html +++ b/_includes/join_us.html @@ -27,6 +27,15 @@

Support Black Python Devs

script.id = "commitchange-script"; script.src = "https://us.commitchange.com/js/donate-button.v2.js"; + script.onload = function () { + const observer = new MutationObserver(function (mutations) { + const iframe = document.querySelector(".commitchange-iframe-embedded"); + if (iframe && !iframe.hasAttribute("title")) { + iframe.setAttribute("title", "Donation form for Black Python Devs"); + observer.disconnect(); // Stop observing once we've set the title + } + }); + observer.observe(document.body, { childList: true, subtree: true }); }; @@ -76,11 +85,3 @@

Corporate Sponsors

- diff --git a/_posts/2025-04-28-baovola-marie-anna-added-to-bpd-council.md b/_posts/2025-04-28-baovola-marie-anna-added-to-bpd-council.md index 6abb58b..336a188 100644 --- a/_posts/2025-04-28-baovola-marie-anna-added-to-bpd-council.md +++ b/_posts/2025-04-28-baovola-marie-anna-added-to-bpd-council.md @@ -2,8 +2,6 @@ title: BAOVOLA Marie Anna Added to BPD Council date: 2025-04-28 author: Jay Miller -layout: post -lang: en description: The BPD Council has recognized the work of BAOVOLA Marie Anna and invited her to join the Council. featured_image: /assets/images/baovola-jay-pg-day-chi-2025.webp ---