git ssb

0+

Grey the earthling / gkn.me.uk



Tree: 867e03bad831281b405a265d9ef54122277cae3f

Files: 867e03bad831281b405a265d9ef54122277cae3f / content / featuredentry.md

2568 bytesRaw

title: > Featured Entry date: 2004-09-22 05:22 status: published description: > I now get to choose what goes on the front page while maintaining my beloved automation

tags: Moo­quack­woof­tweet­meow


<p>
Automation is all well and good, provided it's coupled with control. At this point this entry could go into a discussion of <cite>I, Robot</cite>; it's not going to. </p>
<p>
To paraphrase <a href="http://www.designbyfire.com/000111.html" title="re:Design by Fire 2.0 (or how I learned to stop worrying and love CSS)">something Andrei once said</a>, <q>one of the things that had bugged me about Mooquackwooftweetmeow was the fact that as I wrote new articles, they always appeared as the lead story. I had no good way of adding new content without distracting from what I wanted to be the prominent entry, which was always the last thing I'd written. Maybe this is how weblogs are supposed to work, but I view Mooquackwooftweetmeow more as a publishing platform for myself than a weblog. I needed to break this model.</q> Hence the new <cite>Featured Entry</cite> item on the front page. Actually this addition was inspired by Andrei's change (which he later repealed), but my solution is a little less all-out. </p>
<p>
Originally I'd intended to include the entire Featured Entry on the front page, but I ran into a problem with the Related Links list. It would be too complicated to display the Related list if <em>either</em> the Latest <em>or</em> the Featured entry had related links and if the Featured entry had related links include them and if the Latest entry had related links include them, but if neither had related links show the Perpetual Links list instead. </p>
<p>
So I decided to display just the first paragraph of the Featured Entry on the front page. Then there wouldn't be the need to present the Featured Entry's related links, because there would be no pretense of displaying <em>everything</em> about the entry. A good side-effect of this is that it prevents the Featured Entry from <em>completely</em> obscuring the Latest Entry. </p>
<p>
The Featured Entry is also added to the top of the <a href="/atom">Atom feed</a> if it's not already present as a recent entry. </p>
<p>
The key thing is that the Featured Entry is optional - I can simply empty the <code>&lt;featuredentry/></code> element in The Big, Bad Source File (which otherwise contains the Featured Entry's <code>id</code>) and the Featured Entry will simply disappear from the front page. No maintenance is required - fully automatic control. </p>

Built with git-ssb-web