1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 17:23:55 +01:00

fix permalinks & title outside of loop

This commit is contained in:
Matthias Kretschmann 2016-01-07 16:39:52 +01:00
parent a595c141ba
commit 7ae3925bc5
2 changed files with 4 additions and 1 deletions

View File

@ -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() ) {

View File

@ -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';
}
?>
<!doctype html>