sitemap.wml 2.03 KB
Newer Older
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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
#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>