Skip to content

Commit

Permalink
Delete old feeds
Browse files Browse the repository at this point in the history
Add theme
  • Loading branch information
asyd committed Apr 6, 2013
1 parent a2dc06b commit d942ce9
Show file tree
Hide file tree
Showing 25 changed files with 944 additions and 2 deletions.
1 change: 1 addition & 0 deletions feeds/asyd
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
[http://blog.asyd.net/feed/]
name = Bruno Bonfils
face = asyd.jpg
2 changes: 0 additions & 2 deletions feeds/farzy

This file was deleted.

Binary file added images/asyd.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
126 changes: 126 additions & 0 deletions theme/classic_fancy/index.html.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

### 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.

<head>
<title><TMPL_VAR name></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="<TMPL_VAR generator ESCAPE="HTML">">
<link rel="stylesheet" href="planet.css" type="text/css">
<TMPL_IF feedtype>
<link rel="alternate" href="<TMPL_VAR feed ESCAPE="HTML">" title="<TMPL_VAR channel_title_plain ESCAPE="HTML">" type="application/<TMPL_VAR feedtype>+xml">
</TMPL_IF>
</head>

<body>
<h1><TMPL_VAR name></h1>
<TMPL_VAR admin>

<TMPL_LOOP Items>
<TMPL_IF new_date>
<TMPL_UNLESS __FIRST__>
### End <div class="channelgroup">
</div>
### End <div class="daygroup">
</div>
</TMPL_UNLESS>
<div class="daygroup">
<h2><TMPL_VAR new_date></h2>
</TMPL_IF>

<TMPL_IF new_channel>
<TMPL_UNLESS new_date>
### End <div class="channelgroup">
</div>
</TMPL_UNLESS>
<div class="channelgroup">

### 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.

<h3><a href="<TMPL_VAR channel_link ESCAPE="HTML">" title="<TMPL_VAR channel_title_plain ESCAPE="HTML">"><TMPL_VAR channel_name></a></h3>
<TMPL_IF channel_face>
<img class="face" src="images/<TMPL_VAR channel_face ESCAPE="HTML">" width="<TMPL_VAR channel_facewidth ESCAPE="HTML">" height="<TMPL_VAR channel_faceheight ESCAPE="HTML">" alt="">
</TMPL_IF>
</TMPL_IF>


<div class="entrygroup" id="<TMPL_VAR id>"<TMPL_IF channel_language> lang="<TMPL_VAR channel_language>"</TMPL_IF>>
<TMPL_IF title>
<h4<TMPL_IF title_language> lang="<TMPL_VAR title_language>"</TMPL_IF>><a href="<TMPL_VAR link ESCAPE="HTML">"><TMPL_VAR title></a></h4>
</TMPL_IF>
<div class="entry">
<div class="content"<TMPL_IF content_language> lang="<TMPL_VAR content_language>"</TMPL_IF>>
<TMPL_VAR content>
</div>

### 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.

<p class="date">
<a href="<TMPL_VAR link ESCAPE="HTML">"><TMPL_IF author>by <TMPL_VAR author ESCAPE="HTML"> at </TMPL_IF><TMPL_VAR date><TMPL_IF category> under <TMPL_VAR category></TMPL_IF></a>
</p>
</div>
</div>

<TMPL_IF __LAST__>
### End <div class="channelgroup">
</div>
### End <div class="daygroup">
</div>
</TMPL_IF>
</TMPL_LOOP>


<div class="sidebar">
<img src="images/logo.png" width="136" height="136" alt="">

<h2>Subscriptions</h2>
<ul>
<TMPL_LOOP Channels>
<li>
<a href="<TMPL_VAR url ESCAPE="HTML">" title="subscribe"><img src="images/feed-icon-10x10.png" alt="(feed)"></a> <a <TMPL_IF link>href="<TMPL_VAR link ESCAPE="HTML">" </TMPL_IF><TMPL_IF message>class="message" title="<TMPL_VAR message ESCAPE="HTML">"</TMPL_IF><TMPL_UNLESS message>title="<TMPL_VAR title_plain ESCAPE="HTML">"</TMPL_UNLESS>><TMPL_VAR name></a>
</li>
</TMPL_LOOP>
</ul>

<p>
<strong>Last updated:</strong><br>
<TMPL_VAR date><br>
<em>All times are UTC.</em><br>
<br>
Powered by:<br>
<a href="http://www.planetplanet.org/"><img src="images/planet.png" width="80" height="15" alt="Planet" border="0"></a>
</p>

<p>
<h2>Planetarium:</h2>
<ul>
<li><a href="http://www.planetapache.org/">Planet Apache</a></li>
<li><a href="http://planet.freedesktop.org/">Planet freedesktop.org</a></li>
<li><a href="http://planet.gnome.org/">Planet GNOME</a></li>
<li><a href="http://planet.debian.net/">Planet Debian</a></li>
<li><a href="http://planet.fedoraproject.org/">Planet Fedora</a></li>
<li><a href="http://planets.sun.com/">Planet Sun</a></li>
<li><a href="http://www.planetplanet.org/">more...</a></li>
</ul>
</p>
</div>
</body>

</html>
Binary file added theme/classic_fancy/index.html.tmplc
Binary file not shown.
150 changes: 150 additions & 0 deletions theme/classic_fancy/planet.css
Original file line number Diff line number Diff line change
@@ -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;
}
41 changes: 41 additions & 0 deletions theme/common/admin.html.tmpl
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><TMPL_VAR name> administration</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="generator" content="<TMPL_VAR generator ESCAPE="HTML">">
</head>

<body>
<h2>Maintenance tasks</h2>
<form action="admin_cb.py" method="GET">
<input type="hidden" name="command" value="refresh" />
<input type="submit" value="Refresh planet" />
</form><br />
<form action="admin_cb.py" method="GET">
<input type="hidden" name="command" value="run" />
<input type="submit" value="Run planet" />
</form><br />
<form action="admin_cb.py" method="GET">
<input type="hidden" name="command" value="expunge" />
<input type="submit" value="Expunge planet" />
</form>

<h2>Blacklist</h2>
<div>
<form action="admin_cb.py" method="GET">
<input type="hidden" name="command" value="blacklist" />
<TMPL_LOOP Items>
<input type="checkbox" value="<TMPL_VAR id ESCAPE="HTML">" name="bl<TMPL_VAR __PASS__>">
<a target="_blank" href="<TMPL_VAR channel_link ESCAPE="HTML">">
<TMPL_VAR channel_name>
</a>: <a target="_blank" href="<TMPL_VAR link ESCAPE="HTML">"><TMPL_VAR title></a></input>
<br />
</TMPL_LOOP>
<br />
<input type="submit" value="Blacklist" />
</form>
</div>
</body>

</html>
Loading

0 comments on commit d942ce9

Please sign in to comment.