html head title= site.title + (page.isCustom?(' - '+page.customPage.title):"") + (page.tag?' - '+_.capitalize(page.tag):'')+ (page.isIndex?' - Home':'') style(type="text/css") .posts-container{max-width:800px}.hidden{display:none !important}.gallery{display:flex;text-align:center;justify-content:space-between;align-content:space-between;flex-wrap:wrap}.gallery>*,.gallery *{flex:1 1 auto; width:100%;}body,html{overflow-x:hidden}.posts-container img,.posts-container video{width:100%;height:auto;} meta(name="description" content=site.description) body // navbar nav.navbar.navbar-expand-lg.navbar-dark.bg-primary a.navbar-brand(href="/") img.d-inline-block.align-top(src=site.avatar width="30" height="30" alt="site logo") |  #{site.title} a.navbar-brand(href="/atom/feed.xml") Atom Feed a.navbar-brand.hidden(href='/admin') Admin //main .main section.my-3 .container.posts-container .posts if page.isIndex .jumbotron.my-3 h1.title= site.title p.lead!= site.description if site.tags && !page.isCustom .post-like.my-3 section div div h4 Tags:  for tagInfo in site.tags a.btn(href="/tag/"+tagInfo.name class=(page.tag == tagInfo.name)?'btn-primary':'btn-secondary')= _.capitalize(tagInfo.name) |   .badge.badge-light= tagInfo.count |   if page.posts if page.posts.length == 0 .content.is-large p Sorry, this page doesn't have any posts yet :( each post in page.posts .post.my-3 section.card.h-entry if post.title || post.tags h4.card-header if post.title span= post.title if post.tags span.h6   for tag in post.tags a(href="/tag/"+tag).badge.badge-primary= _.capitalize(tag) |   .card-body.e-content .gallery each attachment in post.assets.filter(a=>!a.inline) a(href=attachment.href) span!= attachment.widget if post.caption br .content.is-size-5!= post.caption a(href=post.permalink).card-link Permalink a(href='/admin/#post/edit?id='+post.id).card-link.hidden Edit footer.card-footer.text-muted.dt-published #{post.englishDate} if page.tag && (!page.links || !page.links.nextPage) .post.my-3 .section.card p.card-body That's all for this tag. Back to all posts? if page.isCustom .post-like.my-3 .section.card .card-body .content!= page.customPage.content .hide-scroll // pagination .container.my-3 nav(aria-label="Page navigation") if page.number && page.links && (page.links.nextPage || page.links.previousPage) ul.pagination.justify-content-center if page.number >= 3 li.page-item a.page-link(href=page.links.firstPage).pagination-link= 1 if page.number >= 4 li.page-item.disabled a.page-link … if page.links.previousPage li.page-item a.page-link(href=page.links.previousPage).pagination-link= page.number-1 li.page-item.active a.page-link(href='#')= page.number if page.links.nextPage li.page-item a.page-link(href=page.links.nextPage)= page.number + 1 if page.number < site.pageCount - 2 li.page-item.disabled a.page-link … if page.number < site.pageCount - 1 li.page-item a.page-link(href=page.links.lastPage)= site.pageCount footer .container .content.text-center p All content © strong #{site.authorName} | #{new Date().getFullYear()}. p a(href="https://github.com/fenwick67/bumbler") Bumbler | flat CMS by b Drew Harwell // unhide stuff if user might be an admin script(type="text/javascript")!= "document.addEventListener('DOMContentLoaded',function(){if(!localStorage['admin']){return;}var els = document.querySelectorAll('.hidden'); if (!els){return}; for (var i = 0; i < els.length; i ++){els[i].classList.remove('hidden')}});"