doctype html
html(lang='zh-CN')
    head
        meta(http-equiv='Content-Type', content='text/html; charset=utf-8')
        meta(charset='utf-8')
        meta(name='viewport', content='width=device-width, initial-scale=1.0')
        meta(name='keywords', content=`${keywords ? keywords : "blog,iBlog"}`)
        meta(name='description', content=`${description ? description : "iBlog"}`)
        link(href='/nodeModules/bootstrap/dist/css/bootstrap.min.css', rel='stylesheet')
        link(href=`${staticPrefix}/css/bootstrap-addon.css`, rel='stylesheet')
        link(href=`${staticPrefix}/css/home-loading.css`, rel='stylesheet')
        link(href=`${staticPrefix}/css/site.css`, rel='stylesheet')
        link(href='/nodeModules/@fortawesome/fontawesome-free/css/all.min.css', rel='stylesheet')
        link(href=`${staticPrefix}/css/share.css`, rel='stylesheet')
        link(href=`${staticPrefix}/css/animate-custom.css`, rel='stylesheet')
        title=title
    body.fuelux
        #home-loading.home-loading(style='display: none;')
            #loading-con.loading-con
                .loading-circle
                img#loadingImg(alt='loading', src=settings.LogoPath)
                p 正在预缓存数据...
        .navbar.navbar-default.navbar-fixed-top
            .container-fluid
                .navbar-header
                    button.navbar-toggle(type='button', data-toggle='collapse', data-target='.navbar-collapse')
                        span.icon-bar
                        span.icon-bar
                        span.icon-bar
                    a.navbar-brand(href='/')
                        img(src=settings.LogoPath)
                        =' '
                        span=settings.SiteName
                .navbar-collapse.collapse
                    ul.nav.navbar-nav.my-nav-pills.navbar-right
                        li.blog-nav
                            a(href='/blog')
                                i.fa.fa-pen-nib.fa-fw
                                |  #{__("layout.blog")}
                            .nav-line.animated.fadeInLeft
                        if(settings.ShowGuestbook === 'true')
                            li.guestbook-nav
                                a(href='/guestbook')
                                    i.fa.fa-comment-dots.fa-fw
                                    |  #{__("layout.message")}
                                .nav-line.animated.fadeInLeft
                        li.about-nav
                            a(href='/about')
                                i.fa.fa-user.fa-fw
                                |  #{__("layout.about")}
                            .nav-line.animated.fadeInLeft
                        li
                            a.locale-link(href=`/locale/${__("lang-code")}`)
                                i.fa.fa-language.fa-fw
                                |  #{__("language")}
        block content
        script(src=`${staticPrefix}/js/prehandler.js`, charset='utf-8')
        if(settings.EnableStatistics === 'true')
            // 百度统计代码
            script.
                var _hmt = _hmt || [];
                (function () {
                    var hm = document.createElement("script");
                    hm.src = '//hm.baidu.com/hm.js?#{settings.StatisticsId}';
                    var s = document.getElementsByTagName("script")[0];
                    s.parentNode.insertBefore(hm, s);
                })();
