Basic code for generating a previous/next article links using Perch CMS. The php grabs the previous and next post by published date and uses the html templates to generate the markup. If there is no previous or next post their is a fallback in the php to make sure the html is complete.