<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode | default "en-us" }}">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
        {{ template "_internal/opengraph.html" . }}
	{{ partial "twitter_cards_custom.html" . }}
	<title>{{ .Title }}</title>
	{{ with .Site.Params.description }}<meta name="description" content="{{ . }}">{{ end }}
	{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
	<link rel="shortcut icon" href="/mmaker.png" type="image/x-icon" />
	<link rel="stylesheet" href="{{ "css/style.css" | relURL }}">
	{{ with .OutputFormats.Get "RSS" -}}
		{{ printf `<link rel="%s" type="%s" href="%s" title="%s">` .Rel .MediaType.Type .RelPermalink $.Site.Title | safeHTML }}
	{{- end }}
</head>
<body>
	<div id="wrapper">
		{{ partial "header" . }}
		<div id="container">
			{{ block "main" . }}{{ end }}
			{{ partial "sidebar.html" . }}
			<!-- {{ partial "footer" . }} -->
		</div>
		<!--
		<div class="kpan">
			<iframe width="675" height="128" src="https://darkholme.kpworld.xyz/kpan-fetch?w=675&h=128"></iframe>
		</div>
		-->
	</div>
	<script type="text/javascript">
		function getVideoEmbed(src)
		{
			let iframe = document.createElement('iframe');
			iframe.frameBorder = 0;
			iframe.width = 560;
			iframe.height = 315;
			iframe.src = 'https://www.youtube.com/embed/' + src;
			iframe.allowFullscreen = true;
			return iframe;
		}
	
		function enableEmbed(elem, iframe)
		{
			parentElem = elem.parentElement;
			parentElem.appendChild(iframe);
			elem.remove();
		}
	</script>
</body>
</html>