Skip to content
Snippets Groups Projects
Commit 7518e129 authored by Jakob Moser's avatar Jakob Moser
Browse files

Merge branch '6-seo' into 'master'

Resolve "Page display in search engine results could be optimized (SEO)"

See merge request fachschaft/wp-theme!5
parents 479cc4e2 cadae101
No related branches found
Tags v1.3.0
1 merge request!5Resolve "Page display in search engine results could be optimized (SEO)"
......@@ -10,7 +10,7 @@
?>
<footer>
<a href="<?php echo home_url()."/legal/#impressum"; ?>">Impressum</a> | <a href="<?php echo home_url()."/legal/#rechtliches"; ?>">Rechtliches</a> | <a href="<?php echo home_url()."/legal/#datenschutz"; ?>">Datenschutz</a>
<span class="copyright">&copy; Fachschaft Computerlinguistik, Heidelberg</span>
<span class="copyright">&copy; <?php bloginfo('name'); ?>, <?php bloginfo('description'); ?></span>
</footer>
<?php wp_footer(); ?>
</body>
......
......@@ -12,6 +12,7 @@ get_header();
<head>
<title>
<?php
// In certain cases, display a prefix followed by |
if(is_home()) {
echo 'Blog | ';
} elseif(is_search()) {
......@@ -22,7 +23,15 @@ get_header();
// So, to be on the safe side, we escape it here.
echo esc_html(get_the_title($post->ID)).' | ';
}
// Always show the name of the site
bloginfo('name');
// In certain cases, display | followed by a suffix
if(is_front_page()) {
echo ' | ';
bloginfo('description');
}
?>
</title>
......@@ -31,8 +40,7 @@ get_header();
<link rel="alternate" type="application/rss+xml" title="fscoli blog" href="<?php bloginfo('rss2_url'); ?>" />
<meta charset="<?php bloginfo('charset'); ?>" />
<meta name="copyright" content="Fachschaft Computerlinguistik" />
<meta name="description" content="<?php bloginfo('description');?>" />
<meta name="copyright" content="<?php bloginfo('name'); ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<?php wp_head(); ?>
......
......@@ -7,7 +7,7 @@
* Author: personads :: Maximilian Müller-Eberstein (ursprüngliche Version und Design); Jakob Moser (Code-Rewrite)
* Author URI: https://personads.me/
*
* Version: 1.2.2
* Version: 1.3.0
*
* License: GNU General Public License v3.0
* License URI: https://www.gnu.org/licenses/gpl-3.0.html
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment