Re:Ask HN: If you were going to blog what platform would you...
by jff on Wednesday June 26, 2013 @02:06AM
(#5944440)
Well, to start with I decided on a directory structure. I went with yyyy/mm/dd/n where the given post is the nth of that day.
I then wrote some code to compile an archive.html page when accessed by traversing the file tree defined above.
Because I don't like typing into little textboxes in browsers (the irony here is not lost on me), I decided I'd do post authoring by connecting to my server and running a script which would create a new file in the appropriate directory. Easier to write in vim, in my opinion.
The posts are written in Markdown and converted to html on-the-fly. I also include Disqus comments for each post, and display a comment count for each post on the archive page.
I then wrote some code to compile an archive.html page when accessed by traversing the file tree defined above.
Because I don't like typing into little textboxes in browsers (the irony here is not lost on me), I decided I'd do post authoring by connecting to my server and running a script which would create a new file in the appropriate directory. Easier to write in vim, in my opinion.
The posts are written in Markdown and converted to html on-the-fly. I also include Disqus comments for each post, and display a comment count for each post on the archive page.
I think it all came out to about 500 lines.