81 lines
3.2 KiB
HTML
81 lines
3.2 KiB
HTML
<!DOCTYPE html>
|
|
<html color-mode="light">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<link rel="shortcut icon" href="/favicon.ico" />
|
|
<title>{{- block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{- end }}</title>
|
|
|
|
<meta name="title" content="{{ with .Title }}{{ . }}{{ else }}{{ .Site.Title }}{{ end }}" />
|
|
<meta name="description" content="{{ with .Description }}{{ . }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ else }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ end }}{{ end }}" />
|
|
<meta name="keywords" content='{{ if .IsPage}}{{ range $index, $tag := .Params.tags }}{{ $tag }},{{ end }}{{ else }}{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}{{ end }}' />
|
|
|
|
{{- partial "style.html" . -}}
|
|
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.10/dist/katex.min.css" integrity="sha384-wcIxkf4k558AjM3Yz3BBFQUbk/zgIYC2R0QpeeYb+TwlBVMrlgLqwRjRtGZiK7ww" crossorigin="anonymous">
|
|
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.10/dist/katex.min.js" integrity="sha384-hIoBPJpTUs74ddyc4bFZSM1TVlQDA60VBbJS0oA934VSz82sBx1X7kSx2ATBDIyd" crossorigin="anonymous"></script>
|
|
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.10/dist/contrib/auto-render.min.js" integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous"></script>
|
|
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", function() {
|
|
renderMathInElement(document.body, {
|
|
delimiters: [
|
|
{left: '$$', right: '$$', display: true},
|
|
{left: '$', right: '$', display: false},
|
|
{left: '\\(', right: '\\)', display: false},
|
|
{left: '\\[', right: '\\]', display: true}
|
|
],
|
|
throwOnError : false,
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
{{ if .IsHome }}
|
|
{{- partial "home.html" . -}}
|
|
{{ else if eq .Page.File.Dir "about/" }}
|
|
{{- partial "about.html" . -}}
|
|
{{ else }}
|
|
<div class="content">
|
|
{{ if eq .Page.Path "blog" }}
|
|
<header>
|
|
<a href='{{ "" | relURL }}' class="title">
|
|
<h2>{{ .Site.Title }}</h2>
|
|
</a>
|
|
</header>
|
|
{{ else if not .Page.IsPage }}
|
|
<header class="subhead">
|
|
{{ $path := "" }}
|
|
{{ with .Page.File }}
|
|
{{ $path = .Dir }}
|
|
{{ end }}
|
|
{{ $segments := split $path "/" }}
|
|
{{ $currentPath := "" }}
|
|
{{ range $index, $element := $segments }}
|
|
{{ if ne $element "" }}
|
|
{{ if $index }}
|
|
/
|
|
{{ end }}
|
|
{{ $currentPath = printf "%s/%s" $currentPath $element }}
|
|
<a href='{{ relURL (print $currentPath "/") }}'>
|
|
{{ $element }}
|
|
</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
/
|
|
|
|
</header>
|
|
{{ end }}
|
|
<main>
|
|
{{- block "main" . }}{{- end }}
|
|
</main>
|
|
</div>
|
|
<script>
|
|
console.log("Sending statistics to server. Personal info is redacted afterwards.");
|
|
console.log(fetch(`https://log.blog.morgan.kr/?url=${encodeURIComponent(document.location)}&referer=${encodeURIComponent(document.referrer)}`));
|
|
</script>
|
|
{{ end }}
|
|
</body>
|
|
</html>
|