2016-03-31 08:37:32 +00:00
|
|
|
<?php
|
|
|
|
// -------------------------------------------
|
|
|
|
// kirby snippet FOR jannikbeyerstedt.de
|
|
|
|
|
|
|
|
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
|
|
|
|
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
|
|
|
|
// -------------------------------------------
|
2016-10-15 18:39:13 +00:00
|
|
|
header("Content-Security-Policy: default-src 'self'; style-src 'self' 'nonce-nRfqpuKWNuYyUAFPTr6WVNZk9' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; frame-src https://www.youtube-nocookie.com; script-src 'self' 'unsafe-eval' 'nonce-nRfqpuKWNuYyUAFPTr6WVNZk9' https://jannikb.aquila.uberspace.de/piwik/; img-src 'self' https://jannikb.aquila.uberspace.de/piwik/");
|
2016-04-05 21:56:20 +00:00
|
|
|
|
|
|
|
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();
|
|
|
|
}
|
2016-03-31 08:37:32 +00:00
|
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="de">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
2016-05-19 12:33:13 +00:00
|
|
|
<meta name="format-detection" content="telephone=no">
|
2016-04-05 21:56:20 +00:00
|
|
|
<title><?php echo $title ?> </title>
|
2016-03-31 08:37:32 +00:00
|
|
|
<meta name="description" content="<?php echo $site->description()->html() ?>">
|
|
|
|
<meta name="author" content="<?php echo $site->author()->html() ?>" >
|
|
|
|
<?php if ($page->meta_robots()->html() != "") : ?>
|
|
|
|
<meta name="robots" content="<?php echo $page->meta_robots()->html() ?>">
|
|
|
|
<?php endif; ?>
|
|
|
|
|
2016-04-02 22:24:34 +00:00
|
|
|
<?php echo css('assets/css/foundation.css') ?>
|
|
|
|
|
2016-03-31 08:37:32 +00:00
|
|
|
<?php echo css('assets/css/main.css') ?>
|
2016-04-02 22:24:34 +00:00
|
|
|
|
2016-03-31 08:37:32 +00:00
|
|
|
<?php echo css('@auto') ?>
|
|
|
|
|
|
|
|
<!-- Google web fonts -->
|
2016-04-02 22:24:34 +00:00
|
|
|
<link href='https://fonts.googleapis.com/css?family=Alegreya+Sans:400,100,300,400italic,500,500italic,700' rel='stylesheet' type='text/css'>
|
|
|
|
<link href='https://fonts.googleapis.com/css?family=Crimson+Text:400,700' rel='stylesheet' type='text/css'>
|
2016-10-15 18:33:58 +00:00
|
|
|
|
2016-05-24 21:59:44 +00:00
|
|
|
<?php echo css('assets/fonts/boon_logo.css') ?>
|
2016-10-15 18:33:58 +00:00
|
|
|
|
2016-05-31 11:56:25 +00:00
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="<?php echo url('/assets/favicons/apple-touch-icon-180x180.png')?>">
|
2016-08-08 10:23:25 +00:00
|
|
|
<link rel="mask-icon" href="<?php echo url('/assets/favicons/safari-pinned-tab.svg')?>" color="#5bbad5">
|
2016-05-31 11:56:25 +00:00
|
|
|
<link rel="icon" type="image/png" href="<?php echo url('/assets/favicons/favicon-32x32.png')?>" sizes="32x32">
|
|
|
|
<link rel="icon" type="image/png" href="<?php echo url('/assets/favicons/favicon-194x194.png')?>" sizes="194x194">
|
|
|
|
<link rel="icon" type="image/png" href="<?php echo url('/assets/favicons/favicon-96x96.png')?>" sizes="96x96">
|
|
|
|
<link rel="icon" type="image/png" href="<?php echo url('/assets/favicons/android-chrome-192x192.png')?>" sizes="192x192">
|
|
|
|
<link rel="icon" type="image/png" href="<?php echo url('/assets/favicons/favicon-16x16.png')?>" sizes="16x16">
|
|
|
|
<link rel="manifest" href="<?php echo url('/assets/favicons/manifest.json')?>">
|
2016-08-08 10:23:25 +00:00
|
|
|
<link rel="icon" type="image/x-icon" href="<?php echo url('/assets/favicons/favicon.ico')?>">
|
2016-05-31 11:56:25 +00:00
|
|
|
<meta name="msapplication-TileColor" content="#da532c">
|
|
|
|
<meta name="msapplication-TileImage" content="<?php echo url('/assets/favicons/mstile-144x144.png')?>">
|
|
|
|
<meta name="msapplication-config" content="<?php echo url('/assets/favicons/browserconfig.xml')?>">
|
|
|
|
<meta name="theme-color" content="#ffffff">
|
2016-04-02 22:24:34 +00:00
|
|
|
|
2016-03-31 08:37:32 +00:00
|
|
|
</head>
|
|
|
|
<body>
|