Skip to content

Instantly share code, notes, and snippets.

@funkatron
Created March 21, 2011 20:50
Show Gist options
  • Select an option

  • Save funkatron/880195 to your computer and use it in GitHub Desktop.

Select an option

Save funkatron/880195 to your computer and use it in GitHub Desktop.
An EE template used to export posts for use in Jekyll
{exp:weblog:entries weblog="default_site" limit="9999" rdf="off"}
---
layout: post
author: {author}
title: "{title}"
url_title: {url_title}
tags: "{Keywords}"
published: true
categories:
{categories}- {category_name}
{/categories}
date: {entry_date format='%Y-%m-%d'}
summary: {summary}
old_entry_id: {entry_id}
---
{body}
{extended}
{if {comment_total} > 0}
{embed="exp/comments" the_entry_id="{entry_id}" the_url_title="{url_title}"}
{/if}
<!-- end of post -->
{/exp:weblog:entries}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment