[FIX] fix blueprint titles + new head title format
This commit is contained in:
parent
c79ea83e0d
commit
35fed453f1
|
@ -1,6 +1,8 @@
|
|||
title: Page
|
||||
title: default Page
|
||||
pages: true
|
||||
|
||||
files: true
|
||||
|
||||
fields:
|
||||
title:
|
||||
label: Title
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
title: Page
|
||||
title: Home
|
||||
pages: true
|
||||
|
||||
files: true
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
title: Page
|
||||
title: redirect
|
||||
pages: true
|
||||
|
||||
files: false
|
||||
|
|
|
@ -5,17 +5,21 @@
|
|||
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
||||
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
||||
// -------------------------------------------
|
||||
|
||||
if( $page->isHomePage() ) {
|
||||
$title = $site->title()->html();
|
||||
}else if ($page->depth() == 2) {
|
||||
$title = $page->parent()->title()->html().': '.$page->title()->html().' | '.$site->title()->html();
|
||||
}else {
|
||||
$title = $page->title()->html().' | '.$site->title()->html();
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||
<?php if( $page->isHomePage() ) : ?>
|
||||
<title><?php echo $site->title()->html() ?> </title>
|
||||
<?php else : ?>
|
||||
<title><?php echo $site->title()->html() ?> | <?php echo $page->title()->html() ?></title>
|
||||
<?php endif; ?>
|
||||
<title><?php echo $title ?> </title>
|
||||
<meta name="description" content="<?php echo $site->description()->html() ?>">
|
||||
<meta name="keywords" content="<?php echo $site->keywords()->html() ?>">
|
||||
<meta name="author" content="<?php echo $site->author()->html() ?>" >
|
||||
|
|
Loading…
Reference in a new issue