<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>
            {{ block "title" . }}{{ end }}
            Michael Zhang
        </title>

        {{ block "headExtra" . }}{{ end }}
        {{ partial "head" . }}

        {{ if .IsHome }}
            <link rel="me" href="https://fosstodon.org/@mzhang" />
            <link rel="alternate" type="application/rss+xml" title="RSS Feed" href="/index.xml" />
        {{ end }}

        {{ $style := resources.Get "sass/main.scss" | resources.ToCSS }}
        <link rel="stylesheet" href="{{ $style.RelPermalink }}" crossorigin="anonymous" />
    </head>

    <body>
        {{ block "body" . }}
        <div class="flex-wrapper">
            {{ partial "left-nav" . }}

            <div class="sep"></div>

            <div class="container">
                {{ block "content" . }}{{ end }}
            </div>
        </div>

        <footer>
            <p>
                Blog code licensed under <a
                    href="https://www.gnu.org/licenses/gpl-3.0.txt"
                    target="_blank">[GPL-3.0]</a>.
                Post contents licensed under <a
                    href="https://creativecommons.org/licenses/by-sa/4.0/legalcode.txt">[CC
                    BY-SA 4.0]</a>.
                <br />
                Written by Michael Zhang.
                <a href="https://git.mzhang.io/michael/blog" class="colorlink"
                    target="_blank">[Source]</a>.
            </p>
        </footer>
        {{ end }}
    </body>
</html>