_layout.pug 1.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
doctype html
html(lang=config.language)
  head
    != partial('./_partials/head/head.pug', null, { cache: theme.cache })
  body
    div#container.container
      header#header.header
        div.header-inner
          != partial('./_partials/header/header.pug', null, { cache: theme.cache })

      main#main.main
        div.main-inner
          div#content.content
14
            div.content-inner(class=`${is_home() ? 'content-home' : ''}`)
15 16
              block content

17 18 19
          if page.comments
            include ./_partials/widgets/comments.pug

20 21 22 23
          aside#sidebar.sidebar
            div.sidebar-inner
              != partial('./_partials/sidebar/sidebar.pug', null, { cache: theme.cache })

24 25
          div.clearfix

26 27 28 29
      footer#footer.footer
        div.footer-inner
          != partial('./_partials/footer/footer.pug', null, { cache: theme.cache })

30 31 32 33
      include ./_partials/widgets/loading-bar.pug

      if theme.back2top.enable
        include ./_partials/widgets/back2top.pug
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52

    //- include ../_components/search/index.pug

    //- include ../_scripts/vendors.pug
    //- include ../_third-party/search/index.pug

    //- if theme.pjax && theme.pjax.enable
    //-   include ../_third-party/pjax.pug

    //-   div#pjax-reload
    //-     include ../_third-party/math/index.pug
    //-     include ../_third-party/quicklink.pug
    //- else
    //-   include ../_third-party/math/index.pug
    //-   include ../_third-party/quicklink.pug

    //- include ../_third-party/comments/index.pug
    //- include ../_third-party/advertising/index.pug
    //- include ../_scripts/stun.pug