Redesigned blog to mirror business site

- DJS Consulting becomes Bit Badger Solutions
- DJS Consulting Tech Blog becomes The Bit Badger Blog
This commit is contained in:
Daniel J. Summers
2017-10-07 17:52:58 -05:00
parent 7690b4bfd2
commit 3f67de9bfc
78 changed files with 576 additions and 3279 deletions

View File

@@ -0,0 +1,9 @@
footer
span.
A production of #[a(href='https://bitbadger.solutions' title='Bit Badger Solutions') Bit Badger Solutions]
span.
Generated by #[a(href='//hexo.io' title='Hexo') Hexo]
span.
Served by #[a(href='//www.nginx.com' title='nginx') nginx]
span.
Secured by #[a(href='https://letsencrypt.org' title!='Let’s Encrypt') Let’s Encrypt]

View File

@@ -0,0 +1,9 @@
head
meta(charset='utf-8')
meta(http-equiv='X-UA-Compatible' content='IE=edge')
meta(name='viewport' content='width=device-width, initial-scale=1')
title: block title
link(rel='stylesheet' href='/style.css')
link(rel='canonical' href=config.url + url_for(page.path.replace('index.html', '')))
if is_home()
link(rel='alternate' type='application/rss+xml' title=config.title href=config.url + config.root + 'feed.xml')

View File

@@ -0,0 +1,17 @@
header
.header-logo
a(href='/')
img(src='/img/bitbadger.png'
alt='A cartoon badger looking at a computer screen, with his paw on a mouse'
title='Bit Badger Solutions')
.header-title: a(href='/') The Bit Badger Blog
.header-spacer  
.header-social
a(href='/feed.xml' title='Subscribe to The Bit Badger Blog via RSS')
img(src='/img/rss.png' alt='RSS')
|    
a(href='https://twitter.com/DJS_Consulting' title='DJS_Consulting on Twitter')
img(src='/img/twitter.png' alt='Twitter' )
|    
a(href='https://www.facebook.com/pages/DJS-Consulting/262368048575' title='DJS Consulting on Facebook')
img(src='/img/facebook.png' alt='Facebook')

View File

@@ -0,0 +1,7 @@
- var it = post || page
if it.categories && it.categories.length > 0
- var cats = it.categories.toArray()
for cat in cats
a(href=url_for(cat.path) title='Categorized under ' + cat.name rel='tag')= cat.name
if cats.indexOf(cat) < (cats.length - 1)
= ', '

View File

@@ -0,0 +1,9 @@
- var it = post || page
if it.tags && it.tags.length > 0
small
= 'Tagged '
- var tags = it.tags.toArray().sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0)
for tag in tags
a(href=url_for(tag.path) title='Posts tagged "' + tag.name + '"' rel='tag')= tag.name
if tags.indexOf(tag) < (tags.length - 1)
= ', '

View File

@@ -0,0 +1,7 @@
.blog-sidebar
div
.sidebar-head Linux Resources
ul: li: a(href='/linux') Browse Resources
div
.sidebar-head Categories
!= list_categories({ class: 'cat' })

View File

@@ -0,0 +1,9 @@
doctype html
html(lang=config.language)
include _partial/head.pug
body
include _partial/header.pug
.content-wrapper
#content(role='main'): block content
include _partial/sidebar.pug
include _partial/footer.pug

View File

@@ -0,0 +1,53 @@
extends base
block title
if page.category
= page.category
!= ' &laquo; '
= config.title
else
if page.tag
!= '&ldquo;'
= page.tag
!= '&rdquo; Tag &laquo; '
= 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 &ldquo;
= page.category
| &rdquo;
else
| Posts tagged &ldquo;
= page.tag
| &rdquo;
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]
&nbsp; #[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)) &laquo; Newer Posts
.nav-next
if page.next
a(href=url_for(page.next_link)) Older Posts &raquo;

View File

@@ -0,0 +1,11 @@
extends base
block title
= page.title
!= ' &laquo; '
= config.title
block content
article.auto
h1.entry-title= page.title
.entry-content!= page.content

View File

@@ -0,0 +1,32 @@
extends base
block title
= page.title
!= ' &laquo; '
= config.title
block content
article.auto
h1.entry-title= page.title
br
span.entry-meta
= 'Posted by ' + page.author + ' on ' + page.date.format('MMMM D, YYYY') + ' at '+ page.date.format('h:mm a')
br
= 'Categorized under '
include _partial/post-categories.pug
.entry-content!= page.content
.entry-footer
include _partial/post-tags.pug
if page.tags && page.tags.length > 0
small!= ' &bull; '
small.
Bookmark the #[a(title='Permanent link to ' + page.title href=url_for(page.path) rel='bookmark') permalink].
.bottom-nav(role='navigation')
.nav-previous
if page.prev
a(href=url_for(page.prev_link ? page.prev_link : page.prev.path) title='Previous Post - ' + page.prev.title).
&laquo; #[= page.prev.title]
.nav-next
if page.next
a(href=url_for(page.next_link ? page.next_link : page.next.path) title='Next Post - ' + page.next.title).
#[= page.next.title] &raquo;