1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Use permalinks

This commit is contained in:
Unrud 2020-02-27 14:31:53 +01:00
parent 802b3f719a
commit 06f0815d79
3 changed files with 6 additions and 3 deletions

View file

@ -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;
} }
}); });

View file

@ -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)

View file

@ -1,3 +1,6 @@
---
permalink: /$branch$
---
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">