Skip to content

Instantly share code, notes, and snippets.

@unruthless
unruthless / detail
Created May 22, 2010 15:54 — forked from anonymous/detail
EE template: blog/detail
{!-- Segment_2 isn't blank, so show a blog post's details --}
{if segment_2 != ""}
{exp:channel:entries channel="blog" url_title="{segment_2}"}
{!-- If no results,
then segment_2 isn't a URL title for any existing blog post (typo? broken link?),
so redirect to the landing page --}
{if no_results}
@unruthless
unruthless / index
Created May 22, 2010 15:51 — forked from anonymous/index
EE template: blog/index
{exp:channel:entries channel="blog" limit="10"}
<div class="post">
<h2 class="postTitle"><a href="{url_title_path='blog/detail'}">{title}</a></h2>
<p>Posted {entry_date format='%m/%d'} by {screen_name} </p>
{summary}