mirror of
https://github.com/next-theme/hexo-theme-next.git
synced 2026-01-18 18:33:42 +00:00
26 lines
754 B
Plaintext
26 lines
754 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 #}
|
|
{# https://hexo.io/docs/variables.html #}
|
|
<meta name="hexo-config-page" content="{{
|
|
{
|
|
sidebar: page.sidebar or '',
|
|
isHome : is_home(),
|
|
isPost : is_post(),
|
|
lang : page.lang
|
|
} | safedump | escape
|
|
}}">
|
|
<meta name="hexo-config-calendar" content="{{
|
|
theme.calendar | safedump | escape
|
|
if page.type === 'schedule' and not page.title
|
|
}}">
|
|
|
|
{{- next_inject('head') }}
|