2025-2-26-fixed
This commit is contained in:
14
themes/next/layout/_partials/head/head-unique.swig
Normal file
14
themes/next/layout/_partials/head/head-unique.swig
Normal file
@ -0,0 +1,14 @@
|
||||
{{ open_graph() }}
|
||||
|
||||
{{ canonical() }}
|
||||
|
||||
{# Exports some front-matter variables to Front-End #}
|
||||
<script id="page-configurations">
|
||||
// https://hexo.io/docs/variables.html
|
||||
CONFIG.page = {
|
||||
sidebar: {{ page.sidebar | json }},
|
||||
isHome : {{ is_home() }},
|
||||
isPost : {{ is_post() }},
|
||||
lang : '{{ page.lang }}'
|
||||
};
|
||||
</script>
|
||||
61
themes/next/layout/_partials/head/head.swig
Normal file
61
themes/next/layout/_partials/head/head.swig
Normal file
@ -0,0 +1,61 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
|
||||
<meta name="theme-color" content="{{ theme.android_chrome_color }}">
|
||||
<meta name="generator" content="Hexo {{ hexo_version }}">
|
||||
|
||||
{%- if theme.favicon.apple_touch_icon %}
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="{{ url_for(theme.favicon.apple_touch_icon) }}">
|
||||
{%- endif %}
|
||||
{%- if theme.favicon.medium %}
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for(theme.favicon.medium) }}">
|
||||
{%- endif %}
|
||||
{%- if theme.favicon.small %}
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="{{ url_for(theme.favicon.small) }}">
|
||||
{%- endif %}
|
||||
{%- if theme.favicon.safari_pinned_tab %}
|
||||
<link rel="mask-icon" href="{{ url_for(theme.favicon.safari_pinned_tab) }}" color="{{ theme.android_chrome_color }}">
|
||||
{%- endif %}
|
||||
{%- if theme.favicon.android_manifest %}
|
||||
<link rel="manifest" href="{{ url_for(theme.favicon.android_manifest) }}">
|
||||
{%- endif %}
|
||||
{%- if theme.favicon.ms_browserconfig %}
|
||||
<meta name="msapplication-config" content="{{ url_for(theme.favicon.ms_browserconfig) }}">
|
||||
{%- endif %}
|
||||
|
||||
{%- if theme.disable_baidu_transformation %}
|
||||
<meta http-equiv="Cache-Control" content="no-transform">
|
||||
<meta http-equiv="Cache-Control" content="no-siteapp">
|
||||
{%- endif %}
|
||||
{%- if theme.google_site_verification %}
|
||||
<meta name="google-site-verification" content="{{ theme.google_site_verification }}">
|
||||
{%- endif %}
|
||||
{%- if theme.bing_site_verification %}
|
||||
<meta name="msvalidate.01" content="{{ theme.bing_site_verification }}">
|
||||
{%- endif %}
|
||||
{%- if theme.yandex_site_verification %}
|
||||
<meta name="yandex-verification" content="{{ theme.yandex_site_verification }}">
|
||||
{%- endif %}
|
||||
{%- if theme.baidu_site_verification %}
|
||||
<meta name="baidu-site-verification" content="{{ theme.baidu_site_verification }}">
|
||||
{%- endif %}
|
||||
|
||||
<link rel="stylesheet" href="{{ url_for(theme.css) }}/main.css">
|
||||
|
||||
{{ next_font() }}
|
||||
|
||||
{%- set font_awesome_uri = theme.vendors.fontawesome or next_vendors('font-awesome/css/all.min.css') %}
|
||||
<link rel="stylesheet" href="{{ font_awesome_uri }}">
|
||||
|
||||
{%- if theme.fancybox %}
|
||||
{%- set fancybox_css_uri = theme.vendors.fancybox_css or next_vendors('//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.css') %}
|
||||
<link rel="stylesheet" href="{{ fancybox_css_uri }}">
|
||||
{%- endif %}
|
||||
|
||||
{%- if theme.pace.enable %}
|
||||
{%- set pace_css_uri = theme.vendors.pace_css or next_vendors('pace/pace-theme-' + theme.pace.theme + '.min.css') %}
|
||||
{%- set pace_js_uri = theme.vendors.pace or next_vendors('pace/pace.min.js') %}
|
||||
<link rel="stylesheet" href="{{ pace_css_uri }}">
|
||||
<script src="{{ pace_js_uri }}"></script>
|
||||
{%- endif %}
|
||||
|
||||
{{ next_config() }}
|
||||
Reference in New Issue
Block a user