Hutchy68 / pivot

A MediaWiki mobile skin which "Pivots" seamlessly to any size display.
https://pivot.wikiproject.net
BSD 2-Clause "Simplified" License
37 stars 18 forks source link

Always adds the server name to the h1 tag #76

Closed kghbln closed 5 years ago

kghbln commented 5 years ago

Setup

Issue

Originally reported on mediawiki.org:

The H1 tag is a critical factor is SEO. This skin puts the Wiki name - not the page title - as the H1 tag on every page on the wiki. Please fix this error as this can have severe impact on SEO.

Example

Source code of the Grid page on the demo wiki.

<body class="mediawiki ltr sitedir-ltr ns-0 ns-subject page-Grid rootpage-Grid skin-pivot action-view">
<!-- START PIVOTTEMPLATE -->
        <div class="off-canvas-wrap docs-wrap" data-offcanvas="">
            <div class="inner-wrap">
                                <nav class="tab-bar hide-for-print">
                    <section id="left-nav-aside" class="left-small show-for-small">
                        <a class="left-off-canvas-toggle"><span id="menu-user"><i class="fa fa-navicon fa-lg"></i></span></a>
                    </section>

                    <section id="middle-nav" class="middle tab-bar-section">
                        <h1 class="title"><a href="/wiki/Main_Page">
                    <span class="show-for-medium-up">MediaWiki Pivot Skin</span>
                        <span class="show-for-small-only">
Hutchy68 commented 5 years ago

Will fix as a I role in an update for Pivot using MW 1.32. Thanks @kghbln for reporting.

Hutchy68 commented 5 years ago

Fixed in Release v2.1.0