Skip to content

Instantly share code, notes, and snippets.

@niklausgerber
Created September 27, 2012 10:07
Show Gist options
  • Save niklausgerber/3793260 to your computer and use it in GitHub Desktop.
Save niklausgerber/3793260 to your computer and use it in GitHub Desktop.
Can this be done more cleverly - and it does not work
<section>
<h2 class="nav-element"><a href="<?php echo html($pages->find('blog')->children()->last()->url()) ?>"><?php echo html($pages->find('blog')->children()->last()->title()) ?></a></h2>
<p><?php echo html($pages->find('blog')->children()->last()->excerpt(text(), 300)) ?> <a href="<?php echo html($pages->find('blog')->children()->last()->url()) ?>">Read more</a></p>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment