Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Using layouts in Perch
<?php
if (perch_layout_has('blog-post')) {
perch_blog_post_meta(perch_get('s'));
perch_page_attributes();
}else{
echo '<title>' . perch_pages_title(true) . '</title>';
perch_page_attributes();
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.