KBD

Keith Devens .com

Friday, December 5, 2008 Flag waving
Mongol General: "What is best in life?" Conan: "To crush your enemies, to see them driven before you, and to... – Conan (Conan the Barbarian)
← No wonder I haven't been getting referrers!Understanding LDAP →

Daily link icon Thursday, March 20, 2003

Weblog archive and URL question

Right now I'm working on my weblog archive. Working under my CMS is awesome, by the way. It's so easy.

I'm trying to pick what archive features I want to have, as well as what URLs they should have. Under my old system, I had a main archive page, which I've just re-created at http://www.keithdevens.com/weblog/archive/. That links to archives for each year, as well as archives for each category. The category archives are just things like http://www.keithdevens.com/weblog/category/3 (and you'll be able to get an RSS feed for the category by sticking an '/rss' on the end).

I have two questions:

  • What should the yearly archive URL be? /weblog/archive/year/200x, or /weblog/archive/200x, or weblog/year/200x?
  • What other archive features should I have? Should I have a list of posts by title somehow? Keep in mind that, even if you don't really care about features on my weblog, if I ever wind up releasing this code these will be features available for other people to use.

Thanks.

← No wonder I haven't been getting referrers!Understanding LDAP →

Comments XML gif

M. Bean wrote:

/weblog/archive/2002/
this is because you can have a nice easy setup, if the above is your yearly archive, you can make your monthly archive along the lines of:
/weblog/archive/2002/1/
/weblog/archive/2002/2/
for January and February, respectively... then the archive for each day naturally builds on that:
/weblog/archive/2002/1/25/
for Jan 25, 2002's archive.

∴ M. Bean | 20-Mar-2003 8:44am est | #1599

Capz (http://capzilla.net/) wrote:

I'd go for
/weblog/archive/2002/1/25/ as well, that's how I would (and when I feel like coding will) do it.

∴ Capz | 20-Mar-2003 9:25am est | http://capzilla.net/ | #1601

Scott Johnson (http://radio.weblogs.com/0103807/) wrote:

Just as an fyi, I get a missing template error on the year archives and the /rss didn't work on the category archives.

Yup -- I wanted Feedster to woop up multiple years of Keith and add it to the archive.

Best
Scott

∴ Scott Johnson | 20-Mar-2003 10:59am est | http://radio.weblogs.com/0103807/ | #1602

Keith (http://www.keithdevens.com/) wrote:

Hmm. Matt, my current daily archives are things like /weblog/2003-03-20. That has symmetry with individual posts /weblog/3612. Arguably I should have the date in the post URL though. Do you think the URLs for my posts should be changed to /weblog/archive/3612? Or /weblog/archive/2003/03/20/3612? What about the category pages? /weblog/archive/category/6? I'll have to think more. Thanks for the suggestion.

Scott, the URLs don't work because I haven't implemented it yet. Smiley I'm asking questions first.

Keith | 20-Mar-2003 2:37pm est | http://www.keithdevens.com/ | #1603

Scott Johnson (http://radio.weblogs.com/0103807/) wrote:

Ah... Well I think the idea is very good. Clean and simple. I like that.
Personally I might pad the /1/ to /01/ but that's coz I link stuff to line up. No big.

∴ Scott Johnson | 20-Mar-2003 3:55pm est | http://radio.weblogs.com/0103807/ | #1605

Sparticus (http://www.iamsparticus.co.uk) wrote:

I think that you shouldn't have links like category/6 but instead category/politics or category/coding. That way it'll google a lot better.
For what it's worth I like the idea of weblog/archive/2002/11/3/index.php for your daily archives because it does build naturally and then for your individual pages weblog/archive/2002/11/3/post_title.php so it'll google well.

∴ Sparticus | 20-Mar-2003 4:46pm est | http://www.iamsparticus.co.uk | #1606

M. Bean wrote:

for categories, I'd say /weblog/category/1/ or /weblog/archive/category/1/ -- either would make sense to me.

as for the posts themselves, I'd put them in the context of days, numbered as posts per day.... so the first post on january 30 2001 would be /weblog/archive/2001/1/30/0/ (yes, I'm c-centric, but you get the idea)... and yes, I also realize this is harder to code for, but it makes more sense to me from a design standpoint.

As for padding with leading 0's, I like that too, it looks prettier that way...

∴ M. Bean | 20-Mar-2003 4:48pm est | #1607

Keith (http://www.keithdevens.com/) wrote:

I'm considering something like /weblog/2003/mar/21. More readable? Should it be /weblog/2003/MAR/21 or /weblog/2003/Mar/21? I think I like initial uppercase better.

So, I may want to do date-based archives like that and leave post URLs alone for now. I think the /archive part of the URL adds nothing information wise and just makes the URL longer. On the other hand, there's a conflict between that and my current URL scheme for posts. /weblog/2000 would stand for both the 2000'th entry and the summary for the year 2000. Plus, particularly in the case of the year, the /archive part of the URL makes it clearer that the number represents the year. Once you stick a month on there /weblog/2000/Nov/, I don't think it can get much clearer. But are the month names too English centric? Smiley

I'm still not sure what I'm going to do, so I'm going to leave it alone for now and work on other stuff for my CMS.

Keith | 21-Mar-2003 9:59am est | http://www.keithdevens.com/ | #1609

Keith (http://www.keithdevens.com/) wrote:

So... for date based archives, I may just switch over to either /weblog/archive/2003/Mar/21 or /weblog/archive/2003/03/21. If anyone prefers one over the other, please make yourself heard Smiley

I'll leave individual posts what they are now. I like the short and simple URLs. I can leave the possibility of doing posts within the day as /weblog/archive/2003/Mar/21/03 (or /weblog/archive/2003/Mar/21/post/5 or something) open for later.

The main question I have is how the heck I should do categories. The thing is, each category is essentially its own weblog. It's unacceptible to just dump all the posts ever in a given category out at once -- right now I just display the n most recent posts (and right now I forget what n is). So I need some way to organize posts within a category as well.

Keith | 21-Mar-2003 10:18am est | http://www.keithdevens.com/ | #1610

Feel free to post a comment below. Please see my comment policy.

Formatting Rules (No HTML):

  • **bold**, *italic*, _underlined_, --strikeout--
  • "text"="url" creates a link, and URLs are auto-highlighted
  • Blockquote: Like e-mail, begin paragraph with > (greater-than sign)
  • Lists: begin paragraph with *,-, or + (unordered), or # (ordered)
  • Code block: ?!code:language=perl|php|sql|javascript|etc.{\n}...{\n}?!/code

:
(will be your IP address if blank)
: (optional)
(Will not be shown on site)

: (optional)
:

December 2008
SunMonTueWedThuFriSat
 123456
78910111213
14151617181920
21222324252627
28293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 4 posts

Recent comments XML

Girls, please don't get breast implants

I have 34 A breast but at 22 years​old they seem to be growing again​which ...

76.64.120.153: Dec 3, 10:00am

Perl 6 1.0 in March?

Doh, my mistake. I'm aware of the​relation between Parrot and Rakudo​but I'...

Keith: Dec 2, 1:03am

Free image hosting sites

Well, TinyPic has this in its​FAQ:

> Images and videos is in​your accoun...

Keith: Dec 1, 1:13am

Join a NameValueCollection into a querystring in C#

Well with a lamba expression, this​is what I came up​with:

?!code:csharp...

Gustaf Lindqvist: Nov 30, 4:38pm

Generated in about 0.269s.

(Used 8 db queries)

mobile phone