mirror of
https://github.com/Kozea/Radicale.git
synced 2025-06-26 16:45:52 +00:00
Use permalinks
This commit is contained in:
parent
802b3f719a
commit
06f0815d79
3 changed files with 6 additions and 3 deletions
|
@ -13,7 +13,7 @@ window.addEventListener("load", function() {
|
||||||
}
|
}
|
||||||
select.addEventListener("change", function() {
|
select.addEventListener("change", function() {
|
||||||
if (select.value !== documentBranch) {
|
if (select.value !== documentBranch) {
|
||||||
location.assign(select.value + ".html");
|
location.assign(select.value);
|
||||||
select.value = documentBranch;
|
select.value = documentBranch;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -124,9 +124,9 @@ def make_index_html(branch):
|
||||||
return """\
|
return """\
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<meta http-equiv="Refresh" content="0; url=%s.html">
|
<meta http-equiv="Refresh" content="0; url=%s">
|
||||||
<title>Redirect</title>
|
<title>Redirect</title>
|
||||||
<p>Please follow <a href="%s.html">this link</a>.</p>
|
<p>Please follow <a href="%s">this link</a>.</p>
|
||||||
""" % (branch, branch)
|
""" % (branch, branch)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
---
|
||||||
|
permalink: /$branch$
|
||||||
|
---
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue