From d033ac9d23389eb946f1ed55005c28873b76d4e0 Mon Sep 17 00:00:00 2001 From: kris70lesgo Date: Mon, 13 Jan 2025 19:20:41 +0530 Subject: [PATCH 01/15] "Enhance accessibility by adding ARIA attributes to local content sections" --- themes/vocabulary_theme/templates/404.html | 10 +- themes/vocabulary_theme/templates/author.html | 12 +- .../vocabulary_theme/templates/authors.html | 4 +- .../templates/blocks/featured-projects.html | 28 ++-- .../templates/blocks/get-involved.html | 15 ++- .../templates/blocks/hero.html | 8 +- .../templates/blocks/recent-posts.html | 14 +- .../templates/blog-categories.html | 6 +- .../templates/blog-category.html | 9 +- .../vocabulary_theme/templates/blog-post.html | 26 ++-- .../templates/blog-series-list.html | 6 +- .../templates/blog-series.html | 4 +- themes/vocabulary_theme/templates/blog.html | 11 +- .../templates/cc-search-guide.html | 14 +- .../templates/community_team_list.html | 12 +- .../templates/issue_finder.html | 22 +-- themes/vocabulary_theme/templates/layout.html | 125 +++++++++--------- .../templates/macros/authors.html | 8 +- .../templates/macros/authors_gravatar.html | 16 +-- .../templates/macros/categories.html | 4 +- .../templates/macros/og_image.html | 3 +- .../templates/macros/pagination.html | 16 ++- .../templates/macros/posts.html | 9 +- .../templates/macros/series.html | 12 +- .../templates/page-with-title.html | 8 +- .../templates/page-with-toc.html | 114 ++++++++-------- .../templates/project-ideas.html | 12 +- .../templates/project_list.html | 99 +++++++------- .../vocabulary_theme/templates/redirect.html | 2 +- .../templates/search_roadmap.html | 6 +- 30 files changed, 337 insertions(+), 298 deletions(-) diff --git a/themes/vocabulary_theme/templates/404.html b/themes/vocabulary_theme/templates/404.html index b83565c85..af01797be 100644 --- a/themes/vocabulary_theme/templates/404.html +++ b/themes/vocabulary_theme/templates/404.html @@ -1,10 +1,10 @@ {% extends "layout.html" %} {% block body %} -
-

404

-

Page Not Found!

-

Sorry. The page you are looking for doesn't exist.

- Return Home +
+

404

+

Page Not Found!

+ + Return Home
{% endblock %} diff --git a/themes/vocabulary_theme/templates/author.html b/themes/vocabulary_theme/templates/author.html index 97e4bab64..e7bf14b5e 100644 --- a/themes/vocabulary_theme/templates/author.html +++ b/themes/vocabulary_theme/templates/author.html @@ -6,26 +6,26 @@ {% block title %}{{ render_author_name(this) }}{% endblock %} {% block body %} -
+
- gravatar + Gravatar image of {{ render_author_name(this) }}
-

{{ render_author_name(this) }}

+

{{ render_author_name(this) }}

{% if this.about %} -
{{ this.about }}
+
{{ this.about }}
{% endif %} - See all authors + {{ this.parent.title }}
-
+
{{ render_author_posts(this.children) }}
diff --git a/themes/vocabulary_theme/templates/authors.html b/themes/vocabulary_theme/templates/authors.html index 40d2360d3..4981cbfcd 100644 --- a/themes/vocabulary_theme/templates/authors.html +++ b/themes/vocabulary_theme/templates/authors.html @@ -5,7 +5,8 @@ {% block title %} Authors {% endblock %} {% block body %} -
+
+

List of Authors

Authors

@@ -18,3 +19,4 @@

Authors

{% endblock %} + diff --git a/themes/vocabulary_theme/templates/blocks/featured-projects.html b/themes/vocabulary_theme/templates/blocks/featured-projects.html index abc317c93..52fbc30f4 100644 --- a/themes/vocabulary_theme/templates/blocks/featured-projects.html +++ b/themes/vocabulary_theme/templates/blocks/featured-projects.html @@ -1,40 +1,46 @@ -
- + Hero image
- + \ No newline at end of file diff --git a/themes/vocabulary_theme/templates/blocks/recent-posts.html b/themes/vocabulary_theme/templates/blocks/recent-posts.html index dc9c0fa54..f001ff724 100644 --- a/themes/vocabulary_theme/templates/blocks/recent-posts.html +++ b/themes/vocabulary_theme/templates/blocks/recent-posts.html @@ -1,20 +1,24 @@ {% from "macros/posts.html" import render_post_summary %} -
+
-
+
{% for post in site.query('/blog/entries') %} {% set post_loop = loop %} {% if post_loop.index <= 3 %} - {{ render_post_summary(post) }} +
+ {{ render_post_summary(post) }} +
{% endif %} {% endfor %}
diff --git a/themes/vocabulary_theme/templates/blog-categories.html b/themes/vocabulary_theme/templates/blog-categories.html index 036d6b142..ab745ba7e 100644 --- a/themes/vocabulary_theme/templates/blog-categories.html +++ b/themes/vocabulary_theme/templates/blog-categories.html @@ -5,12 +5,12 @@ {% block title %}Categories{% endblock %} {% block body %} -
+
-

Categories

+

Categories

{{ render_categories(this) }}
-{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/themes/vocabulary_theme/templates/blog-category.html b/themes/vocabulary_theme/templates/blog-category.html index c0e4ba844..29c1f293a 100644 --- a/themes/vocabulary_theme/templates/blog-category.html +++ b/themes/vocabulary_theme/templates/blog-category.html @@ -5,15 +5,16 @@ {% block title %}{{ this.name }}{% endblock %} {% block body %} -
+
-

All posts categorized "{{ this.name }}"

- See all categories +

All posts categorized "{{ this.name }}"

+ See all categories
-
+
{{ render_posts(this.children) }}
{% endblock %} + diff --git a/themes/vocabulary_theme/templates/blog-post.html b/themes/vocabulary_theme/templates/blog-post.html index 62f90d126..1b39b7ee5 100644 --- a/themes/vocabulary_theme/templates/blog-post.html +++ b/themes/vocabulary_theme/templates/blog-post.html @@ -6,14 +6,16 @@ {% block title %}{{ this.title }}{% endblock %} {% block body %} -
+

CC Open Source Blog

-

{{ this.title }}

+

{{ this.title }}

- {{ render_author_gravatar(this)|trim }} -

+

+ {{ render_author_gravatar(this)|trim }} +
+

{{ render_authors_byline(this)|trim }}

@@ -21,12 +23,12 @@

{{ this.title }}

{% set series = this.parent.parent.children.get('series').children.get(this.series) %}
This blog is part of the series: - {{ series.name }} + {{ series.name }}
{% endif %}
-
+
{{ this.body }}
@@ -37,7 +39,7 @@

Categories

{% for category in this.categories %} {% set current_category = this.parent.parent.children.get('categories').children.get(category) %} {{ check_file('content' + this.parent.parent.path + '/categories/' + category + '/contents.lr') }} - {{ category }} + {{ category }} {% endfor %} {% else %} none @@ -45,24 +47,24 @@

Categories

{% if this.series|length %} -
-
Posts in the {{ series.name }} series
+
+
Posts in the {{ series.name }} series
    {% for post in series.children.order_by('pub_date') %} {% if post.path==this.path %}
  • - {{ post.title }} + {{ post.title }}
  • {% else %}
  • - {{ post.title }} + {{ post.title }}
  • {% endif %} {% endfor %}
{% endif %} -
{{ render_disqus_comments() }}
+
{{ render_disqus_comments() }}
{% endblock %} diff --git a/themes/vocabulary_theme/templates/blog-series-list.html b/themes/vocabulary_theme/templates/blog-series-list.html index 3a323b3b6..f69d68f68 100644 --- a/themes/vocabulary_theme/templates/blog-series-list.html +++ b/themes/vocabulary_theme/templates/blog-series-list.html @@ -5,12 +5,12 @@ {% block title %}All Series{% endblock %} {% block body %} -
+
-

All Series

+

All Series

{{ render_series(this) }}
-{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/themes/vocabulary_theme/templates/blog-series.html b/themes/vocabulary_theme/templates/blog-series.html index 53d7153ed..f7d797018 100644 --- a/themes/vocabulary_theme/templates/blog-series.html +++ b/themes/vocabulary_theme/templates/blog-series.html @@ -9,10 +9,10 @@

All posts in series "{{ this.name }}"

- See all series + {{ this.parent.name }}
-
+
{{ render_posts(this.children) }}
diff --git a/themes/vocabulary_theme/templates/blog.html b/themes/vocabulary_theme/templates/blog.html index c216824ee..a19fcfef8 100644 --- a/themes/vocabulary_theme/templates/blog.html +++ b/themes/vocabulary_theme/templates/blog.html @@ -6,16 +6,19 @@ {% block title %}{{ this.title }}{% endblock %} {% block body %} -
+

{{ this.title }}

-
{{ this.description }}
+
{{ this.description }}
- {{ render_posts(this.pagination.items) }} -
+
+

Blog Posts

+ {{ render_posts(this.pagination.items) }} +
+
{% if this.pagination.pages > 1 %} {{ render_pagination(this.pagination) }} {% endif %} diff --git a/themes/vocabulary_theme/templates/cc-search-guide.html b/themes/vocabulary_theme/templates/cc-search-guide.html index 1e47da590..7a0d7d2a8 100644 --- a/themes/vocabulary_theme/templates/cc-search-guide.html +++ b/themes/vocabulary_theme/templates/cc-search-guide.html @@ -4,7 +4,7 @@ {% block body %}
-
+
{% endblock %} diff --git a/themes/vocabulary_theme/templates/project-ideas.html b/themes/vocabulary_theme/templates/project-ideas.html index 8e21bd06e..ce67b9cd1 100644 --- a/themes/vocabulary_theme/templates/project-ideas.html +++ b/themes/vocabulary_theme/templates/project-ideas.html @@ -63,7 +63,7 @@
{{ idea.title }}
{% endfor %} -
+
@@ -77,8 +77,8 @@
Original Ideas
{% for idea in ideas %} -
-

{{ idea.title }}

+
+

{{ idea.title }}

Difficulty
@@ -104,7 +104,7 @@

Resources

Back to the Project list -
+ {% endfor %}

Original Ideas

From 8247b2ff22a5e8f3d30c930003f9e611292dc838 Mon Sep 17 00:00:00 2001 From: possumbilities <109087089+possumbilities@users.noreply.github.com> Date: Wed, 11 Jun 2025 19:55:54 +0000 Subject: [PATCH 10/15] remove extra line --- themes/vocabulary_theme/templates/404.html | 1 - 1 file changed, 1 deletion(-) diff --git a/themes/vocabulary_theme/templates/404.html b/themes/vocabulary_theme/templates/404.html index e8872af38..46a150eed 100644 --- a/themes/vocabulary_theme/templates/404.html +++ b/themes/vocabulary_theme/templates/404.html @@ -9,5 +9,4 @@

404 Page Not Found

We're sorry, your request could not be found.

Return Home
- {% endblock %} From daf1f9d2fa662d2ccfa9ab58ebbd1d4de36382d6 Mon Sep 17 00:00:00 2001 From: possumbilities <109087089+possumbilities@users.noreply.github.com> Date: Wed, 11 Jun 2025 19:58:43 +0000 Subject: [PATCH 11/15] remove extra empty lines --- themes/vocabulary_theme/templates/author.html | 2 -- themes/vocabulary_theme/templates/authors.html | 3 --- themes/vocabulary_theme/templates/blocks/get-involved.html | 1 - themes/vocabulary_theme/templates/blog-category.html | 1 - themes/vocabulary_theme/templates/blog.html | 1 - themes/vocabulary_theme/templates/project-ideas.html | 1 - 6 files changed, 9 deletions(-) diff --git a/themes/vocabulary_theme/templates/author.html b/themes/vocabulary_theme/templates/author.html index 4f930736e..993f5457e 100644 --- a/themes/vocabulary_theme/templates/author.html +++ b/themes/vocabulary_theme/templates/author.html @@ -8,7 +8,6 @@ {% block title %}{{ render_author_name(this) }}{% endblock %} {% block body %} -

{{ render_author_name(this) }}

@@ -20,7 +19,6 @@

{{ render_author_name(this) }}

{% endif %} See all authors -
diff --git a/themes/vocabulary_theme/templates/authors.html b/themes/vocabulary_theme/templates/authors.html index d1740612c..dc61df35e 100644 --- a/themes/vocabulary_theme/templates/authors.html +++ b/themes/vocabulary_theme/templates/authors.html @@ -7,7 +7,6 @@ {% block title %} Authors {% endblock %} {% block body %} - - {% endblock %} - diff --git a/themes/vocabulary_theme/templates/blocks/get-involved.html b/themes/vocabulary_theme/templates/blocks/get-involved.html index 1bbba49e8..2c851b0d2 100644 --- a/themes/vocabulary_theme/templates/blocks/get-involved.html +++ b/themes/vocabulary_theme/templates/blocks/get-involved.html @@ -1,4 +1,3 @@ -

{{ this.title }}

    diff --git a/themes/vocabulary_theme/templates/blog-category.html b/themes/vocabulary_theme/templates/blog-category.html index 69f00fde4..c8c682908 100644 --- a/themes/vocabulary_theme/templates/blog-category.html +++ b/themes/vocabulary_theme/templates/blog-category.html @@ -7,7 +7,6 @@ {% from "macros/categories.html" import render_categories %} {% block body %} -

    Category: {{ this.name|capitalize }}

    diff --git a/themes/vocabulary_theme/templates/blog.html b/themes/vocabulary_theme/templates/blog.html index 48598b290..c746804af 100644 --- a/themes/vocabulary_theme/templates/blog.html +++ b/themes/vocabulary_theme/templates/blog.html @@ -8,7 +8,6 @@ {% block title %}{{ this.title }}{% endblock %} {% block body %} -

    {{ this.title }}

    {{this.description }} diff --git a/themes/vocabulary_theme/templates/project-ideas.html b/themes/vocabulary_theme/templates/project-ideas.html index 15b3db5f9..3e8d54878 100644 --- a/themes/vocabulary_theme/templates/project-ideas.html +++ b/themes/vocabulary_theme/templates/project-ideas.html @@ -3,7 +3,6 @@ {% block title %}Open Source Work Programs: Project Ideas{% endblock %} {% block body %} -

    Open Source Work Programs: Project Ideas

    From 035f69fdf1fccf66d276bb3a2d7635740515d5b3 Mon Sep 17 00:00:00 2001 From: possumbilities <109087089+possumbilities@users.noreply.github.com> Date: Wed, 11 Jun 2025 19:59:52 +0000 Subject: [PATCH 12/15] swap div for section --- themes/vocabulary_theme/templates/blog-series-list.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/themes/vocabulary_theme/templates/blog-series-list.html b/themes/vocabulary_theme/templates/blog-series-list.html index 4e3e1e855..ca2e3a274 100644 --- a/themes/vocabulary_theme/templates/blog-series-list.html +++ b/themes/vocabulary_theme/templates/blog-series-list.html @@ -5,12 +5,12 @@ {% block title %}All Series{% endblock %} {% block body %} -
    +

    All Series

    {{ render_series(this) }}
    -
    + {% endblock %} From d2a01feac87e60899142be70355b88f5862fbc62 Mon Sep 17 00:00:00 2001 From: possumbilities <109087089+possumbilities@users.noreply.github.com> Date: Wed, 11 Jun 2025 20:02:01 +0000 Subject: [PATCH 13/15] swap div for section --- themes/vocabulary_theme/templates/macros/series.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/themes/vocabulary_theme/templates/macros/series.html b/themes/vocabulary_theme/templates/macros/series.html index af918c5df..573ddebb1 100644 --- a/themes/vocabulary_theme/templates/macros/series.html +++ b/themes/vocabulary_theme/templates/macros/series.html @@ -1,13 +1,13 @@ {% from "macros/posts.html" import render_posts %} {% macro render_series(series) %} -
    -

    List of Series

    +
    +

    List of Series

    {% for serie in site.query(series.path) %} {% endfor %} -
    + {% endmacro %} From 0623c652d747427e9677755fb193d8f091c558b2 Mon Sep 17 00:00:00 2001 From: possumbilities <109087089+possumbilities@users.noreply.github.com> Date: Wed, 11 Jun 2025 20:02:28 +0000 Subject: [PATCH 14/15] remove region from role --- themes/vocabulary_theme/templates/macros/series.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/vocabulary_theme/templates/macros/series.html b/themes/vocabulary_theme/templates/macros/series.html index 573ddebb1..7d68e0575 100644 --- a/themes/vocabulary_theme/templates/macros/series.html +++ b/themes/vocabulary_theme/templates/macros/series.html @@ -1,7 +1,7 @@ {% from "macros/posts.html" import render_posts %} {% macro render_series(series) %} -
    +

    List of Series

    {% for serie in site.query(series.path) %}
    {% endblock %}