root/branches/move-to-wiki-toolkit/templates/home_node.tt

Revision 756, 1.2 kB (checked in by earle, 3 years ago)

Use summary metadata field to populate 'description' HTML metadata element. Also remove unused template logic for 'keywords' metadata for now. Closes #97.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2[% USE CGI %]
3<html>
4<head>
5  <title>[% node_name %] - [% site_name %]</title>
6  [% IF contact_email %]
7    <link rev=made href="mailto:[% contact_email %]">
8  [% END %]
9  [% IF summary %]
10    <meta name="description" content="[% summary %]">
11  [% END %]
12  [% IF stylesheet %]
13    <link rel="stylesheet" href="[% stylesheet %]" type="text/css">
14  [% END %]
15</head>
16<body>
17
18[% INCLUDE banner.tt %]
19
20<div id="content">
21
22[% IF navbar_on_home_page %]
23  [% INCLUDE navbar.tt %]
24[% END %]
25
26<div id="maincontent">
27<div id="recent">
28
29<h3>Ten most <a href="[% cgi_url %]?action=rc">recent changes</a>
30    (<a href="[% full_cgi_url %]?action=rc;format=rss">RSS</a>):</h3>
31
32<dl>
33  [% FOREACH node = recent_changes %]
34  <dt><a href="[% node.url %]">[% node.name %]</a>
35  [% IF node.version == "1" %]
36    [new]
37  [% END %]
38  </dt>
39  [% IF node.comment or node.username %]
40    <dd>
41      [% node.comment %]
42      [% IF node.username %]
43        <b><small>([% node.username %])</small></b>
44      [% END %]
45    </dd>
46  [% END %]
47[% END %]
48</dl>
49
50<p><b><a href="[% cgi_url %]?action=edit;id=[% node_param %]">Edit this page</a></b></p>
51
52</div>
53[% content %]
54
55</div>
56[% INCLUDE footer.tt %]
Note: See TracBrowser for help on using the browser.