diff --git a/book.toml b/book.toml
index 70109aa49..308ed4aab 100644
--- a/book.toml
+++ b/book.toml
@@ -6,6 +6,8 @@ title = "Void Linux Handbook"
[output.html]
theme = "src/theme"
+git-repository-url = "https://github.com/void-linux/void-docs"
+edit-url-template = "https://github.com/void-linux/void-docs/edit/master/{path}"
[output.html.redirect]
"/about-this-handbook.html" = "/about/about-this-handbook.html"
diff --git a/src/theme/index.hbs b/src/theme/index.hbs
index 239c9c572..966eedbce 100644
--- a/src/theme/index.hbs
+++ b/src/theme/index.hbs
@@ -1,133 +1,223 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
- {{#if search_enabled}}
-
- {{/if}}
-
-
- {{{ content }}}
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{> header}}
+
+
+
+ {{#if search_enabled}}
+
+ {{/if}}
+
+
+
+
+
+
+ {{{ content }}}
+
+
+
+
+
+
+
+
+
{{#if livereload}}
@@ -136,7 +226,7 @@
socket.onmessage = function (event) {
if (event.data === "reload") {
socket.close();
- location.reload(true); // force reload from server (not from cache)
+ location.reload();
}
};
@@ -146,12 +236,77 @@
{{/if}}
+ {{#if google_analytics}}
+
+
+ {{/if}}
+
+ {{#if playground_line_numbers}}
+
+ {{/if}}
+
+ {{#if playground_copyable}}
+
+ {{/if}}
+
+ {{#if playground_js}}
+
+
+
+
+
+ {{/if}}
+
{{#if search_js}}
{{/if}}
+
+
+
+
+ {{#each additional_js}}
+
+ {{/each}}
+
+ {{#if is_print}}
+ {{#if mathjax_support}}
+
+ {{else}}
+
+ {{/if}}
+ {{/if}}
+