Skip to Content
Essential Blogging
book

Essential Blogging

by Cory Doctorow, Rael Dornfest, Scott Johnson, Shelley Powers, Benjamin Trott, Mena G. Trott
August 2002
Beginner
260 pages
6h 56m
English
O'Reilly Media, Inc.
Content preview from Essential Blogging

Customizing and Styling

Blosxom’s default style is more than a little drab, and purposefully so in the hope it will influence you to add your own look and feel. This section shows you how to do that.

First, let’s do away with that rather flat header and silly footer. In your text or HTML editor, create a new file containing any HTML you wish to add to the top of the document, before the actual weblog entries themselves. This might be a masthead, your site’s standard toolbar, or simply a nicer looking title. Save the file to the $datadir directory as head.html. Example 9-1 shows a sample custom header.

Example 9-1. A custom header

<html>
<head>
<title>My First Blosxom</title>
<link rel=stylesheet type="text/css" href="/blogbook.css">
</head>
<body bgcolor="#ffffff" text="#333333" link="#000000" 
alink="#000000" vlink="#000000">
<table border="0" width="100%" cellpadding="0" cellspacing="0">
 <tr>
  <td colspan="3">
   <span class="title">My First Blosxom</span>
  </td>
 </tr>
 <tr>
  <td colspan="9" bgcolor="#000000" height="1" ></td>
 </tr>
 
 <tr valign="top">
  <td bgcolor="#dddddd" width="15"></td>
  <td bgcolor="#dddddd" width="100%">
   <br />

Do the same for the HTML to be displayed after the weblog entries. Save the file as foot.html. Example 9-2 shows HTML for a custom footer.

Example 9-2. A custom footer

<br /> </td> <td bgcolor="#dddddd" width="15"></td> </tr> <tr> <td colspan="9" bgcolor="#000000" height="1"></td> </tr> <tr> <td colspan="3" align="right"> Powered by <a href="http://www.raelity.org/lang/perl/blosxom/">Blosxom</a> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Create Your Own Blog: 6 Easy Projects to Start Blogging Like a Pro, Second Edition

Create Your Own Blog: 6 Easy Projects to Start Blogging Like a Pro, Second Edition

Tris Hussey
The Elements of Blogging

The Elements of Blogging

Mark Leccese, Jerry Lanson

Publisher Resources

ISBN: 0596003889Catalog PageErrata