Skip to content

Instantly share code, notes, and snippets.

@danott
Created June 14, 2010 13:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danott/437657 to your computer and use it in GitHub Desktop.
Save danott/437657 to your computer and use it in GitHub Desktop.
Export from Tumblr to Moveable Type
<textarea rows="40" cols="100">{block:Posts}
TITLE: {block:Title}{Title}{/block:Title}
DATE: {block:Date}{MonthNumberWithZero}/{DayOfMonthWithZero}/{Year} {12HourWithZero}:{Minutes}:{Seconds} {CapitalAmPm}{/block:Date}
-----
{block:Text}BODY:
{Body}
--------
-----
--------{/block:Text}{block:Photo}
BODY:
{PhotoURL-HighRes}
{block:Caption}-----
EXTENDED BODY:
{Caption}{/block:Caption}
--------
-----
--------{/block:Photo}{block:Quote}
BODY:
{Quote}
{block:Source}-----
EXTENDED BODY:
{Source}{/block:Source}
--------
-----
--------{/block:Quote}{block:Link}
BODY:
{URL}
{block:Description}-----
EXTENDED BODY:
{Description}{/block:Description}
--------
-----
--------{/block:Link}{block:Video}
BODY:
{Video-500}
{block:Caption}-----
EXTENDED BODY:
{Caption}{/block:Caption}
--------
-----
--------{/block:Video}{/block:Posts}</textarea>
{block:Pagination}
<p class="back">&nbsp;{block:NextPage}
<a href="{NextPage}">More</a> &rarr;
{/block:NextPage}</p>
<p class="forward">{block:PreviousPage}
&larr; <a href="{PreviousPage}">Back</a>
{/block:PreviousPage}&nbsp;</p>
<p class="page">
page {CurrentPage} of {TotalPages}
</p>
{/block:Pagination}
@danott
Copy link
Author

danott commented Jun 14, 2010

I wanted to pull some Tumblr data into Expression Engine. Expression Engine supports importing using the Moveable Type format. Thus, this quick hack of a Tumblr theme was birthed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment