[Home]BzeroBlogrollEditing

CommunityServerWiki | RecentChanges | Preferences

Difference (from prior major revision) (no other diffs)

Changed: 33c33,37
See http://www.pycs.net/users/0000062/ for what this looks like when rendered.
See http://www.pycs.net/users/0000062/ for what this looks like when rendered.

BTW, if you want to put apostrophes in names, use \'. For example:

   ( 'link with \'apostrophes\' in it', 'http://apostrophe.com' )


The blogroll for a BzeRo blog is stored in the ~/.bzero/blogname/blogroll.py file. This file is a Python script that defines one variable, _blogroll.

_blogroll is a list of 2-element tuples, each containing a title and a list of name/url pairs.

A minimal blogroll will look like this:

_blogroll = [
 (
  'title', [
   ( 'link 1', 'http://link1.com' ),
   ( 'link 2', 'http://link2.com' ),
  ]
 ),
]

A blogroll with two blocks looks like this:

_blogroll = [
 (
  'title 1', [
   ( 'link 1', 'http://link1.com' ),
   ( 'link 2', 'http://link2.com' ),
  ]
 ),
 (
  'title 2', [
   ( 'link 3', 'http://link3.com' ),
   ( 'link 4', 'http://link4.com' ),
  ]
 ),
]

See http://www.pycs.net/users/0000062/ for what this looks like when rendered.

BTW, if you want to put apostrophes in names, use \'. For example:

   ( 'link with \'apostrophes\' in it', 'http://apostrophe.com' )

CommunityServerWiki | RecentChanges | Preferences
This page is read-only | View other revisions
Last edited January 7, 2003 11:41 am by PhillipPearson (diff)
Search: