{{ 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 %} {# Exports some front-matter variables to Front-End #} {# https://hexo.io/docs/variables.html #} {{ next_data('page', next_config_unique()) }} {{ next_data('calendar', theme.calendar if page.type === 'schedule' and not page.title else '') }}