mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
22 lines
650 B
Plaintext
22 lines
650 B
Plaintext
{{ open_graph() }}
|
|
|
|
{# https://github.com/theme-next/hexo-theme-next/issues/866 #}
|
|
{%- set canonical = url | replace(r/index\.html$/, '') %}
|
|
{%- if not config.permalink.endsWith('.html') %}
|
|
{%- set canonical = canonical | replace(r/\.html$/, '') %}
|
|
{%- endif %}
|
|
<link rel="canonical" href="{{ canonical }}">
|
|
|
|
{# Exports some front-matter variables to Front-End #}
|
|
<script{{ pjax }} class="page-configurations">
|
|
// https://hexo.io/docs/variables.html
|
|
CONFIG.page = {
|
|
sidebar: {{ page.sidebar | safedump }},
|
|
isHome : {{ is_home() }},
|
|
isPost : {{ is_post() }},
|
|
lang : '{{ page.lang }}'
|
|
};
|
|
</script>
|
|
|
|
{{- next_inject('head') }}
|