From d033ac9d23389eb946f1ed55005c28873b76d4e0 Mon Sep 17 00:00:00 2001 From: kris70lesgo Date: Mon, 13 Jan 2025 19:20:41 +0530 Subject: [PATCH 1/7] "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 %}
-
+