Skip to content

Commit

Permalink
♿️ feat(a11y): update heading tags
Browse files Browse the repository at this point in the history
  • Loading branch information
welpo committed Sep 9, 2023
1 parent c79407e commit 15f4991
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 14 deletions.
8 changes: 3 additions & 5 deletions sass/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,10 @@ article {

.section-title {
display: block;
font-size: 2.2em;
margin-bottom: 0em;
margin-left: 0;
margin-right: 0;
font-weight: 550;
margin: 0;
color: var(--text-color-high-contrast);
font-weight: 550;
font-size: 2.2em;
}

.last-updated {
Expand Down
1 change: 1 addition & 0 deletions sass/parts/_home-banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
line-height: 3rem;

#home-banner-header {
margin: 0;
margin-bottom: 1rem;
font-weight: 550;
font-size: 2.8rem;
Expand Down
1 change: 1 addition & 0 deletions sass/parts/_misc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
}

.article-title {
margin: 0;
color: var(--text-color-high-contrast);
display: block;
font-size: 2rem;
Expand Down
1 change: 1 addition & 0 deletions sass/parts/_posts_list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@


.bloglist-title {
margin: 0;
font-size: 1.2em;
font-weight: bold;

Expand Down
4 changes: 2 additions & 2 deletions templates/macros/cards_pages.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
{% endif %}

<div class="card-info">
<h1 class="card-title">
<h2 class="card-title">
{% if page.extra.link_to %}
<a rel="{{ rel_attributes }}" {{ blank_target }} href={{ page.extra.link_to }}>{{page.title}}</a>
{% else %}
<a href={{ page.permalink }}>{{page.title}}</a>
{% endif %}
</h1>
</h2>

<div class="card-description">
{% if page.description %}
Expand Down
4 changes: 2 additions & 2 deletions templates/macros/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@

<main>
<article>
<div class="article-title">
<h1 class="article-title">
{{ page.title }}
</div>
</h1>

<ul class="meta">
{% if page.draft %}
Expand Down
4 changes: 2 additions & 2 deletions templates/macros/list_posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
{% endif %}

<div class="bloglist-content">
<div class="bloglist-title">
<h2 class="bloglist-title">
<a href="{{ post.permalink }}">{{ post.title }}</a>
</div>
</h2>

{% if post.taxonomies.tags %}
<div class="bloglist-tags">
Expand Down
2 changes: 1 addition & 1 deletion templates/macros/page_desc.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<div id="banner-container-home">
<div id="home-banner-text">
<div id="home-banner-header">{{ desc.title }}</div>
<h1 id="home-banner-header">{{ desc.title }}</h1>
<section id="banner-home-subtitle">
{{ page.content | safe }}
</section>
Expand Down
4 changes: 2 additions & 2 deletions templates/macros/page_header.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{% macro page_header(title) %}

<div class="title-container section-title bottom-divider">
<h1 class="title-container section-title bottom-divider">
{{ title }}
</div>
</h1>

{% endmacro page_header %}

0 comments on commit 15f4991

Please sign in to comment.