forked from stmuk/pl6anet.org
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.tt
43 lines (43 loc) · 1.46 KB
/
index.tt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>[% feed.title %]</title>
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="/atom.xml"/>
<style>
@import url("style.css");
</style>
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<img align="left" hspace="8" text="camelia" src="200px-Camelia.svg.png"/>
<h1>[% feed.title %]</h1>
<p>[% feed.description %]</p>
<address>[% feed.author | html %] [% feed.email | html %] / [% feed.modified | html %]</address>
<br/><br/>
<div>
<script>
(function() {
var cx = '004466830701554036267:yflzditg_ra';
var gcse = document.createElement('script');
gcse.type = 'text/javascript';
gcse.async = true;
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') +
'//cse.google.com/cse.js?cx=' + cx;
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(gcse, s);
})();
</script>
<gcse:search></gcse:search>
</div>
[% FOREACH entry IN feed.entries %]
<h2><a href="[% entry.link | url | html %]">[% entry.title | html %]</h2></a>
[% IF entry.author OR entry.issued %]
<p><h3>Published[% IF entry.author %] by [% entry.author | html; END %]
[% IF entry.issued %] on [% entry.issued | html; END %]</h3></p>
[% entry.content.body %]
[% END %]
[% END %]
<hr />
</body>
</html>