a new start
This commit is contained in:
1
_includes/head/css/inline
Normal file
1
_includes/head/css/inline
Normal file
@@ -0,0 +1 @@
|
||||
{% capture to_scssify %}{% include styles/inline.scss %}{% endcapture %}{{ to_scssify | scssify }}
|
||||
1
_includes/head/feed-tag.html
Normal file
1
_includes/head/feed-tag.html
Normal file
@@ -0,0 +1 @@
|
||||
{% feed_meta %}
|
||||
15
_includes/head/index.html
Normal file
15
_includes/head/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{% assign google_fonts = site.google_fonts %}
|
||||
{% assign font_heading = site.font_heading %}
|
||||
{% assign font = site.font %}
|
||||
|
||||
{% include head/meta.html %}
|
||||
{% include_cached head/meta-static.html %}
|
||||
|
||||
{% include head/links.html lang=page.lang %}
|
||||
{% include_cached head/links-static.html %}
|
||||
|
||||
{% include_cached head/scripts.html %}
|
||||
|
||||
{% include_cached head/styles.html layout=page.layout color=color theme_color=theme_color %}
|
||||
|
||||
{% include my-head.html %}
|
||||
30
_includes/head/links-static.html
Normal file
30
_includes/head/links-static.html
Normal file
@@ -0,0 +1,30 @@
|
||||
{% if plugins contains 'jekyll-feed' %}{% include head/feed-tag.html %}{% endif %}
|
||||
|
||||
<link rel="icon" type="image/png" href="/assets/icons/favicon-96x96.png" sizes="96x96" />
|
||||
<link rel="icon" type="image/svg+xml" href="/assets/icons/favicon.svg" />
|
||||
<link rel="shortcut icon" href="/assets/icons/favicon.ico" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/assets/icons/apple-touch-icon.png" />
|
||||
<link rel="manifest" href="/assets/icons/site.webmanifest" />
|
||||
|
||||
{% if site.google_fonts %}
|
||||
{%- capture google_fonts_url %}{{ site.google_fonts_url | default:'https://fonts.googleapis.com' }}{%- endcapture -%}
|
||||
<link rel="dns-prefetch" href="{{ google_fonts_url }}" />
|
||||
{%- if google_fonts_url == 'https://fonts.googleapis.com' -%}
|
||||
<link rel="dns-prefetch" href="https://fonts.gstatic.com" />
|
||||
{%- endif -%}
|
||||
{% endif %}
|
||||
|
||||
{% if site.google_analytics %}
|
||||
<link rel="dns-prefetch" href="https://www.google-analytics.com" />
|
||||
{% endif %}
|
||||
|
||||
{% if site.kramdown.math_engine == 'katex' %}
|
||||
{% capture katex_url %}{{ 'assets/bower_components/katex/dist/katex.min.css' | relative_url }}{% endcapture %}
|
||||
<link rel="dns-prefetch" href="{{ katex_url }}" id="_katexPreload" />
|
||||
<noscript><link rel="stylesheet" href="{{ katex_url }}"></noscript>
|
||||
{% endif %}
|
||||
|
||||
{% assign disqus = site.disqus | default:site.disqus_shortname %}
|
||||
{% if disqus %}
|
||||
<link rel="dns-prefetch" href="https://{{ disqus }}.disqus.com" id="_hrefDisqus" />
|
||||
{% endif %}
|
||||
2
_includes/head/links.html
Normal file
2
_includes/head/links.html
Normal file
@@ -0,0 +1,2 @@
|
||||
{% assign lang = include.lang | default:site.lang | default:'en' %}
|
||||
<link rel="alternate" href="{{ page.url | absolute_url }}" hreflang="{{ lang | downcase | replace:'_','-' }}" />
|
||||
13
_includes/head/meta-static.html
Normal file
13
_includes/head/meta-static.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge" />
|
||||
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
|
||||
<meta name="apple-mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-title" content="{{ site.title }}" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
||||
|
||||
<meta name="application-name" content="{{ site.title }}" />
|
||||
|
||||
<meta name="generator" content="pivoine v1.0.0" />
|
||||
30
_includes/head/meta.html
Normal file
30
_includes/head/meta.html
Normal file
@@ -0,0 +1,30 @@
|
||||
{% if page.noindex or page.no_index or page.sitemap == false %}
|
||||
<meta name="robots" content="noindex" />
|
||||
{% endif %}
|
||||
|
||||
{% unless page.redirect %}
|
||||
{% if plugins contains 'jekyll-seo-tag' %}
|
||||
{% include head/seo-tag.html %}
|
||||
{% else %}
|
||||
{% include head/seo-fallback.html %}
|
||||
{% endif %}
|
||||
|
||||
{% if site.keywords.size > 0 or page.keywords.size > 0 %}
|
||||
<meta name="keywords" content="{{ page.keywords | default:site.keywords | join:',' }}" />
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<meta http-equiv="refresh" content="0; url={{ page.redirect.to }}" />
|
||||
<title>{{ site.data.strings.redirecting | default:"Redirecting..." }}</title>
|
||||
{% endunless %}
|
||||
|
||||
{% if site.pivoine.dark_mode.dynamic %}
|
||||
<meta name="color-scheme" content="dark light" />
|
||||
{% elsif site.pivoine.dark_mode.always %}
|
||||
<meta name="color-scheme" content="dark" />
|
||||
{% else %}
|
||||
<meta name="color-scheme" content="light" />
|
||||
{% endif %}
|
||||
|
||||
{% unless site.pivoine.no_theme_color %}
|
||||
<meta name="theme-color" content="{{ theme_color | default:'rgb(8,46,57)' }}" />
|
||||
{% endunless %}
|
||||
4
_includes/head/page-style.html
Normal file
4
_includes/head/page-style.html
Normal file
@@ -0,0 +1,4 @@
|
||||
<style id="_pageStyle">
|
||||
{% capture page_style %}{% include_cached styles/page-style.scss color=include.color theme_color=include.theme_color %}{% endcapture %}
|
||||
{{ page_style | scssify }}
|
||||
</style>
|
||||
24
_includes/head/scripts.html
Normal file
24
_includes/head/scripts.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<script>{% include scripts/load-js.min.js %}{% include scripts/loadCSS.min.js %}{% include scripts/cssrelpreload.min.js %}!function(w) {
|
||||
w._baseURL = '{{ "/" | relative_url }}';
|
||||
w._publicPath = '{{ "/assets/js/" | relative_url }}';
|
||||
w._noPushState = {{ site.pivoine.no_push_state | default:site.disable_push_state | default:false }};
|
||||
w._noDrawer = {{ site.pivoine.no_drawer | default:site.disable_drawer | default:false }};
|
||||
w._noNavbar = {{ site.pivoine.no_navbar | default:false }};
|
||||
w._noToc = {{ site.pivoine.no_toc | default:false }};
|
||||
w._noSearch = {{ site.pivoine.no_search | default:false }};
|
||||
w._search = {
|
||||
DATA_URL: '{{ "/assets/sitedata.json?no-cache" | relative_url }}',
|
||||
STORAGE_KEY: 'mini-search{{ "/" | relative_url }}',
|
||||
INDEX_KEY: 'index--{{ site.time | date_to_xmlschema }}',
|
||||
};
|
||||
w._clapButton = {% if site.clap_button or jekyll.environment != 'production' %}true{% else %}false{% endif %};
|
||||
}(window);</script>
|
||||
|
||||
{% if site.kramdown.math_engine == 'mathjax' %}
|
||||
<script async src="{{ 'assets/bower_components/MathJax/es5/tex-mml-chtml.js' | relative_url }}" id="_MathJax"></script>
|
||||
{% endif %}
|
||||
|
||||
{% if jekyll.environment != 'production' and site.pivoine.umami %}
|
||||
<script defer src="{{ site.pivoine.umami.script }}" data-website-id="{{ site.pivoine.umami.id }}"></script>
|
||||
{% endif %}
|
||||
|
||||
13
_includes/head/seo-fallback.html
Normal file
13
_includes/head/seo-fallback.html
Normal file
@@ -0,0 +1,13 @@
|
||||
{% assign strings = site.data.strings %}
|
||||
{% capture title %}
|
||||
{% if page.url == "/" %}
|
||||
{{ site.title }}{% if site.tagline %} {{ strings.separator | default:"|" }} {{ site.tagline }}{% endif %}
|
||||
{% elsif page.title.size > 0 %}
|
||||
{{ page.title }} {{ strings.separator | default:"|" }} {{ site.title }}
|
||||
{% else %}
|
||||
{{ site.title }}
|
||||
{% endif %}
|
||||
{% endcapture %}
|
||||
<title>{{ title | strip }}</title>
|
||||
<meta name="description" content="{{ page.description | default:page.excerpt | default:site.description | markdownify | strip_html }}" />
|
||||
<link rel="canonical" href="{{ page.url | absolute_url }}" />
|
||||
18
_includes/head/seo-tag.html
Normal file
18
_includes/head/seo-tag.html
Normal file
@@ -0,0 +1,18 @@
|
||||
{% comment %}<!--
|
||||
Including `seo` in a partial prevents a parse error when `jekyll-seo-tag` is not included
|
||||
-->{% endcomment %}
|
||||
{% seo %}
|
||||
|
||||
{% if page.accent_video %}
|
||||
<meta property="og:video" content="{{ page.accent_video | absolute_url }}" />
|
||||
{% endif %}
|
||||
|
||||
{% if site.pivoine.sound and page.sound %}
|
||||
<meta property="og:type" content="music.album" />
|
||||
{% assign sounds = site.data.sounds | where: 'slug', page.sound %}
|
||||
{% for track in sounds.first.tracks %}
|
||||
{% assign track_url = "/assets/sounds/" | append:page.sound | append:"/" | append: track" %}
|
||||
<meta property="music:song" content="{{ track_url | absolute_url }}" />
|
||||
<meta property="music:song:track" content="{{ forloop.index + 1 }}" />
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
25
_includes/head/styles-inline.html
Normal file
25
_includes/head/styles-inline.html
Normal file
@@ -0,0 +1,25 @@
|
||||
{% assign google_fonts = site.google_fonts %}
|
||||
{% capture style_url %}{{ 'assets/css/pivoine-1.0.0.css' | relative_url }}{% endcapture %}
|
||||
{% capture icons_url %}{{ 'assets/icomoon/style.css' | relative_url }}{% endcapture %}
|
||||
{% capture game_icons_url %}{{ 'assets/game-icons/css/game-icons.css' | relative_url }}{% endcapture %}
|
||||
{% if google_fonts %}
|
||||
{% capture fonts_url %}{{ site.google_fonts_url | default:'https://fonts.googleapis.com' }}/css?family={{ google_fonts | uri_escape }}&display=swap{% endcapture %}
|
||||
{% endif %}
|
||||
|
||||
<link rel="preload" as="style" href="{{ style_url }}" id="_stylePreload" />
|
||||
<link rel="preload" as="style" href="{{ icons_url }}" id="_iconsPreload" />
|
||||
<link rel="preload" as="style" href="{{ game_icons_url }}" id="_gameIconsPreload" />
|
||||
{% if google_fonts %}<link rel="preload" as="style" href="{{ fonts_url }}" id="_fontsPreload" />{% endif %}
|
||||
|
||||
<script>
|
||||
setRel('_stylePreload');
|
||||
setRel('_iconsPreload');
|
||||
setRel('_gameIconsPreload');
|
||||
/*{% if google_fonts %}*/setRel('_fontsPreload');/*{% endif %}*/
|
||||
</script>
|
||||
<noscript>
|
||||
<link rel="stylesheet" href="{{ style_url }}" />
|
||||
<link rel="stylesheet" href="{{ icons_url }}" />
|
||||
<link rel="stylesheet" href="{{ game_icons_url }}" />
|
||||
{% if google_fonts %}<link rel="stylesheet" href="{{ fonts_url }}" />{% endif %}
|
||||
</noscript>
|
||||
4
_includes/head/styles-layout.html
Normal file
4
_includes/head/styles-layout.html
Normal file
@@ -0,0 +1,4 @@
|
||||
{% assign layout = include.layout %}
|
||||
<style id="_styleInline">
|
||||
{% include_cached head/css/inline %}
|
||||
</style>
|
||||
12
_includes/head/styles-no-inline.html
Normal file
12
_includes/head/styles-no-inline.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% assign google_fonts = site.google_fonts %}
|
||||
{% capture style_url %}{{ 'assets/css/pivoine-1.0.0.css' | relative_url }}{% endcapture %}
|
||||
{% capture icons_url %}{{ 'assets/icomoon/style.css' | relative_url }}{% endcapture %}
|
||||
{% capture game_icons_url %}{{ 'assets/game-icons/css/game-icons.css' | relative_url }}{% endcapture %}
|
||||
{% if google_fonts %}
|
||||
{% capture fonts_url %}{{ site.google_fonts_url | default:'https://fonts.googleapis.com' }}/css?family={{ google_fonts | uri_escape }}&display=swap{% endcapture %}
|
||||
{% endif %}
|
||||
|
||||
<link rel="stylesheet" href="{{ style_url }}" id="_stylePreload" />
|
||||
<link rel="stylesheet" href="{{ icons_url }}" id="_iconsPreload" />
|
||||
<link rel="stylesheet" as="style" href="{{ game_icons_url }}" id="_gameIconsPreload" />
|
||||
{% if google_fonts %}<link rel="stylesheet" href="{{ fonts_url }}" id="_fontsPreload" />{% endif %}
|
||||
12
_includes/head/styles.html
Normal file
12
_includes/head/styles.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!--[if gt IE 8]><!---->
|
||||
{% if site.pivoine.no_inline_css or jekyll.environment == 'development' %}
|
||||
{% include_cached head/styles-no-inline.html %}
|
||||
{% else %}
|
||||
{% include_cached head/styles-layout.html layout=include.layout %}
|
||||
{% include_cached head/styles-inline.html %}
|
||||
{% endif %}
|
||||
|
||||
{% unless site.pivoine.no_page_style %}
|
||||
{% include_cached head/page-style.html color=include.color theme_color=include.theme_color %}
|
||||
{% endunless %}
|
||||
<!--<![endif]-->
|
||||
Reference in New Issue
Block a user