diff --git a/src/build.py b/src/build.py
index bf35602..f31ce1d 100644
--- a/src/build.py
+++ b/src/build.py
@@ -27,7 +27,7 @@ def build_contents_page(articles, config):
for article in articles}
# Write the articles in alphabetical order
content += utils.load_resource("contents.html")
- content += "
\n
\n"
+ content += "\n
\n"
indices = config["INDEX_LIST"].split("\n")
alphabetical_order = sorted(
articles,
@@ -71,6 +71,7 @@ def build_contents_page(articles, config):
css=css,
logo=config["LOGO_FILENAME"],
prompt=config["PROMPT"],
+ sort=config["DEFAULT_SORT"],
content=content,
citeblock="")
@@ -88,6 +89,7 @@ def build_rules_page(config):
css=css,
logo=config["LOGO_FILENAME"],
prompt=config["PROMPT"],
+ sort=config["DEFAULT_SORT"],
content=content,
citeblock="")
@@ -105,6 +107,7 @@ def build_formatting_page(config):
css=css,
logo=config["LOGO_FILENAME"],
prompt=config["PROMPT"],
+ sort=config["DEFAULT_SORT"],
content=content,
citeblock="")
@@ -121,6 +124,7 @@ def build_session_page(config):
css=css,
logo=config["LOGO_FILENAME"],
prompt=config["PROMPT"],
+ sort=config["DEFAULT_SORT"],
content=config["SESSION_PAGE"],
citeblock="")
@@ -251,6 +255,7 @@ def build_statistics_page(articles, config):
css=css,
logo=config["LOGO_FILENAME"],
prompt=config["PROMPT"],
+ sort=config["DEFAULT_SORT"],
content=content,
citeblock="")
@@ -352,7 +357,7 @@ def build_all(path_prefix, lexicon_name):
# Write the redirect page
print("Writing redirect page...")
with open(pathto("index.html"), "w", encoding="utf8") as f:
- f.write(utils.load_resource("redirect.html").format(lexicon=config["LEXICON_TITLE"]))
+ f.write(utils.load_resource("redirect.html").format(lexicon=config["LEXICON_TITLE"], sort=config["DEFAULT_SORT"]))
# Write the article pages
print("Deleting old article pages...")
@@ -374,6 +379,7 @@ def build_all(path_prefix, lexicon_name):
css = css,
logo = config["LOGO_FILENAME"],
prompt = config["PROMPT"],
+ sort = config["DEFAULT_SORT"],
content = content,
citeblock = citeblock)
f.write(article_html)
diff --git a/src/resources/contents.html b/src/resources/contents.html
index 42e3b19..a85b697 100644
--- a/src/resources/contents.html
+++ b/src/resources/contents.html
@@ -15,7 +15,9 @@ contentsToggle = function() {
}
window.onload = function(){
if (location.search.search("byturn") > 0)
- contentsToggle();
+ document.getElementById("turn-order").style.display = "block";
+ if (location.search.search("byindex") > 0)
+ document.getElementById("index-order").style.display = "block";
}
diff --git a/src/resources/entry-page.html b/src/resources/entry-page.html
index db2e393..3b08063 100644
--- a/src/resources/entry-page.html
+++ b/src/resources/entry-page.html
@@ -11,7 +11,7 @@
{lexicon}
-Contents —
+Contents —
Rules —
Formatting —
Session —
diff --git a/src/resources/redirect.html b/src/resources/redirect.html
index e20197a..ba7ede1 100644
--- a/src/resources/redirect.html
+++ b/src/resources/redirect.html
@@ -1,9 +1,9 @@
{lexicon}
-
+
-Redirecting to {lexicon}...
+Redirecting to {lexicon}...
\ No newline at end of file