Skip to content

Instantly share code, notes, and snippets.

@jackmcdade
Last active December 12, 2015 01:48
Show Gist options
  • Save jackmcdade/4693584 to your computer and use it in GitHub Desktop.
Save jackmcdade/4693584 to your computer and use it in GitHub Desktop.
<h6 class="center">The Latest from <a href="/blog">My Journal</a></h6>
{{ entries:listing folder="blog" limit="5" }}
<div class="block entry">
<header>
<h2 class="entry-title"><a href="{{ url }}">{{ title }}</a></h2>
<p class="entry-date"> {{ datestamp format="F jS, Y" }}</p>
</header>
{{ content|widont }}
{{ if categories }}
<p class="entry-meta"> Filed under {{ categories_url_list }}.</p>
{{ endif }}
</div>
{{ /entries:listing }}
<h6 class="center">Next on <a href="/calendar">the Calendar</a></h6>
{{ entries:listing from="calendar" show_future="yes" sort_dir="asc" limit="5" }}
{{ if no_results }}
<div class="event block">
<h3>No events on the horizon.</h3>
</div>
{{ else }}
<div class="event block push-down">
<div class="event-date">
<span class="month"> {{ date format="M" }}</span>
<span class="day"> {{ date format="j" }}</span>
</div>
<div class="event-details">
<h3 class="event-title">{{ title }}</h3>
{{ content|widont }}
</div>
</div>
{{ endif }}
{{ /entries:listing }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment