We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0495009 + e316ee8 commit a257d96Copy full SHA for a257d96
_layouts/website/page.html
@@ -0,0 +1,8 @@
1
+{% extends template.self %}
2
+
3
+{% block head %}
4
+ {{ super() }}
5
+ <script>
6
+ window["gitbook-plugin-github-buttons"] = {{ config.pluginsConfig['github-buttons']|dump|safe }};
7
+ </script>
8
+{% endblock %}
index.js
@@ -3,16 +3,7 @@ module.exports = {
assets: './lib',
js: [
'plugin.js'
- ],
- html: {
- "head:end": function () {
9
- // window["gitbook-plugin-github-buttons"]
10
- var configs = JSON.stringify(this.options.pluginsConfig["github-buttons"]);
11
- return '<script>' +
12
- 'window["gitbook-plugin-github-buttons"] = ' + configs + ';'
13
- + '</script>';
14
- }
15
+ ]
16
}
17
18
};
0 commit comments