Initial import
brought over all the files from the Jekyll version, fixed categories, reformatted for different markdown processor
This commit is contained in:
13
themes/mantraish/layout/_partial/footer.pug
Normal file
13
themes/mantraish/layout/_partial/footer.pug
Normal file
@@ -0,0 +1,13 @@
|
||||
footer#footer(role='contentinfo')
|
||||
#footer2
|
||||
#site-copyright.
|
||||
A production of #[a(href='//djs-consulting.com' title='Your Web Design and Application Solution Source') DJS Consulting]
|
||||
| Design Inspired by #[a(target='_blank' href='//www.cryoutcreations.eu' title='Mantra Theme by Cryout Creations') Mantra]
|
||||
div(style='text-align:center;clear:both;padding-top:4px;').
|
||||
#[a(href='/' title='DJS Consulting Tech Blog' rel='home') DJS Consulting Tech Blog] | Generated by
|
||||
#[a(href='//hexo.io' title='Hexo') Hexo] | Served by #[a(href='//nginx.com' title='nginx') nginx] | Secured by
|
||||
#[a(href='//letsencrypt.org') Let's Encrypt]
|
||||
#sfooter.socials
|
||||
a(target='_blank' rel='nofollow' href='/feed.xml' class='socialicons social-RSS' title='RSS'): img(alt='RSS' src='/img/social-rss.png')
|
||||
a(target='_blank' rel='nofollow' href='//twitter.com/DJS_Consulting' class='socialicons social-Twitter' title='Twitter'): img(alt='Twitter' src='/img/social-twitter.png')
|
||||
a(target='_blank' rel='nofollow' href='//www.facebook.com/pages/DJS-Consulting/262368048575' class='socialicons social-Facebook' title='Facebook'): img(alt='Facebook' src='/img/social-facebook.png')
|
||||
9
themes/mantraish/layout/_partial/head.pug
Normal file
9
themes/mantraish/layout/_partial/head.pug
Normal 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')
|
||||
16
themes/mantraish/layout/_partial/header.pug
Normal file
16
themes/mantraish/layout/_partial/header.pug
Normal file
@@ -0,0 +1,16 @@
|
||||
header#header
|
||||
#masthead
|
||||
#branding(role='banner')
|
||||
#header-container
|
||||
div(style='margin-top:0;')
|
||||
h1#site-title: a(href='/' title=site.title rel='home')= config.title
|
||||
#site-description= config.subtitle
|
||||
#sheader.socials
|
||||
a(target='_blank' rel='nofollow' href='/feed.xml' class='socialicons social-RSS' title='RSS'): img(alt='RSS' src='/img/social-rss.png')
|
||||
a(target='_blank' rel='nofollow' href='//twitter.com/DJS_Consulting' class='socialicons social-Twitter' title='Twitter'): img(alt='Twitter' src='/img/social-twitter.png')
|
||||
a(target='_blank' rel='nofollow' href='//www.facebook.com/pages/DJS-Consulting/262368048575' class='socialicons social-Facebook' title='Facebook'): img(alt='Facebook' src='/img/social-facebook.png')
|
||||
div(style='clear:both;')
|
||||
nav#access.jssafe(role='navigation')
|
||||
.skip-link.screen-reader-text: a(href='#content' title='Skip to content') Skip to content
|
||||
#prime_nav.menu: ul: li: a(href='/') Home
|
||||
div(style='clear:both;')
|
||||
7
themes/mantraish/layout/_partial/post-categories.pug
Normal file
7
themes/mantraish/layout/_partial/post-categories.pug
Normal 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)
|
||||
= ', '
|
||||
8
themes/mantraish/layout/_partial/post-tags.pug
Normal file
8
themes/mantraish/layout/_partial/post-tags.pug
Normal file
@@ -0,0 +1,8 @@
|
||||
- var it = post || page
|
||||
if it.tags && it.tags.length > 0
|
||||
= 'Tagged '
|
||||
- var tags = it.tags.toArray()
|
||||
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)
|
||||
= ', '
|
||||
5
themes/mantraish/layout/_partial/sidebar.pug
Normal file
5
themes/mantraish/layout/_partial/sidebar.pug
Normal file
@@ -0,0 +1,5 @@
|
||||
#primary.widget-area(role='complementary')
|
||||
ul.xoxo
|
||||
li.widget-container.widget_categories
|
||||
h3.widget-title Categories
|
||||
!= list_categories({ class: 'cat' })
|
||||
13
themes/mantraish/layout/base.pug
Normal file
13
themes/mantraish/layout/base.pug
Normal file
@@ -0,0 +1,13 @@
|
||||
doctype html
|
||||
html(lang=config.language)
|
||||
include _partial/head.pug
|
||||
body
|
||||
#toTop
|
||||
#wrapper.hfeed
|
||||
include _partial/header.pug
|
||||
#main
|
||||
#forbottom
|
||||
section#container
|
||||
#content(role='main'): block content
|
||||
include _partial/sidebar.pug
|
||||
include _partial/footer.pug
|
||||
65
themes/mantraish/layout/index.pug
Normal file
65
themes/mantraish/layout/index.pug
Normal file
@@ -0,0 +1,65 @@
|
||||
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
|
||||
for post in page.posts.toArray()
|
||||
article.post
|
||||
header.entry-header
|
||||
hgroup: h2.entry-title: a(href=url_for(post.path) title='Permalink to ' + post.title)!= post.title
|
||||
.entry-meta
|
||||
|
|
||||
span.author.vcard
|
||||
| By
|
||||
= post.author
|
||||
span.bl_sep |
|
||||
span.ondate
|
||||
span.entry-date.
|
||||
#[= post.date.format('MMMM D, YYYY')] at #[= post.date.format('h:mm a')]
|
||||
#[span.bl_sep |]
|
||||
span.bl_categ
|
||||
= ' '
|
||||
include _partial/post-categories.pug
|
||||
.entry-content!= post.content
|
||||
footer.entry-meta2
|
||||
span.bl_tagg
|
||||
include _partial/post-tags.pug
|
||||
br
|
||||
|
||||
#nav-below.navigation
|
||||
.nav-previous
|
||||
if page.prev
|
||||
a(href=url_for(page.prev_link))
|
||||
span.meta-nav «
|
||||
| Newer Posts
|
||||
.nav-next
|
||||
if page.next
|
||||
a(href=url_for(page.next_link))
|
||||
| Older Posts
|
||||
span.meta-nav »
|
||||
35
themes/mantraish/layout/post.pug
Normal file
35
themes/mantraish/layout/post.pug
Normal file
@@ -0,0 +1,35 @@
|
||||
extends base
|
||||
|
||||
block title
|
||||
= page.title
|
||||
!= ' « '
|
||||
= config.title
|
||||
|
||||
block content
|
||||
.post.single.hentry
|
||||
h1.entry-title= page.title
|
||||
.entry-meta
|
||||
|
|
||||
span.author.vcard.
|
||||
By #[= page.author] #[span.bl_sep= '| ']
|
||||
span.ondate: span.entry-date.
|
||||
#[= page.date.format('MMMM D, YYYY')] at #[= page.date.format('h:mm a')] #[span.bl_sep= '| ']
|
||||
span.bl_categ
|
||||
include _partial/post-categories.pug
|
||||
.entry-content!= page.content
|
||||
.entry-utility
|
||||
span.bl_posted
|
||||
include _partial/post-tags.pug
|
||||
if page.tags && page.tags.length > 0
|
||||
span.bl_sep= ' | '
|
||||
span.bl_bookmark.
|
||||
Bookmark the #[a(title='Permanent link to ' + page.title href=url_for(page.path) rel='bookmark') permalink].
|
||||
#nav-below.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).
|
||||
#[span.meta-nav «] #[= 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] #[span.meta-name »]
|
||||
Reference in New Issue
Block a user