Commit e45bd95e authored by Josip Rodin's avatar Josip Rodin

first try at sitemap (obviously not finished yet), uses some tags from menubar

CVS version numbers

english/sitemap.wml: INITIAL -> 1.1 
english/template/debian/links.tags: INITIAL -> 1.1 
english/template/debian/menubar.wml: 1.172 -> 1.173
parent c95f82d6
#include "$(ENGLISHDIR)/template/debian/links.tags"
#use wml::debian::template title="<sitemap>" BARETITLE=true
#include "$(ENGLISHDIR)/releases/info"
# Don't translate this file, it will only make you look stupid.
<perl>
sub title_of {
my ($page) = @_;
# special cases
if ($page eq "http://lists.debian.org/") { return "<mailarchives>" }
if ($page eq "http://search.debian.org/") { return "<search>" }
$page =~ s/^(.+)#(.+)$/$1/; # remove anchors (will handle this later)
$page =~ s,/stable/,/potato/,; # kludges,
$page =~ s,/testing/,/woody/,; # kludges...
if ($page =~ /\/$/) { $page .= "index.wml" } else { $page .= ".wml" };
# print STDERR "page: $page\n"; return;
$page = "$ENGLISHDIR/$page" unless (-f $page);
my $title = `egrep '^#use .* title=' $page`; chomp $title;
$title =~ s/^#use .* title="([^"]+)".*$/$1/;
return $title;
}
</perl>
<define-tag linkto whitespace=delete>
<a href="%0"><:= title_of("%0") :></a>
</define-tag>
<table border="0" width="100%">
<tr>
<td width="50%">
<ul>
<li><linkto "intro/about">
<li><linkto "social_contract">
<li><linkto "international/">
<li><linkto "partners/">
<li><linkto "donations">
<li><linkto "events/">
<li><linkto "contact">
<li><linkto "related_links">
</ul>
<ul>
<li><linkto "misc/merchandise">
<li><linkto "misc/awards">
</ul>
<ul>
<li><linkto "News/">
<li><linkto "News/weekly/">
</ul>
</td>
<td width="50%">
<ul>
<li><linkto "releases/">
<li><linkto "releases/stable/">
<li><linkto "releases/testing/">
</ul>
<ul>
<li><linkto "distrib/">
<li><linkto "distrib/packages">
<li><linkto "distrib/ftplist">
<li><linkto "distrib/vendors">
<li><linkto "distrib/books">
</ul>
<ul>
<li><linkto "ports/">
</ul>
<ul>
<li><linkto "support">
<li><linkto "doc/">
<li><linkto "doc/ddp">
<li><linkto "security/">
<li><linkto "Bugs/">
<li><linkto "MailingLists/">
<li><linkto "http://lists.debian.org/">
</ul>
</td>
</tr>
<tr>
<td colspan="2">
<p><linkto "devel/">
<p><linkto "$(SEARCH)">
</td>
</tr>
</table>
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment