This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $n=0; foreach($page->children()->visible()->flip() as $article): $n++; ?> | |
<?php if($n==1): ?> | |
<!-- html for your first article --> | |
<?php else: ?> | |
<!-- html for all the other articles --> | |
<?php endif ?> | |
<?php endforeach ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$blogs = $pages->findByUID('blog1', 'blog2'); | |
$articles = $blogs->children()->sortBy('date', 'desc'); | |
// if you want you can add a limit or pagination to that set of articles | |
// afterwards just use a regular foreach loop to go through them all. | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git submodule add https://github.com/getkirby/kirby.git | |
git submodule add https://github.com/getkirby/panel.git | |
git submodule update --init --recursive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name="description" content="<?php echo $page->description()->or($site->description()) ?>"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
title: Contact | |
pages: false | |
fields: | |
title: | |
label: Page | |
type: text | |
width: 1/4 | |
subtitle: | |
label: Title | |
type: text |