- var pageTitle = page.title || config.subtitle || '' - if (is_archive()) pageTitle = 'Archives' - if (is_tag()) pageTitle = 'Tag: ' + page.tag - if (is_category()) pageTitle = 'Category: ' + page.category - if (is_month()) pageTitle += ': ' + page.month + '/' + page.year - if (is_year()) pageTitle += ': ' + page.year - pageTitle += ' [ ' + config.title + ' ]' doctype html html(lang=config.language) head meta(charset='UTF-8') title= pageTitle //- script(src="/js/lazysizes.min.js") if theme.stylesheets !== undefined && theme.stylesheets.length > 0 //- stylesheets list from _config.yml each url in theme.stylesheets link(rel='stylesheet', href=url) if is_post() || is_page() link(rel="stylesheet", href="/css/highlight.css") body #container.container header#header.header include ./_partials/header.pug .bottom-declaration .bottom-declaration-line .bottom-declaration-dotted main#main.main #content.content block content footer#footer.footer include ./_partials/footer.pug .bottom-declaration .bottom-declaration-line .bottom-declaration-dotted //- 这段script一定要放在body结束前,否则lazyload不生效 script(src="/js/lazyload.min.js") script. window.lazyLoad = new LazyLoad({ elements_selector: 'img', threshold: 0 });