summaryrefslogtreecommitdiff
path: root/default-files
diff options
context:
space:
mode:
authorp4bl0 <pablo@rauzy.name>2010-07-25 18:52:35 +0200
committerp4bl0 <pablo@rauzy.name>2010-07-25 18:52:35 +0200
commit81fa7bd8b6a632a77ccf6267bbd06b4ebfa06594 (patch)
tree61673afeb87c3d94d4083cce221a2c1a3eab6a16 /default-files
parentdbae9472bd08b9e5edd5bbdc5dcd8a0781010511 (diff)
now generating rss feed too
Diffstat (limited to 'default-files')
-rw-r--r--default-files/bottom.html3
-rw-r--r--default-files/feed.xml23
-rw-r--r--default-files/footer.html13
-rw-r--r--default-files/fugitive.css23
-rw-r--r--default-files/nav-header.html24
-rw-r--r--default-files/top.html1
6 files changed, 49 insertions, 38 deletions
diff --git a/default-files/bottom.html b/default-files/bottom.html
index b1a6625..cacb66f 100644
--- a/default-files/bottom.html
+++ b/default-files/bottom.html
@@ -1,7 +1,8 @@
<footer>
<p>
<a href="http://www.gnu.org/copyleft/copyleft.html">copyleft</a>
- <?fugitive-install name ?> <?fugitive-install year ?>
+ <a href="<?fugitive blog_url ?>"><?fugitive-install name ?></a>
+ <?fugitive-install year ?>
&mdash;
powered by <a href="http://gitorious.org/fugitive">fugitive</a>
</p>
diff --git a/default-files/feed.xml b/default-files/feed.xml
new file mode 100644
index 0000000..b971b55
--- /dev/null
+++ b/default-files/feed.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<rss version="2.0">
+ <channel>
+
+ <title><?fugitive-install name ?>'s blog rss feed</title>
+ <link><?fugitive blog_url ?></link>
+ <description>5 last published articles</description>
+ <generator>fugitive - http://gitorious.org/fugitive</generator>
+ <lastBuildDate><?fugitive commit_date ?></lastBuildDate>
+
+ <?fugitive foreach:article ?>
+ <item>
+ <title><![CDATA[<?fugitive article_title ?>]]></title>
+ <link><?fugitive blog_url ?><?fugitive article_file ?>.html</link>
+ <description><![CDATA[<?fugitive article_content ?>]]></description>
+ <author><?fugitive article_cauthor ?></author>
+ <guid><?fugitive blog_url ?><?fugitive article_file ?>.html</guid>
+ <pubDate><?fugitive article_cdatetime ?></pubDate>
+ </item>
+ <?fugitive endforeach:article ?>
+
+ </channel>
+</rss>
diff --git a/default-files/footer.html b/default-files/footer.html
deleted file mode 100644
index 6040184..0000000
--- a/default-files/footer.html
+++ /dev/null
@@ -1,13 +0,0 @@
- <footer>
- <p>
- <a href="http://www.gnu.org/copyleft/copyleft.html">copyleft</a>
- <?fugitive-install name ?> <?fugitive-install year ?>
- &mdash;
- powered by <a href="http://gitorious.org/fugitive">fugitive</a>
- </p>
- <p>
- last build was <?fugitive commit_hash ?>
- at <time><?fugitive commit_datetime ?></time>,<br />
- subject was <q><?fugitive commit_subject ?></q>
- </p>
- </footer>
diff --git a/default-files/fugitive.css b/default-files/fugitive.css
index 1c4eaba..cc2f544 100644
--- a/default-files/fugitive.css
+++ b/default-files/fugitive.css
@@ -124,6 +124,29 @@ article > div p {
margin: 1em 0;
text-indent: 2em;
}
+article > div p.important:before {
+ content: "important: ";
+ color: #f00;
+ font-weight: bold;
+ font-variant: small-caps;
+}
+article > div p.warning:before {
+ content: "warning: ";
+ color: #fa0;
+ font-weight: bold;
+ font-variant: small-caps;
+}
+article > div p.info:before {
+ content: "info: ";
+ color: #080;
+ font-weight: bold;
+ font-variant: small-caps;
+}
+article > div p.note:before {
+ content: "note: ";
+ font-weight: bold;
+ font-variant: small-caps;
+}
article > div ul {
margin: 1em 0;
padding: 0 0 0 3em;
diff --git a/default-files/nav-header.html b/default-files/nav-header.html
deleted file mode 100644
index 300592d..0000000
--- a/default-files/nav-header.html
+++ /dev/null
@@ -1,24 +0,0 @@
- <nav>
- <?fugitive ifset:article_file ?>
- <ul class="nav">
- <?fugitive ifset:article_previous_file ?>
- <li>
- <a href="<?fugitive article_previous_file ?>.html">« previous</a>
- </li>
- <?fugitive endifset:article_previous_file ?>
- <?fugitive ifset:article_next_file ?>
- <li>
- <a href="<?fugitive article_next_file ?>.html">next »</a>
- </li>
- <?fugitive endifset:article_next_file ?>
- </ul>
- <?fugitive endifset:article_file ?>
- <ul>
- <li><a href="index.html">home</a></li>
- <li><a href="archives.html">archives</a></li>
- </ul>
- </nav>
- <header>
- <h1><?fugitive-install name ?>'s blog</h1>
- <q>fugitive: a blog engine for hackers.</q>
- </header>
diff --git a/default-files/top.html b/default-files/top.html
index 4e2d8dc..d903e8e 100644
--- a/default-files/top.html
+++ b/default-files/top.html
@@ -6,6 +6,7 @@
<meta http-equiv="Content-type" content="application/xhtml+xml; charset=utf-8" />
<meta name="author" content="<?fugitive-install name ?>" />
<meta name="description" content="<?fugitive-install name ?>'s blog" />
+ <link rel="alternate" type="application/rss+xml" href="<?fugitive blog_url ?>feed.xml" title="5 last articles RSS feed" />
<link rel="stylesheet" href="fugitive.css" type="text/css" media="screen" />
<link rel="stylesheet" href="print.css" type="text/css" media="print" />
<link rel="contents" href="archives.html" />