4 ms·
Cool story. Care to share anything about the experience?
by Smudge 13y ago
Cool story. Care to share anything about the experience?
- jff 13y agoWell, 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 think it all came out to about 500 lines.