Files
bitbadger.solutions-blog-theme/themes/bit-badger/layout/index.pug
Daniel J. Summers 3f67de9bfc Redesigned blog to mirror business site
- DJS Consulting becomes Bit Badger Solutions
- DJS Consulting Tech Blog becomes The Bit Badger Blog
2017-10-07 17:52:58 -05:00

54 lines
1.2 KiB
Plaintext

extends base
block title
if page.category
= page.category
!= ' « '
= config.title
else
if page.tag
!= '“'
= page.tag
!= '” Tag « '
= config.title
else
if config.subtitle
= config.title + ' | ' + config.subtitle
else
= config.title
block content
if page.tag || page.category
h1
if page.category
| Posts categorized “
= page.category
| ”
else
| Posts tagged “
= page.tag
| ”
hr.home-break
for post in page.posts.toArray()
article.auto
div
h1.home-title.
#[small.home-lead= post.date.format('MMMM D, YYYY')]#[br]
  #[a(href=url_for(post.path) title='Permalink to ' + post.title)!= post.title]
.entry-content!= post.content
small
= 'Categorized under '
include _partial/post-categories.pug
br
include _partial/post-tags.pug
br
hr.home-break
.bottom-nav(role='navigation')
.nav-previous
if page.prev
a(href=url_for(page.prev_link)) « Newer Posts
.nav-next
if page.next
a(href=url_for(page.next_link)) Older Posts »