[TxMt] Blogging bundle - Post to Blog

Lloyd Williams wlw3 at mac.com
Thu Dec 14 13:51:20 UTC 2006


How do I add the two lines to the template. I search harddrive for  
untitled.blog.markdown and no file was found. The following is what  
is in the Bundle editor:

if [[ ! -f "$TM_NEW_FILE" ]]; then
	TM_BLOG_TITLE=${TM_NEW_FILE_BASENAME%%.*} \
	TM_BLOG_HEADER=${TM_BLOG_ENDPOINT:+Blog: $TM_BLOG_ENDPOINT$'\n'} \
	TM_YEAR=`date +%Y` \
	TM_DATE=`date +%Y-%m-%d` \
	TM_ISO_DATE=`date +"%Y-%m-%d %H:%M:%S"` \
	TM_USERNAME=`niutil -readprop / /users/\$USER realname` \
	perl -pe 's/\$\{([^}]*)\}/$ENV{$1}/g' < untitled.blog.markdown >  
"$TM_NEW_FILE"
fi

Thanks, Lloyd



On Dec 14, 2006, at 4:43 , Brett Terpstra wrote:

You can add this line to your untitled.blog.mardown file in the  
template to save yourself some time...  I used to also add Status:  
Draft that way until I figured out how to use Ultimate Tag Warrior  
with Autotag through TextMate.

Brett

On Dec 14, 2006, at 2:37 AM, Kevin Ballard wrote:

> I've gotten in the habit of always adding the Format: header, which  
> tells the Blogging bundle explicitly what format it should tell the  
> server the post is in. I don't know why, but it seems like the Post  
> to Markdown template no longer actually posts as markdown without it.
>
> Basically, just add the line
>
> Format: markdown
>
> to the header of your post. If your blog supports it, you can also  
> use things like
>
> Format: markdown smartypants
>
> and other variations.
>
> On Dec 13, 2006, at 8:24 PM, Lloyd Williams wrote:
>
>> Using the Post Blog Markdown template
>>
>> Post to blog leaves the > tags in front of block quotes and # in  
>> from of headers
>>
>> I am posting while still in Markdown mode
>>
>> If I convert to HTML everything disappears except for the title.
>>
>> To work around: I have been creating the post in Markdown  
>> converting to HTML and then manually cutting and pasting to a new  
>> doc in post blog markdown format.
>>
>> I must be doing something wrong this is not efficient. I seemed to  
>> work fine day before yesterday.
>>
>> Posting to Wordpress blog on my site
>>
>>
>> Should I be using Markdown or MultiMarkdown as language?
>>
>> Do I have to post to blog in HTML or shouldn't markdown work?
>
> -- 
> Kevin Ballard
> http://kevin.sb.org
> kevin at sb.org
> http://www.tildesoft.com
>
>
>
> ______________________________________________________________________
> For new threads USE THIS: textmate at lists.macromates.com
> (threading gets destroyed and the universe will collapse if you don't)
> http://lists.macromates.com/mailman/listinfo/textmate

Brett Terpstra : Art Director
Circle Six Design, Inc.
111 Riverfront Dr, Suite 204
..................................................
p: 507.459.4398
     877.858.4332
f: 1.866.540.3063
e: brett at circlesixdesign.com
http://www.circlesixdesign.com
..................................................



______________________________________________________________________
For new threads USE THIS: textmate at lists.macromates.com
(threading gets destroyed and the universe will collapse if you don't)
http://lists.macromates.com/mailman/listinfo/textmate

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20061214/bfa7cfe9/attachment.html>


More information about the textmate mailing list