48 lines
1.9 KiB
HTML
48 lines
1.9 KiB
HTML
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
|
|
<meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
|
|
|
|
<link href="https://fonts.googleapis.com/css?family=Secular+One|Nunito|Mononoki" rel="stylesheet">
|
|
<link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
|
|
<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
|
|
<link rel="alternate" type="application/rss+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
|
|
|
|
{% if page.custom_head %}
|
|
{{ page.custom_head }}
|
|
{% endif %}
|
|
|
|
{% if page.math %}
|
|
<link rel='stylesheet' href='{{ "/css/katex.min.css" | prepend: site.baseurl }}'>
|
|
<script src='{{ "/js/katex.min.js" | prepend: site.baseurl }}'></script>
|
|
<script src='{{ "/js/auto-render.min.js" | prepend: site.baseurl }}'></script>
|
|
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", function() {
|
|
renderMathInElement(document.body, {
|
|
delimiters: [
|
|
{left: "$$", right: "$$", display: true},
|
|
{left: "\\[", right: "\\]", display: true},
|
|
{left: "\\(", right: "\\)", display: false},
|
|
{left: "$", right: "$", display: false},
|
|
],
|
|
});
|
|
});
|
|
</script>
|
|
{% endif %}
|
|
|
|
<!--<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML" type="text/javascript"></script>-->
|
|
|
|
<script>
|
|
var channel = new BroadcastChannel('egg');
|
|
|
|
channel.addEventListener('message', message => {
|
|
alert('Got a message from the other tab:\n' + message.data);
|
|
});
|
|
</script>
|
|
</head>
|
|
|