summaryrefslogtreecommitdiff
path: root/_includes/scripts/variables.html
blob: 5bd1770354ecec9b6b461014d674476f7d314eaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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>