source: trunk/templates/header.tt @ 819

Last change on this file since 819 was 819, checked in by nick, 15 years ago

Include atom rc link, and optionally atom+rss links for the current page (if requested)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3<html lang="[% language %]">
4<head>
5  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6  [% IF page_title %]
7    <title>[% page_title %]</title>
8  [% ELSE %]
9    <title>[% node_name %] - [% site_name %]</title>
10  [% END %]
11  [% IF contact_email %]
12    <link rev="made" href="mailto:[% contact_email %]" />
13  [% END %]
14  [% IF summary %]
15    <meta name="description" content="[% summary %]" />
16  [% END %]
17  [% IF stylesheet %]
18    <link rel="stylesheet" href="[% stylesheet %]" type="text/css" title="Stylesheet for [% site_name %]" />
19  [% END %]
20  [% IF feed_base %]
21    <link rel="alternate" type="application/rss+xml" title="Page as RSS" href="[% feed_base %];format=rss" />
22    <link rel="alternate" type="application/atom+xml" title="Page as Atom" href="[% feed_base %];format=atom" />
23  [% END %]
24  [% IF latitude AND longitude %]
25    <meta name="ICBM" content="[% latitude %], [% longitude %]" />
26    <meta name="DC.title" content="[% site_name %]" />
27  [% END %]
28    <link rel="alternate" type="application/rss+xml" title="[% site_name %] - Recent Changes (RSS 1.0)" href="[% full_cgi_url %]?action=rc;format=rss" />
29    <link rel="alternate" type="application/atom+xml" title="[% site_name %] - Recent Changes (Atom)" href="[% full_cgi_url %]?action=rc;format=atom" />
30  [% IF deter_robots %]
31    <meta name="robots" content="noindex,nofollow" />
32  [% END %]
33  [% IF enable_gmaps AND display_google_maps AND gmaps_api_key %]
34    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=[% gmaps_api_key %]" type="text/javascript"></script>
35  [% END %]
36</head>
37<body>
38  [% IF enable_gmaps AND display_google_maps AND gmaps_api_key %]
39    <script defer="defer" type="text/javascript">
40      //<![CDATA[
41        var baseIcon = new GIcon();
42        baseIcon.image = "http://www.google.com/mapfiles/marker.png";
43        baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
44        baseIcon.iconSize = new GSize(10, 17);
45        baseIcon.shadowSize = new GSize(20, 17);
46        baseIcon.iconAnchor = new GPoint(5, 17);
47        baseIcon.infoWindowAnchor = new GPoint(9, 2);
48        baseIcon.infoShadowAnchor = new GPoint(9, 12);
49      //]]>
50    </script>
51  [% END %]
Note: See TracBrowser for help on using the repository browser.