diff --git a/INSTALL b/INSTALL index 2d51853..3aa4699 100644 --- a/INSTALL +++ b/INSTALL @@ -4,8 +4,11 @@ Installing Planet You'll need at least Python 2.2 installed on your system, we recommend Python 2.4 though as there may be bugs with the earlier libraries. -Everything Pythonesque Planet needs should be included in the -distribution. +Everything Pythonesque Planet need to provide basic operation should be +included in the distribution. Usage of XSLT requires either xsltproc +or python-libxslt. The current interface to filters written in +non-templating languages (e.g., python) uses the subprocess module +which was introduced in Python 2.4. i. First you'll need to extract the files into a folder somewhere. diff --git a/examples/opml-top100.ini b/examples/opml-top100.ini index 581d727..be6fec1 100644 --- a/examples/opml-top100.ini +++ b/examples/opml-top100.ini @@ -1,15 +1,14 @@ # Planet configuration file # -# This illustrates some of Planet's features with example. +# This illustrates some of Planet's fancier features with example. # Every planet needs a [Planet] section [Planet] - # name: Your planet's name # link: Link to the main page # owner_name: Your name # owner_email: Your e-mail address -name = Top 100 +name = OPML Top 100 link = http://planet.intertwingly.net/top100/ owner_name = Sam Ruby owner_email = rubys@intertwingly.net @@ -17,16 +16,24 @@ owner_email = rubys@intertwingly.net # cache_directory: Where cached feeds are stored # log_level: One of DEBUG, INFO, WARNING, ERROR or CRITICAL cache_directory = /home/rubys/planet/top100 -log_level = DEBUG +log_level = INFO # The following provide defaults for each template: # output_theme: "theme" of the output # output_dir: Directory to place output files # items_per_page: How many items to put on each page -output_theme = asf +output_theme = mobile output_dir = /home/rubys/public_html/top100 items_per_page = 60 +activity_threshold = 90 + # Reading lists, one per line, indented reading_lists = http://share.opml.org/opml/top100.opml + +filters = excerpt.py + +[excerpt.py] +omit = img p br +width = 500 diff --git a/themes/asf/default.css b/themes/asf/default.css index 001c641..a56f649 100644 --- a/themes/asf/default.css +++ b/themes/asf/default.css @@ -132,6 +132,20 @@ h1 { text-decoration: none !important; } +/* ---------------------------- Footer --------------------------- */ + +#footer ul { + margin: 0 20px 0 -25px; + padding: 0; +} + +#footer li { + margin: 0; + padding: 0; + list-style: none; + display: inline; +} + /* ----------------------------- Body ---------------------------- */ #body { diff --git a/themes/asf/index.html.xslt b/themes/asf/index.html.xslt index 7413a16..5474a9f 100644 --- a/themes/asf/index.html.xslt +++ b/themes/asf/index.html.xslt @@ -53,14 +53,31 @@
Last updated:
-
+
+ + + +
Powered by:
-
Planet
+
+ + Planet + +
Export:
diff --git a/themes/mobile/config.ini b/themes/mobile/config.ini new file mode 100644 index 0000000..f98e0ce --- /dev/null +++ b/themes/mobile/config.ini @@ -0,0 +1,22 @@ +# In addition to the outputs produced by the 'asf' theme, this one adds +# a 'mobile' version. For best results, this needs to be combined with +# the 'excerpt.py' filter. + +[Planet] +template_files: + atom.xml.xslt + foafroll.xml.xslt + index.html.xslt + mobile.html.xslt + opml.xml.xslt + +template_directories: + ../asf + ../common + +bill_of_materials: + default.css + personalize.js + images/feed-icon-10x10.png + images/opml.png + images/foaf.png diff --git a/themes/mobile/mobile.html.xslt b/themes/mobile/mobile.html.xslt new file mode 100644 index 0000000..1b0d52d --- /dev/null +++ b/themes/mobile/mobile.html.xslt @@ -0,0 +1,196 @@ + + + + + + + + + + <xsl:value-of select="atom:title"/> + + + + + + + + + + + +

+ + +
+ + +
+ + +

Subscriptions

+ + + + + + + + + +
+ + + + + + +

+ + , + +

+
+ + +
+ + + + + + + + + +

+ + + + + + + + + + + + + + + + +

+ + + + + + + + +
+ +
+ + + + + + + + + + content + + + + + + +
+ + + + + + +
+
+