# gitblogger

5 messages from 2010-05-20 to 2010-05-21. Participants: Andy Parkins, Ping Yin, Jakub Narebski.
Thread: https://gitlist.dev/t/23858

## Andy Parkins, 2010-05-20 17:29

Subject: gitblogger
Message-ID: <ht3reo$b6i$1@dough.gmane.org>
URL: https://gitlist.dev/e/ht3reo%24b6i%241%40dough.gmane.org

```
Hello,

Just a small announcement of a little project I just published.  Normally I 
wouldn't bother troubling you all, but I thought whoever it was wrote the 
key feature (git-notes) might appreciate knowing it was being used...

I've been wanting for a while to keep my blog in git (in fact I did do so, 
except it was a full ikiwiki installation, but ikiwiki is so slow, and meant 
I had to use my own computer to host my blog).  What I wanted was to have a 
post-receive hook that automatically compiled the markdown-syntax source 
files to HTML articles and posted them to my blogger account.  However, I 
wanted to be able to modify, rename, delete, etc, etc the local files while 
keeping the remote end in sync.

I was motivated to write the necessary script when I noticed that git 1.7 
comes with shiny git-notes support.  This is just what I needed -- when you 
post an article to blogger using the GData API, it gives you back a freshly 
assigned post ID.  That post ID is the only (reliable) way you have of 
keeping track of the link between the remote article and the local file that 
generated it.  My script grabs that ID and uses git-notes to store it 
against the object hash of the original article file.

Then, when you change that article in the repository (git diff-tree is a 
godsend by the way), it's a simply matter of using git-notes again to look 
up the postID and send the appropriate GData command to update that article.

Summary: git-notes... excellent, exactly the tool I needed.

If you write a blog and would prefer git + markdown for maintaining it over 
HTML in a web interface, the repository is at

http://gitorious.org/git_blogger



Andy
-- 
Dr Andy Parkins
andyparkins@gmail.com

```

## Ping Yin, 2010-05-21 02:00

Subject: Re: gitblogger
Message-ID: <AANLkTilpaRyrIgHN5eK_jRFJoukOSYlyEMwU1-LdGT0K@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTilpaRyrIgHN5eK_jRFJoukOSYlyEMwU1-LdGT0K%40mail.gmail.com
In-Reply-To: <ht3reo$b6i$1@dough.gmane.org>

```
On Fri, May 21, 2010 at 1:29 AM, Andy Parkins <andyparkins@gmail.com> wrote:
> Hello,

>
> http://gitorious.org/git_blogger
>

You may want to have a look at toto ( http://github.com/cloudhead/toto )
git + github + herokou + markdown + txt store

```

## Andy Parkins, 2010-05-21 08:57

Subject: [ot] Re: gitblogger
Message-ID: <ht5huo$nd1$1@dough.gmane.org>
URL: https://gitlist.dev/e/ht5huo%24nd1%241%40dough.gmane.org
In-Reply-To: <AANLkTilpaRyrIgHN5eK_jRFJoukOSYlyEMwU1-LdGT0K@mail.gmail.com>

```
Ping Yin wrote:

>> http://gitorious.org/git_blogger
>>
> 
> You may want to have a look at toto ( http://github.com/cloudhead/toto )
> git + github + herokou + markdown + txt store

Maybe I've misunderstood, but isn't this just a similar thing to ikiwiki?  I 
realise it's not a full wiki, but this toto still requires self-hosting of 
the blog?

I really wanted to be able to make someone else (Google) do the hosting for 
me, but still be able to use lovely txt + git.

The advantage (to me) of gitblogger was that it was simple: one post-receive 
hook, and only needed installing on the one central server.

(Regardless, my point was only to give some feedback and encouragement (and 
thanks) to the developers who add these features.  To show that their work 
is being used and is appreciated.  gitblogger is just a script I wrote for 
me, and published in case it was useful to someone else)



Andy

-- 
Dr Andy Parkins
andyparkins@gmail.com

```

## Ping Yin, 2010-05-21 10:24

Subject: Re: [ot] Re: gitblogger
Message-ID: <AANLkTinN37ee6_gfsQqSajoYPAbq7GEaFf93L4dNiVYo@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTinN37ee6_gfsQqSajoYPAbq7GEaFf93L4dNiVYo%40mail.gmail.com
In-Reply-To: <ht5huo$nd1$1@dough.gmane.org>

```
On Fri, May 21, 2010 at 4:57 PM, Andy Parkins <andyparkins@gmail.com> wrote:
>
> Ping Yin wrote:
>
> >> http://gitorious.org/git_blogger
> >>
> >
> > You may want to have a look at toto ( http://github.com/cloudhead/toto )
> > git + github + herokou + markdown + txt store
>
> Maybe I've misunderstood, but isn't this just a similar thing to ikiwiki?  I
> realise it's not a full wiki, but this toto still requires self-hosting of
> the blog?

Yes, it requires self-hosting. However, you can host it to heroku for free.

>
> I really wanted to be able to make someone else (Google) do the hosting for
> me, but still be able to use lovely txt + git.
>

I think your solution is great too.

```

## Jakub Narebski, 2010-05-21 15:54

Subject: Re: gitblogger
Message-ID: <m3zkztqmhb.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m3zkztqmhb.fsf%40localhost.localdomain
In-Reply-To: <AANLkTilpaRyrIgHN5eK_jRFJoukOSYlyEMwU1-LdGT0K@mail.gmail.com>

```
Ping Yin <pkufranky@gmail.com> writes:
> On Fri, May 21, 2010 at 1:29 AM, Andy Parkins <andyparkins@gmail.com> wrote:
> >
> > http://gitorious.org/git_blogger
> >
> 
> You may want to have a look at toto ( http://github.com/cloudhead/toto )
> git + github + herokou + markdown + txt store

Could you please add information about those projects to Git Wiki:
http://git.wiki.kernel.org/index.php/InterfacesFrontendsAndTools

Thanks in advance
-- 
Jakub Narebski
Poland
ShadeHawk on #git

```
