diff --git a/controller/init.php b/controller/init.php index 22da5af..62bb62c 100644 --- a/controller/init.php +++ b/controller/init.php @@ -12,7 +12,7 @@ $description = ''; $image = ''; $title = ''; $url = get_bloginfo('wpurl'); -$permalink = esc_url( get_permalink(get_queried_object()->ID) ); +$permalink = ( is_ssl() ? 'https://' : 'http://' ) . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; $twitter = '@ascribeio'; if ( has_post_thumbnail() ) { diff --git a/header.php b/header.php index 417b1bb..b937a00 100644 --- a/header.php +++ b/header.php @@ -15,6 +15,9 @@ if (!isset($headColour)) { if (is_home()) { $title = "Blog | ascribe"; } +if ( is_category() || is_tag() ) { + $title = single_term_title( '', false ) . '| Blog | ascribe'; +} ?>