1
0
Fork 0
web-jbeyerstedt/site/snippets/base/html-head.php

53 lines
1.9 KiB
PHP
Raw Normal View History

<?php
// -------------------------------------------
// kirby snippet FOR jannikbeyerstedt.de
// copyright: Jannik Beyerstedt | https://jannikbeyerstedt.de
// license: http://www.gnu.org/licenses/gpl-3.0.txt GPLv3 License
// -------------------------------------------
?>
<!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; ?>
<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() ?>" >
<?php if ($page->meta_robots()->html() != "") : ?>
<meta name="robots" content="<?php echo $page->meta_robots()->html() ?>">
<?php endif; ?>
<?php echo css('assets/vendors/font-awesome/css/font-awesome.min.css') ?>
<?php echo css('assets/css/foundation.css') ?>
<?php echo css('assets/css/main.css') ?>
<?php echo css('@auto') ?>
<!-- Google web fonts -->
<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'>
<?php if (c::get('plg_masonry.enable')) : $width = c::get('plg_masonry.width'); ?>
<style>
#masonry {margin: 0 auto;}
.masonryitem { width: <?php echo $width ?>px; margin-bottom: 10px;}
.masonryitem.w2 { width: 40%; }
</style>
<?php endif; ?>
<?php if (c::get('plg_masonry.lightbox')=='swipebox') : ?>
<?php echo css('assets/vendors/swipebox/src/css/swipebox.css') ?>
<?php endif; ?>
</head>
<body>