Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
d033ac9
"Enhance accessibility by adding ARIA attributes to local content sec…
kris70lesgo Jan 13, 2025
48b6644
"Restored newline and reverted unnecessary changes for cleaner PR."
kris70lesgo Jan 14, 2025
205f107
"Removed the aria attribute and changes where it isn't necessary "
kris70lesgo Jan 15, 2025
3103d32
Merge branch 'main' into main
TimidRobot Jan 16, 2025
2b5b06d
"restored newline at end of file"
kris70lesgo Jan 18, 2025
83dcb28
restore newline at end of file
kris70lesgo Jan 18, 2025
0b18180
Merge branch 'main' of https://github.com/kris70lesgo/creativecommons…
kris70lesgo Jan 18, 2025
e0c63e5
Merge branch 'main' into main
kris70lesgo Jan 18, 2025
1a1ce99
Refactor HTML templates to improve structure and accessibility
kris70lesgo Jan 23, 2025
90dcf8f
Merge branch 'main' into main
TimidRobot Jan 27, 2025
d741e19
"Standardize label casing and remove unnecessary attributes for consi…
kris70lesgo Feb 4, 2025
29f05e1
Merge branch 'main' into main
TimidRobot Feb 17, 2025
b8be473
Merge branch 'main' into main
TimidRobot Apr 30, 2025
1322d9d
clean up aria
possumbilities May 12, 2025
804fd39
Merge branch 'main' into kris70lesgo/main
possumbilities May 12, 2025
5d81df6
final adjustments for aria roles/labels/etc., using semantic markup w…
possumbilities Jun 11, 2025
1739326
Merge branch 'main' into kris70lesgo/main
possumbilities Jun 11, 2025
8247b2f
remove extra line
possumbilities Jun 11, 2025
daf1f9d
remove extra empty lines
possumbilities Jun 11, 2025
035f69f
swap div for section
possumbilities Jun 11, 2025
d2a01fe
swap div for section
possumbilities Jun 11, 2025
0623c65
remove region from role
possumbilities Jun 11, 2025
0883a75
swap div for section
possumbilities Jun 11, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions themes/vocabulary_theme/templates/blog-categories.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
{% block title %}Categories{% endblock %}

{% block body %}
<div class="all-categories">
<section class="all-categories">
<div class="header">
<h1 class="container">Categories</h1>
</div>
<div class="categories-list container">
{{ render_categories(this) }}
</div>
</div>
</section>
{% endblock %}
4 changes: 2 additions & 2 deletions themes/vocabulary_theme/templates/blog-series-list.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
{% block title %}All Series{% endblock %}

{% block body %}
<div class="all-series">
<section class="all-series">
<div class="header">
<h1 class="container">All Series</h1>
</div>
<div class="series-list container">
{{ render_series(this) }}
</div>
</div>
</section>
{% endblock %}
2 changes: 1 addition & 1 deletion themes/vocabulary_theme/templates/cc-search-guide.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h4>Steps</h4>
</a>
</li>
{% set step.number = step.number + 1 %}
{% endif%}
{% endif %}
{% endfor %}
</ul>
</div>
Expand Down
2 changes: 1 addition & 1 deletion themes/vocabulary_theme/templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ <h2>Our Work Relies On You!</h2>
{% for crumb in crumbs %}
<!-- Active link -->
{% if this._slug == crumb %}
<li class="is-active"><a aria-current="page displayed">{{ this.title }}</a></li>
<li class="is-active"><a aria-current="page">{{ this.title }}</a></li>
{% else %}
<!-- Forming the URL using extracted slugs -->
{% set i = loop.index %}
Expand Down
12 changes: 6 additions & 6 deletions themes/vocabulary_theme/templates/macros/authors_gravatar.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{% macro render_author_gravatar(post, skip_gravatar=false) %}
{% if not skip_gravatar %}
{# only display gravatar for first author so layout is broken #}
{# only display gravatar for first author so layout is not broken #}
{% set author = post.author[0] %}
{% set current_author = post.parent.parent.children.get('authors').children.get(author) %}
<header>
<figure class="image blog-image">
{% if post.author|length >= 2 %}
<img class="profile" src="/multiple-authors.jpg" alt="multiple authors image"/>
{% else %}
<img class="profile" src="https://secure.gravatar.com/avatar/{{ current_author.md5_hashed_email }}?size=200&d=mp" alt="author's gravatar" />
{% endif %}
{% if post.author|length >= 2 %}
<img class="profile" src="/multiple-authors.jpg" alt="multiple authors image" />
{% else %}
<img class="profile" src="https://secure.gravatar.com/avatar/{{ current_author.md5_hashed_email }}?size=200&d=mp" alt="author's gravatar" />
{% endif %}
</figure>
</header>
{% endif %}
Expand Down
3 changes: 2 additions & 1 deletion themes/vocabulary_theme/templates/macros/og_image.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@
{% if author and author.md5_hashed_email %}
{% set gravatarURL = 'https://secure.gravatar.com/avatar/' + author.md5_hashed_email + '?size=300&d=mp' %}
{% set queryParams = queryParams + '&images=' + gravatarURL %}
{% set pageTitle = page.title + "<br><sm style='font-size:70px;'>By " + render_author_name(author) + "</sm>" %}
{% set pageTitle = page.title + "<br><sm style='font-size:70px;'>By " + render_author_name(author) + "</sm>" %}
{% endif %}
{% endif %}

{% set url = baseUrl + pageTitle + '.png' + queryParams %}

<meta property="og:image" content="{{ url }}" />
<meta name="description" content="{{ pageTitle }} - CC Open Source" />
{% endmacro %}
12 changes: 9 additions & 3 deletions themes/vocabulary_theme/templates/macros/series.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{% from "macros/posts.html" import render_posts %}

{% macro render_series(series) %}
{% for serie in site.query(series.path) %}
<h4 class="series-link"><a class="link" href="{{ serie|url }}">{{ serie.name }}</a></h4>
{% endfor %}
<section>
<h2 class="visually-hidden">List of Series</h2>
{% for serie in site.query(series.path) %}
<h4 class="series-link">
<a class="link" href="{{ serie|url }}" aria-label="View series: {{ serie.name }}">{{ serie.name }}</a>
</h4>
{% endfor %}
</section>
{% endmacro %}