diff options
author | Georg Brandl <georg@python.org> | 2009-03-01 19:44:47 +0100 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-03-01 19:44:47 +0100 |
commit | c8afb6b245148e73072fc0901a8c2a5337fafe98 (patch) | |
tree | e9aecee9d33e00debb4d6d0a3d3b72ecc14c8fc6 | |
parent | 2ca8c15eba87e7fef7f089be7a8bf0b754f86727 (diff) | |
download | sphinx-git-c8afb6b245148e73072fc0901a8c2a5337fafe98.tar.gz |
Debian bug #517735: check for presence of pages before linking to them.
-rw-r--r-- | sphinx/templates/layout.html | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sphinx/templates/layout.html b/sphinx/templates/layout.html index d9c9045d3..9f5660220 100644 --- a/sphinx/templates/layout.html +++ b/sphinx/templates/layout.html @@ -128,8 +128,12 @@ {%- if hasdoc('about') %} <link rel="author" title="{{ _('About these documents') }}" href="{{ pathto('about') }}" /> {%- endif %} + {%- if hasdoc('genindex') %} <link rel="index" title="{{ _('Index') }}" href="{{ pathto('genindex') }}" /> + {%- endif %} + {%- if hasdoc('search') %} <link rel="search" title="{{ _('Search') }}" href="{{ pathto('search') }}" /> + {%- endif %} {%- if hasdoc('copyright') %} <link rel="copyright" title="{{ _('Copyright') }}" href="{{ pathto('copyright') }}" /> {%- endif %} |