Skip to content

Instantly share code, notes, and snippets.

@niklausgerber
Created February 28, 2012 09:42
Show Gist options
  • Save niklausgerber/1931592 to your computer and use it in GitHub Desktop.
Save niklausgerber/1931592 to your computer and use it in GitHub Desktop.
Show articles on home but not on blog page / different folder
<?php foreach($page->children()->visible()->flip() as $article): ?>
<li>
<a href="<?php echo $article->url() ?>"><?php echo html($article->title()) ?> <span><?php echo html($article->published()) ?></span></a>
</li>
<?php endforeach ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment