- import pastemyst.data : getVersion;

doctype html
html(lang="en", class="myst")
    head
        - static if(is(typeof(title)))
            title pastemyst | #{title}
            meta(name="title", content="pastemyst | " ~ title)
            meta(property="og:title", content="pastemyst | " ~ title)
            meta(property="twitter:title", content="pastemyst | " ~ title)
        - else
            title pastemyst
            meta(name="title", content="pastemyst")
            meta(property="og:title", content="pastemyst")
            meta(property="twitter:title", content="pastemyst")

        meta(name="description", content="a powerful website for storing and sharing text and code snippets. completely free and open source.")

        meta(property="og:type", content="website")
        meta(property="og:url", content="https://paste.myst.rs/")
        meta(property="og:description", content="a powerful website for storing and sharing text and code snippets. completely free and open source.")

        meta(property="twitter:url", content="https://paste.myst.rs/")
        meta(property="twitter:description", content="a powerful website for storing and sharing text and code snippets. completely free and open source.")

        meta(charset="UTF-8")
        meta(name="viewport", content="width=device-width, initial-scale=1.0")
        meta(http-equiv="X-UA-Compatible", content="ie=edge")

        meta(name="theme-color", content="#ee720d")

        link(rel="shortcut icon", type="image/x-icon", href="/static/assets/icons/favicon.ico")

        link(rel="stylesheet", href="/static/style/main.css?v=#{getVersion()}")

        script.
            const theme = localStorage.getItem("theme");

            document.documentElement.classList = theme;

        script(type="module", src="/static/scripts/main.js?v=#{getVersion()}")

        - import pastemyst.data : config;

        |!= config.headHTML

        block head

    body
        #container
            include header

            block body

            include footer

        script(src="/static/scripts/libs/codemirror/codemirror.js?v=#{getVersion()}")
        script(src="/static/scripts/libs/codemirror/simple.js?v=#{getVersion()}")
        script(src="/static/scripts/libs/codemirror/overlay.js?v=#{getVersion()}")
        script(src="/static/scripts/libs/codemirror/multiplex.js?v=#{getVersion()}")

        block scripts
