662dd80fc5
Minor fixes on #226 (#240)
* Fix head inject point

* Switch `.link-grid-image` to `<img>`

* Switch `.link-grid-image` back to `<object>`

- Set `type` to `image/jpeg` for image without file extension
2021-04-05 17:16:49 +08:00

24 lines
726 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
}}">