You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

49 lines
1.6 KiB

{#- Website mata -#}
{%- include "./_head/meta.swig" -%}
{#- Website rss -#}
{%- if theme.rss === 'default' and config.feed and config.feed.path -%}
{{ feed_tag(config.feed.path) }}
{%- elif theme.rss -%}
{{ feed_tag(theme.rss) }}
{%- else -%}
{{ feed_tag('atom.xml') }}
{%- endif -%}
{#- Website favicon -#}
{%- if theme.favicon -%}
<link rel="shortcut icon" type="image/x-icon" href="{{ url_for(theme.favicon) }}?v={{ theme.version }}" />
{%- endif -%}
{#- Canonical, good for google search engine -#}
<link rel="canonical" href="{{ config.url }}/{{ page.canonical_path.replace('index.html', '') }}"/>
{#- Fancybox styling -#}
{%- if theme.fancybox -%}
<link rel="stylesheet" type="text/css" href="{{ url_for('lib/fancybox/jquery.fancybox.css') }}" />
{%- endif -%}
{#- MathJax (LaTeX) support -#}
{%- if theme.latex -%}
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ['\\(','\\)']] } });
</script>
<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML"></script>
{%- endif -%}
{#- Theme styling -#}
<link rel="stylesheet" type="text/css" href="{{ url_for('css/style.css') }}?v={{ theme.version }}" />
{#- Analytics and push -#}
{%- if not env.debug -%}
{%- include "../_script/analytics.swig" -%}
{%- include "../_script/push.swig" -%}
{%- endif -%}
{#- LeanCloud Counter -#}
{%- include "../_script/counter.swig"%}
{%- set themeConfig = { leancloud: theme.leancloud, toc: theme.toc, fancybox: theme.fancybox, pjax: theme.pjax, latex: theme.latex } -%}
<script>
window.config = {{ JSON.stringify(themeConfig) }};
</script>