extends layout.pug block content div.row div.col-lg-3.col-md-4 ul.nav.nav-pills.nav-stacked block menu mixin menu(...items) - const pad_zero = n => n < 10 ? '0' + n : n; each item in items if typeof item.link == 'undefined' - item.link = item.name.toLowerCase().replace(/\W/g, '-') unless typeof item.year == 'undefined' || typeof item.month == 'undefined' || typeof item.day == 'undefined' - item.link = item.year + '-' + pad_zero(item.month) + '-' + pad_zero(item.day) + '-' + item.link li(role='presentation', class=(page == item.link) ? 'active' : '') a(href=base_url + (item.link == '' ? '' : item.link + '.html'))= item.name div.col-lg-7.col-md-6 h3 block subtitle |   small block subtitleDate div.col-lg-2.col-md-2.text-right block subtitle-right div.col-lg-9.col-md-8.text-justify.markdown block page