Update header annotations

This commit is contained in:
Sonja Broda
2019-07-28 16:24:01 +02:00
parent 65938de7d2
commit 0201a21877

View File

@@ -2,7 +2,7 @@
/** /**
* Snippets are a great way to store code snippets for reuse or to keep your templates clean. * Snippets are a great way to store code snippets for reuse or to keep your templates clean.
* This header snippet is reused in all templates. * This header snippet is reused in all templates.
* It fetches information from the `site.txt` content file and contains the menu. * It fetches information from the `site.txt` content file and contains the site navigation.
* More about snippets: https://getkirby.com/docs/guide/templates/snippets * More about snippets: https://getkirby.com/docs/guide/templates/snippets
*/ */
?> ?>
@@ -14,8 +14,11 @@
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<!-- The title tag we show the title of our site and the title of the current page -->
<title><?= $site->title() ?> | <?= $page->title() ?></title> <title><?= $site->title() ?> | <?= $page->title() ?></title>
<!-- Stylesheets can be included using the `css()` helper. Kirby also provides the `js()` helper to include script file.
More Kirby helpers: https://getkirby.com/docs/reference/templates/helpers -->
<?= css(['assets/css/index.css', '@auto']) ?> <?= css(['assets/css/index.css', '@auto']) ?>
</head> </head>
@@ -23,6 +26,7 @@
<div class="page"> <div class="page">
<header class="header"> <header class="header">
<!-- In this link we call `$site->url()` to create a link back to the homepage -->
<a class="logo" href="<?= $site->url() ?>"><?= $site->title() ?></a> <a class="logo" href="<?= $site->url() ?>"><?= $site->title() ?></a>
<nav id="menu" class="menu"> <nav id="menu" class="menu">