<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode | default " en-us" }}">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <link rel="icon" type="image/png" href="/favicon.ico">
    <title>{{ .Title }}</title>
    {{ with .Site.Params.description }}
    <meta name="description" content="{{ . }}">
    {{ end }}
    {{ with .Site.Params.author }}
    <meta name="author" content="{{ . }}">
    {{ end }}

    {{ $style := resources.Get "style.scss" | toCSS | minify }}
    <link rel="stylesheet" href="{{ $style.Permalink }}">

    {{ if .Params.has_asciinema }}
        {{- $styles := resources.Get "asciinema-player.css" | minify | fingerprint }}
        <link rel="stylesheet" href="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}" media="screen">

        {{- $styles := resources.Get "asciinema-player.js" | minify | fingerprint }}
        <script src="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}"></script>

        {{- $styles := resources.Get "asciinema-tutorial.js" | minify | fingerprint }}
        <script src="{{ $styles.Permalink }}" integrity="{{ $styles.Data.Integrity }}"></script>
    {{ end }}

    {{ range .AlternativeOutputFormats -}}
        {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
    {{ end -}}
    {{ hugo.Generator }}
</head>
<body>
