Changeset 819


Ignore:
Timestamp:
Jul 6, 2006, 6:16:53 PM (15 years ago)
Author:
nick
Message:

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

Location:
trunk/templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/header.tt

    r771 r819  
    1818    <link rel="stylesheet" href="[% stylesheet %]" type="text/css" title="Stylesheet for [% site_name %]" />
    1919  [% 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 %]
    2024  [% IF latitude AND longitude %]
    2125    <meta name="ICBM" content="[% latitude %], [% longitude %]" />
     
    2327  [% END %]
    2428    <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" />
    2530  [% IF deter_robots %]
    2631    <meta name="robots" content="noindex,nofollow" />
  • trunk/templates/site_index.tt

    r816 r819  
    11[% IF criterion %]
    2   [% INCLUDE header.tt page_title = "Index of $criterion.name - $site_name" %]
     2  [% INCLUDE header.tt
     3      page_title = "Index of $criterion.name - $site_name"
     4          feed_base = "$cgi_url?action=index;index_type=$criterion.type;index_value=$criterion.value"
     5   %]
    36[% ELSE %]
    47  [% INCLUDE header.tt page_title = "Things within $limit of $origin - $site_name" %]
Note: See TracChangeset for help on using the changeset viewer.