summaryrefslogtreecommitdiff
path: root/_includes/scripts/variables.html
diff options
context:
space:
mode:
authorKarl Hallsby <karl@hallsby.com>2020-09-27 17:45:13 -0500
committerKarl Hallsby <karl@hallsby.com>2020-09-27 17:45:13 -0500
commitc6bf5f7c895287d2028f6024265913b59784a154 (patch)
tree3a298df17d9472a679411dd81ea00a1239652477 /_includes/scripts/variables.html
parent50dafcddc0392b99b228824274b1b97d0e72e423 (diff)
Bring all of jekyll-text-theme _includes into site
Diffstat (limited to '_includes/scripts/variables.html')
-rw-r--r--_includes/scripts/variables.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/_includes/scripts/variables.html b/_includes/scripts/variables.html
new file mode 100644
index 0000000..5bd1770
--- /dev/null
+++ b/_includes/scripts/variables.html
@@ -0,0 +1,35 @@
+{%- include snippets/get-sources.html -%}
+{%- assign _sources = __return -%}
+
+{%- include snippets/get-nav-url.html path="/assets/search.js" -%}
+{%- assign _paths_search_js = __return -%}
+
+<script>
+ (function() {
+ var TEXT_VARIABLES = {
+ version: '2.2.6',
+ sources: {
+ font_awesome: '{{ _sources.font_awesome }}',
+ jquery: '{{ _sources.jquery }}',
+ leancloud_js_sdk: '{{ _sources.leancloud_js_sdk }}',
+ chart: '{{ _sources.chart }}',
+ gitalk: {
+ js: '{{ _sources.gitalk.js }}',
+ css: '{{ _sources.gitalk.css }}'
+ },
+ valine: '{{ _sources.valine }}',
+ mathjax: '{{ _sources.mathjax }}',
+ mermaid: '{{ _sources.mermaid }}'
+ },
+ site: {
+ toc: {
+ selectors: '{{ site.toc.selectors | default: site.data.variables.default.toc.selectors }}'
+ }
+ },
+ paths: {
+ search_js: '{{ _paths_search_js }}'
+ }
+ };
+ window.TEXT_VARIABLES = TEXT_VARIABLES;
+ })();
+</script>