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:
parent
a595c141ba
commit
7ae3925bc5
@ -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() ) {
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user