page template: Use BASEURL variable
Instead of using absolute URLs, this now uses an ikiwiki variable to get relative paths. For example, in index.html this will expand to the empty string while in download/index.html it expands to "../". Since this expands to the empty string on index.html, some things which previously linked to / will now have to link to index.html. However, that shouldn't be a problem, I think. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
ac324f0468
commit
9f498f8ed9
|
@ -4,7 +4,7 @@
|
|||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title><TMPL_VAR TITLE> - awesome window manager</title>
|
||||
<link rel="icon" href="/images/icons/aw_16.png" type="image/png" />
|
||||
<link rel="icon" href="<TMPL_VAR BASEURL>images/icons/aw_16.png" type="image/png" />
|
||||
<link rel="stylesheet" href="<TMPL_VAR BASEURL>style.css" type="text/css" />
|
||||
<link rel="stylesheet" href="<TMPL_VAR BASEURL>local.css" type="text/css" />
|
||||
<TMPL_IF NAME="FEEDLINKS"><TMPL_VAR FEEDLINKS></TMPL_IF>
|
||||
|
@ -24,16 +24,16 @@
|
|||
|
||||
<div id="wrap">
|
||||
<div id="top">
|
||||
<h2><a href="/" title="Back to main page">awesome</a></h2>
|
||||
<h2><a href="<TMPL_VAR BASEURL>index.html" title="Back to main page">awesome</a></h2>
|
||||
<TMPL_IF NAME="SEARCHFORM">
|
||||
<TMPL_VAR SEARCHFORM>
|
||||
</TMPL_IF>
|
||||
<div id="menu">
|
||||
<ul>
|
||||
<li><a href="/">home</a></li>
|
||||
<li><a href="/download/">download</a></li>
|
||||
<li><a href="/community/">community</a></li>
|
||||
<li><a href="/doc/">doc</a></li>
|
||||
<li><a href="<TMPL_VAR BASEURL>index.html">home</a></li>
|
||||
<li><a href="<TMPL_VAR BASEURL>download/">download</a></li>
|
||||
<li><a href="<TMPL_VAR BASEURL>community/">community</a></li>
|
||||
<li><a href="<TMPL_VAR BASEURL>doc/">doc</a></li>
|
||||
<li><a href="https://github.com/awesomeWM/awesome/issues">bugs/issues</a></li>
|
||||
<li><a href="https://awesome.naquadah.org/bugs/">(old issues)</a></li>
|
||||
<li><a href="https://awesome.naquadah.org/wiki/">wiki</a></li>
|
||||
|
|
Loading…
Reference in New Issue