diff --git a/_layouts/website/page.html b/_layouts/website/page.html
new file mode 100644
index 0000000..c4a8913
--- /dev/null
+++ b/_layouts/website/page.html
@@ -0,0 +1,16 @@
+{% extends template.self %}
+
+{% block javascript %}
+ {{ super() }}
+ "
+
+{% endblock %}
\ No newline at end of file
diff --git a/index.js b/index.js
index 62bbe19..61eb482 100644
--- a/index.js
+++ b/index.js
@@ -3,26 +3,6 @@ module.exports = {
assets: "./book",
js: [
"plugin.js"
- ],
- html: {
- "body:end": function() {
- var config = this.options.pluginsConfig.hotjar || {};
-
- if (!config.hjid) {
- throw "Hotjar: option 'hjid' is required.";
- }
-
- return ""
- + ""
- + "";
- }
- }
+ ]
}
};
diff --git a/package.json b/package.json
index 963992d..c8da454 100644
--- a/package.json
+++ b/package.json
@@ -26,7 +26,7 @@
"hjid": {
"type": "number",
"title": "Hotjar Analytics ID",
- "required": false
+ "required": true
}
}
}