diff --git a/classic_fancy/config.ini b/classic_fancy/config.ini new file mode 100644 index 0000000..e3ac0c8 --- /dev/null +++ b/classic_fancy/config.ini @@ -0,0 +1,20 @@ +# This theme is based on the one contained in Planet V2.0. It demonstrates +# that one can mix the use of htmltmpl and xslt templates. + +[Planet] +template_files: + atom.xml.xslt + foafroll.xml.xslt + index.html.tmpl + opml.xml.xslt + rss10.xml.tmpl + rss20.xml.tmpl + +template_directories: + ../common + +bill_of_materials: + planet.css + images/feed-icon-10x10.png + images/logo.png + images/planet.png diff --git a/classic_fancy/index.html.tmpl b/classic_fancy/index.html.tmpl new file mode 100644 index 0000000..3ade246 --- /dev/null +++ b/classic_fancy/index.html.tmpl @@ -0,0 +1,126 @@ + + + +### Fancy Planet HTML template. +### +### When combined with the stylesheet and images in the output/ directory +### of the Planet source, this gives you a much prettier result than the +### default examples template and demonstrates how to use the config file +### to support things like faces +### +### For documentation on the more boring template elements, see +### examples/config.ini and examples/index.html.tmpl in the Planet source. + + +<TMPL_VAR name> + +"> + + +" title="" type="application/+xml"> + + + + +

+ + + + + +### End
+
+### End
+
+
+
+

+ + + + +### End
+
+
+
+ +### Planet provides template variables for *all* configuration options for +### the channel (and defaults), even if it doesn't know about them. We +### exploit this here to add hackergotchi faces to our channels. Planet +### doesn't know about the "face", "facewidth" and "faceheight" configuration +### variables, but makes them available to us anyway. + +

" title="">

+ +" width="" height="" alt=""> + + + + +
lang=""> + + lang="">"> + +
+
lang=""> + +
+ +### Planet also makes available all of the information from the feed +### that it can. Use the 'planet-cache' tool on the cache file for +### a particular feed to find out what additional keys it supports. +### Comment extra fields are 'author' and 'category' which we +### demonstrate below. + +

+">by at under +

+
+
+ + +### End
+
+### End
+
+
+ + + + + + + diff --git a/classic_fancy/index.html.tmplc b/classic_fancy/index.html.tmplc new file mode 100644 index 0000000..9134e8b Binary files /dev/null and b/classic_fancy/index.html.tmplc differ diff --git a/classic_fancy/planet.css b/classic_fancy/planet.css new file mode 100644 index 0000000..05653c0 --- /dev/null +++ b/classic_fancy/planet.css @@ -0,0 +1,150 @@ +body { + border-right: 1px solid black; + margin-right: 200px; + + padding-left: 20px; + padding-right: 20px; +} + +h1 { + margin-top: 0px; + padding-top: 20px; + + font-family: "Bitstream Vera Sans", sans-serif; + font-weight: normal; + letter-spacing: -2px; + text-transform: lowercase; + text-align: right; + + color: grey; +} + +.admin { + text-align: right; +} + +h2 { + font-family: "Bitstream Vera Sans", sans-serif; + font-weight: normal; + color: #200080; + + margin-left: -20px; +} + +h3 { + font-family: "Bitstream Vera Sans", sans-serif; + font-weight: normal; + + background-color: #a0c0ff; + border: 1px solid #5080b0; + + padding: 4px; +} + +h3 a { + text-decoration: none; + color: inherit; +} + +h4 { + font-family: "Bitstream Vera Sans", sans-serif; + font-weight: bold; +} + +h4 a { + text-decoration: none; + color: inherit; +} + +img.face { + float: right; + margin-top: -3em; +} + +.entry { + margin-bottom: 2em; +} + +.entry .date { + font-family: "Bitstream Vera Sans", sans-serif; + color: grey; +} + +.entry .date a { + text-decoration: none; + color: inherit; +} + +.sidebar { + position: absolute; + top: 0px; + right: 0px; + width: 200px; + + margin-left: 0px; + margin-right: 0px; + padding-right: 0px; + + padding-top: 20px; + padding-left: 0px; + + font-family: "Bitstream Vera Sans", sans-serif; + font-size: 85%; +} + +.sidebar h2 { + font-size: 110%; + font-weight: bold; + color: black; + + padding-left: 5px; + margin-left: 0px; +} + +.sidebar ul { + padding-left: 1em; + margin-left: 0px; + + list-style-type: none; +} + +.sidebar ul li:hover { + color: grey; +} + +.sidebar ul li a { + text-decoration: none; +} + +.sidebar ul li a:hover { + text-decoration: underline; +} + +.sidebar ul li a img { + border: 0; +} + +.sidebar p { + border-top: 1px solid grey; + margin-top: 30px; + padding-top: 10px; + + padding-left: 5px; +} + +.sidebar .message { + cursor: help; + border-bottom: 1px dashed red; +} + +.sidebar a.message:hover { + cursor: help; + background-color: #ff0000; + color: #ffffff !important; + text-decoration: none !important; +} + +a:hover { + text-decoration: underline !important; + color: blue !important; +} diff --git a/common/atom.xml.xslt b/common/atom.xml.xslt new file mode 100644 index 0000000..c57a938 --- /dev/null +++ b/common/atom.xml.xslt @@ -0,0 +1,80 @@ + + + + + + + + + + + + + + + + + + + + no + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/common/foafroll.xml.xslt b/common/foafroll.xml.xslt new file mode 100644 index 0000000..44726d9 --- /dev/null +++ b/common/foafroll.xml.xslt @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/common/images/feed-icon-10x10.png b/common/images/feed-icon-10x10.png new file mode 100644 index 0000000..cc869bc Binary files /dev/null and b/common/images/feed-icon-10x10.png differ diff --git a/common/images/foaf.png b/common/images/foaf.png new file mode 100644 index 0000000..0fea5ba Binary files /dev/null and b/common/images/foaf.png differ diff --git a/common/images/logo.png b/common/images/logo.png new file mode 100644 index 0000000..f277bf9 Binary files /dev/null and b/common/images/logo.png differ diff --git a/common/images/opml.png b/common/images/opml.png new file mode 100644 index 0000000..3f18190 Binary files /dev/null and b/common/images/opml.png differ diff --git a/common/images/planet.png b/common/images/planet.png new file mode 100644 index 0000000..9606a0c Binary files /dev/null and b/common/images/planet.png differ diff --git a/common/images/tcosm11.gif b/common/images/tcosm11.gif new file mode 100644 index 0000000..548c998 Binary files /dev/null and b/common/images/tcosm11.gif differ diff --git a/common/images/venus.ico b/common/images/venus.ico new file mode 100644 index 0000000..e813cb0 Binary files /dev/null and b/common/images/venus.ico differ diff --git a/common/images/venus.png b/common/images/venus.png new file mode 100644 index 0000000..685035d Binary files /dev/null and b/common/images/venus.png differ diff --git a/common/opml.xml.xslt b/common/opml.xml.xslt new file mode 100644 index 0000000..dfc172c --- /dev/null +++ b/common/opml.xml.xslt @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + <xsl:value-of select="atom:title"/> + + + + + + + + + + + + + + + + + diff --git a/common/rss10.xml.tmpl b/common/rss10.xml.tmpl new file mode 100644 index 0000000..cdaaa79 --- /dev/null +++ b/common/rss10.xml.tmpl @@ -0,0 +1,37 @@ + + +"> + <TMPL_VAR name ESCAPE="HTML"> + + - + + + + + " /> + + + + + + +"> + <TMPL_VAR channel_name ESCAPE="HTML"><TMPL_IF title>: <TMPL_VAR title_plain ESCAPE="HTML"></TMPL_IF> + + + + + + + + + + + + diff --git a/common/rss10.xml.tmplc b/common/rss10.xml.tmplc new file mode 100644 index 0000000..688e67d Binary files /dev/null and b/common/rss10.xml.tmplc differ diff --git a/common/rss20.xml.tmpl b/common/rss20.xml.tmpl new file mode 100644 index 0000000..724a104 --- /dev/null +++ b/common/rss20.xml.tmpl @@ -0,0 +1,33 @@ + + + + + <TMPL_VAR name> + + en + - + + + + <TMPL_VAR channel_name ESCAPE="HTML"><TMPL_IF title>: <TMPL_VAR title_plain ESCAPE="HTML"></TMPL_IF> + + + + + + + + + () + + + + + + " length="" type=""/> + + + + + + diff --git a/common/rss20.xml.tmplc b/common/rss20.xml.tmplc new file mode 100644 index 0000000..4ec2d28 Binary files /dev/null and b/common/rss20.xml.tmplc differ diff --git a/common/validate.html.xslt b/common/validate.html.xslt new file mode 100644 index 0000000..0cabdcc --- /dev/null +++ b/common/validate.html.xslt @@ -0,0 +1,146 @@ + + + + + + + + + <xsl:value-of select="atom:title"/> + + + + + + + + + + + + + + + + + + + + + + + + +
NameFormatNotes
+ + +
+ + + + + rss_0_90 + rss_0_91 + rss_0_91 + rss_1_0 + rss_0_90 + + rss_0_90 + rss_2_0 + rss_2_0 + + + atom_0_3 + atom_1_0 + atom_1_0 + + + + + + + + + background-color:#FCC + + + + + http://feedvalidator.org/check?url= + + + + + + + + + + + + + + http://www.validome.org/rss-atom/validate? + viewSourceCode=1&version= + + &url= + + + + + + + + + + + + + + + + + message + + + + + + + + + + + + + + + + +
+ + +
+
+
+
+ +
+ +
+
diff --git a/images/mordred.png b/images/mordred.png new file mode 100644 index 0000000..2b9d291 Binary files /dev/null and b/images/mordred.png differ diff --git a/planet.ini b/planet.ini index 487c43f..e27dac7 100644 --- a/planet.ini +++ b/planet.ini @@ -13,15 +13,30 @@ name = Planet OpenStack link = http://planet.openstack.org/ owner_name = Monty Taylor owner_email = mordred@inaugust.com -output_theme = theme +output_theme = classic_fancy cache_directory = cache output_dir = /srv/planet feed_timeout = 20 items_per_page = 60 log_level = DEBUG +# additional files to copy (note the wildcards!) +bill_of_materials: + images/#{face} + +# Options placed in the [DEFAULT] section provide defaults for the feed +# sections. Placing a default here means you only need to override the +# special cases later. +[DEFAULT] +# Hackergotchi default size. +# If we want to put a face alongside a feed, and it's this size, we +# can omit these variables. +facewidth = 65 +faceheight = 85 + # Subscription configuration [http://inaugust.com/feed/rss2_0?tag=ubuntu] name = Monty Taylor - +nick = mordred +face = mordred.png