Create annotated Starterkit
This commit is contained in:
@@ -1,3 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* Snippets are a great way to store code snippets for reuse or to keep your templates clean.
|
||||
* in loops or simply to keep your templates clean.
|
||||
* This footer snippet is reused in all templates. In fetches information from the `site.txt` content file
|
||||
* and from the `about` page.
|
||||
* More about snippets: https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
<footer class="footer">
|
||||
|
@@ -1,3 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* Snippets are a great way to store code snippets for reuse or to keep your templates clean.
|
||||
* in loops or simply to keep your templates clean.
|
||||
* This gallery snippet is used in the gallery plugin (`/site/plugins/gallery`)
|
||||
* More about snippets: https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
|
||||
<section class="gallery">
|
||||
<?php foreach ($gallery->images() as $image): ?>
|
||||
<figure>
|
||||
|
@@ -1,3 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* 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.
|
||||
* It fetches information from the `site.txt` content file and contains the menu.
|
||||
* More about snippets: https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
@@ -17,7 +26,11 @@
|
||||
<a class="logo" href="<?= $site->url() ?>"><?= $site->title() ?></a>
|
||||
|
||||
<nav id="menu" class="menu">
|
||||
<?php foreach ($site->children()->listed() as $item): ?>
|
||||
<?php
|
||||
// In the menu, we only fetch listed pages, i.e. the pages that have a prepended number in their foldername
|
||||
// We do not want to display links to unlisted `error`, `home`, or `sandbox` pages
|
||||
// More about page status: https://getkirby.com/docs/reference/panel/blueprints/page#statuses
|
||||
foreach ($site->children()->listed() as $item): ?>
|
||||
<?= $item->title()->link() ?>
|
||||
<?php endforeach ?>
|
||||
</nav>
|
||||
|
@@ -1,3 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* Snippets are a great way to store code snippets for reuse or to keep your templates clean.
|
||||
* in loops or simply to keep your templates clean.
|
||||
* This intro snippet is reused in multiple templates. While it does not contain much code,
|
||||
* it helps to keep your code DRY and thus facilitate maintenance when you have to make changes.
|
||||
* More about snippets: https://getkirby.com/docs/guide/templates/snippets
|
||||
*/
|
||||
?>
|
||||
|
||||
<header class="intro">
|
||||
<h1><?= $page->title() ?></h1>
|
||||
</header>
|
||||
|
Reference in New Issue
Block a user