<!DOCTYPE html>
<html lang="en">
    <head>
        <title>GoWiki | {{.Title}}</title>
        <link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" integrity="sha256-bgotk/IPq4Yvt6s8AQGPTM5ZjPjQ6rrBRa2EyxpnFSc="></link>
        <link rel="stylesheet" type="text/css" href="/bootstrap.css" media="screen" integrity="sha256-3YeveuySvBgp2GItUS8eV1R/9T1zcPMyvw22SyVf8qo="></link>
        <link rel="stylesheet" type="text/css" href="/custom.css" media="screen" integrity="sha256-D5AfVT38goWX4TtUsELUsg0GIJHPxVnYYnkUJWGrolI="></link>
        <meta name="theme-color" content="#375a7f">
        <meta name="description" content="{{.Title}}">
    </head>
    <body id="top">
        <div class="navbar navbar-expand fixed-top navbar-dark bg-primary">
            <div class="container">
                <a href="/" class="navbar-brand">GoWiki</a>
                <div class="collapse navbar-collapse">
                    {{template "menu" .}}
                </div>
            </div>
        </div>
        <div class="container">
            <div class="proper-content">
                {{if .Msg}}
                <div class="alert alert-danger msg">
                    <h4>Error!</h4>
                    <p>{{.Msg}}</p>
                </div>
                {{end}}
                {{template "body" .}}
            </div>
            <div class="push"></div>
            <footer>
                <div class="row">
                    <div class="col">
                        <ul class="list-unstyled">
                            <li class="float-md-right"><a href="#top">Back to top</a></li>
                            {{if .Login}}
                            <li><a href="/blacklist">Blacklist</a></li>
                            {{end}}
                        </ul>
                        <p>© GoWiki {{.Version}} Request: <strong>{{.Time}}</strong></p>
                    </div>
                </div>
            </footer>
        </div>
    </body>
</html>
