summary refs log tree commit diff stats
path: root/tools/website.tmpl
diff options
context:
space:
mode:
authorGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-05-20 21:01:34 +0200
committerGrzegorz Adam Hankiewicz <gradha@imap.cc>2013-05-23 00:17:27 +0200
commit515a5a444407382ad0ca7efad8669c5b6d20f782 (patch)
treea8bab295fb16a2576c27f046b28e7e6cd028c490 /tools/website.tmpl
parent834efe018a18ff79a50727aada7c2fbd2840295b (diff)
downloadNim-515a5a444407382ad0ca7efad8669c5b6d20f782.tar.gz
Implements basic rss generation for website news.
Diffstat (limited to 'tools/website.tmpl')
-rw-r--r--tools/website.tmpl5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/website.tmpl b/tools/website.tmpl
index 0ec659267..091079c1c 100644
--- a/tools/website.tmpl
+++ b/tools/website.tmpl
@@ -1,5 +1,5 @@
 #! stdtmpl | standard
-#proc generateHTMLPage(c: var TConfigData, currentTab, content: string): string = 
+#proc generateHTMLPage(c: var TConfigData, currentTab, content, rss: string): string = 
 #  result = ""
 <!doctype html>
 <html>
@@ -8,6 +8,9 @@
   <title>$c.projectTitle</title>
   <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
   <link rel="stylesheet" type="text/css" href="assets/style.css" />
+  #if len(rss) > 0:
+  <link href="$rss" title="Recent changes" type="application/atom+xml" rel="alternate">
+  #end fi
 </head>
 
 <body>