From b2c1cfc4c1865b06f348bb2f5a6152cb01c680a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20Klabbers?= Date: Sun, 22 Jan 2023 14:24:06 +0100 Subject: [PATCH 1/4] feat(seo): shift h1 tag from logo to discussion title Many times have we seen opponents of using h2 as the discussion title. Although my own SEO knowledge is limited, I have seen the importance of structuring pages according to the content you wish to prioritize. If we only take that into consideration there is zero reason for the app-wide identical logo to take precedence over any other heading. This change makes the logo a standard (visually identical) element, and makes the discussion hero title a h1. Reviewers should focus on: - [ ] Do we want to do this (for 1.x)? - [ ] Do we need to make the logo element a different one? --- framework/core/js/src/forum/components/DiscussionHero.js | 2 +- framework/core/less/forum/Hero.less | 4 ++-- framework/core/views/frontend/admin.blade.php | 4 ++-- framework/core/views/frontend/forum.blade.php | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/framework/core/js/src/forum/components/DiscussionHero.js b/framework/core/js/src/forum/components/DiscussionHero.js index 659cf1a718..5e5f2534a6 100644 --- a/framework/core/js/src/forum/components/DiscussionHero.js +++ b/framework/core/js/src/forum/components/DiscussionHero.js @@ -34,7 +34,7 @@ export default class DiscussionHero extends Component { items.add('badges', , 10); } - items.add('title',

{discussion.title()}

); + items.add('title',

{discussion.title()}

); return items; } diff --git a/framework/core/less/forum/Hero.less b/framework/core/less/forum/Hero.less index d335f019df..55980cf251 100644 --- a/framework/core/less/forum/Hero.less +++ b/framework/core/less/forum/Hero.less @@ -4,7 +4,7 @@ text-align: center; color: var(--contrast-color, var(--hero-color)); - h2 { + h1 { margin: 0; font-size: 16px; font-weight: normal; @@ -34,7 +34,7 @@ @media @tablet-up { .Hero { - h2 { + h1 { font-size: 22px; } .container { diff --git a/framework/core/views/frontend/admin.blade.php b/framework/core/views/frontend/admin.blade.php index 351acd8cfa..d4bd210849 100644 --- a/framework/core/views/frontend/admin.blade.php +++ b/framework/core/views/frontend/admin.blade.php @@ -7,7 +7,7 @@