Browse Source

Seo (#297)

* SEO changes to Sitename and Page Title

* Update to CSS from SEO changes
Tom Hutchison 8 years ago
parent
commit
d5e8db20c1
2 changed files with 9 additions and 4 deletions
  1. 3 3
      Foreground.skin.php
  2. 6 1
      assets/stylesheets/foreground.css

+ 3 - 3
Foreground.skin.php

@@ -104,14 +104,14 @@ class foregroundTemplate extends BaseTemplate {
 		<nav class="top-bar" data-topbar role="navigation" data-options="back_text: <?php echo wfMessage( 'foreground-menunavback' )->text(); ?>">
 			<ul class="title-area">
 				<li class="name">
-					<h1 class="title-name">
+					<span class="title-name">
 					<a href="<?php echo $this->data['nav_urls']['mainpage']['href']; ?>">
 					<?php if ($wgForegroundFeatures['navbarIcon'] != '0') { ?>
 						<img alt="<?php echo $this->text('sitename'); ?>" class="top-bar-logo" src="<?php echo $this->text('logopath') ?>">
 					<?php } ?>					
 					<div class="title-name" style="display: inline-block;"><?php echo $wgForegroundFeatures['wikiName']; ?></div>
 					</a>
-					</h1>
+					</span>
 				</li>
 				<li class="toggle-topbar menu-icon">
 					<a href="#"><span><?php echo wfMessage( 'foreground-menutitle' )->text(); ?></span></a>
@@ -208,7 +208,7 @@ class foregroundTemplate extends BaseTemplate {
 						$displaytitle = str_replace($pagetitle, $newtitle, $displaytitle);
 					?><h4 class="namespace label"><?php print $namespace; ?></h4><?php } ?>
 					<div id="content">
-					<h2  id="firstHeading" class="title"><?php print $displaytitle; ?></h2>
+					<h1  id="firstHeading" class="title"><?php print $displaytitle; ?></h1>
 					<?php if ( $this->data['isarticle'] ) { ?><h3 id="tagline"><?php $this->msg( 'tagline' ) ?></h3><?php } ?>
 					<h5 id="siteSub" class="subtitle"><?php $this->html('subtitle') ?></h5>
 					<div id="contentSub" class="clear_both"></div>

+ 6 - 1
assets/stylesheets/foreground.css

@@ -1005,10 +1005,15 @@ h2 span {
   display: inline-block;
 }
 
-h2.title {
+span.title {
   margin-bottom: 0.1em;
 }
 
+.title-name {
+  font-size: 1.3rem;
+  color: inherit;
+}
+
 h3#tagline {
   font-style: italic;
   font-size: small;