Commit 6dc91ae9 authored by jimakker's avatar jimakker

tweaks

parent 2ba67f35
......@@ -27,8 +27,16 @@ links:
url: http://baibalab.net/
hero:
class: is-info
content: homepage/homepage.md
title: BulmHex
subtitle: Hexo + Bulma = Awesome!
class:
- is-info
content: blocks/homepage.md
footer:
class:
- is-text-centered
content: blocks/footer.md
# Static files
js: js
......
footer.footer
.container
.content.is-text-centered
p
| <strong>Bulma</strong> by <a href="http://jgthms.com">Jeremy Thomas</a>. The source code is licensed
| <a href="http://opensource.org/licenses/mit-license.php">MIT</a>. The website content
| is licensed <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/">CC ANS 4.0</a>.
p
|<a class="icon" href="https://github.com/jgthms/bulma">
| <i class="fa fa-github"></i>
|</a>
.content(class=[theme.footer.class])
if(theme.footer.content)
!= renderPage(theme.footer.content)
else
p
| <strong>BulmHex</strong> by <a href="http://baibalab.net">BaibaLab</a>. The source code is licensed
| <a href="http://opensource.org/licenses/mit-license.php">MIT</a>. The website content
| is licensed <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/">CC ANS 4.0</a>.
p
|<a class="icon" href="https://gitlab.com/baibalab/bulmhex">
| <i class="fa fa-code"></i>
|</a>
......@@ -12,14 +12,29 @@ block content
if page.category || page.tag
h1.label-title= __('reading_label', page.category || page.tag)
.post
.post-archive
//Use lodash to classify posts. See https://lodash.com/docs#groupBy
each posts, year in _.groupBy(page.posts.toArray(), function(p){return -p.date.format('YYYY')})
h2= -year
ul.listing
for post in posts
li
span.date= post.date.format('YYYY/MM/DD')
a(href=url_for(post.path), title=post.title)
+title(post)
for post in page.posts.toArray()
section.section
.container
.heading
h1.title
include _partial/helpers
a(href=url_for(post.path))
+title(post)
small= ' '+post.date.format(config.date_format)
if post.description
.post-content
!= post.description
else if post.excerpt
.post-content
!= post.excerpt
else if post.content
- var br = post.content.indexOf('\n')
if br < 0
.post-content
!= post.content
else
.post-content
!= post.content.substring(0, br)
p(class='readmore')
a.button.is-pulled-right(href=url_for(post.path))= __('Readmore')
include _partial/paginator.jade
......@@ -24,11 +24,7 @@ html(lang='#{config.language}')
meta(name='description', content=config.description)
block title
link(rel='stylesheet', type='text/css', href=url_for(theme.css) + '/style.css' + '?v=' + theme.version)
link(rel='stylesheet', type='text/css', href='/css/normalize.min.css')
link(rel='stylesheet', type='text/css', href='/css/pure-min.css')
link(rel='stylesheet', type='text/css', href='/css/grids-responsive-min.css')
link(rel='stylesheet', href='/css/font-awesome.min.css')
script(type='text/javascript', src='/js/jquery.min.js')
link(rel='Shortcut Icon', type='image/x-icon', href=url_for('favicon.ico'))
link(rel='apple-touch-icon', href=url_for('apple-touch-icon.png'))
link(rel='apple-touch-icon-precomposed', href=url_for('apple-touch-icon.png'))
......@@ -46,20 +42,19 @@ html(lang='#{config.language}')
+a_with_current(theme.menu[i].directory, __(theme.menu[i].page), theme.menu[i].icon)
if(is_home() && theme.hero)
section.hero.is-medium.is-left(class=[theme.hero.class])
section.hero(class=[theme.hero.class])
.hero-content
.container
!= renderPage(theme.hero.content)
if(theme.hero.title)
h1.title.is-1= theme.hero.title
if(theme.hero.subtitle)
h2.subtitle.is-3= theme.hero.subtitle
if(theme.hero.content)
!= renderPage(theme.hero.content)
section.section
.container
//- if(!is_home())
//- .heading
//- h1.title Section
//- h2.subtitle
//- | A simple container to divide your page into <strong>sections</strong>, like the one you're currently reading
//- hr
.columns
if(is_archive() || is_post())
.column.is-quarter
......@@ -69,6 +64,3 @@ html(lang='#{config.language}')
.column
block content
include _partial/footer
//- include _partial/totop
//- include _partial/after_footer
......@@ -6,12 +6,14 @@ block title
block content
.content
for post in page.posts.toArray()
.post
h2.post-title
include _partial/helpers
a(href=url_for(post.path))
+title(post)
.post-meta= post.date.format(config.date_format)
section.section
.container
.heading
h1.title
include _partial/helpers
a(href=url_for(post.path))
+title(post)
small= ' '+post.date.format(config.date_format)
if post.description
.post-content
!= post.description
......@@ -27,6 +29,6 @@ block content
.post-content
!= post.content.substring(0, br)
p(class='readmore')
a(href=url_for(post.path))= __('Readmore')
a.button.is-pulled-right(href=url_for(post.path))= __('Readmore')
include _partial/paginator
......@@ -6,16 +6,16 @@ block content
if(page.menu)
.column.is-quarter
aside.menu
p.menu-label Menu
p.menu-label= page.title
ul.menu-list
- for (var i in page.menu)
li
a(href='#{page.menu[i].url}' title='#{page.menu[i].title}') #{page.menu[i].title}
a(href='##{page.menu[i].id}' title='#{page.menu[i].title}') #{page.menu[i].title}
if(page.menu[i].submenu)
ul
- for (var j in page.menu[i].submenu)
li
a(href='#{page.menu[i].submenu[j].url}' title='#{page.menu[i].submenu[j].title}') #{page.menu[i].submenu[j].title}
a(href='##{page.menu[i].submenu[j].id}' title='#{page.menu[i].submenu[j].title}') #{page.menu[i].submenu[j].title}
.column
.content
......
......@@ -13,7 +13,7 @@ block content
a(href=url_for(category.path))= category.name
if(key < page.categories.length-1 )
!= ' > '
if page.tags
if page.tags.length>0
span= ' | ' + __('tags') + ': '
for tag, key in page.tags.toArray()
a(href=url_for(tag.path))= tag.name
......
var hexo = hexo || {};
function button(args){
var buttonClasses = args[1] || '';
var text = '<a class="button '+ buttonClasses +'">' +
var buttonClasses = args[2] || '';
var text = '<a href="'+args[1]+'" class="button '+ buttonClasses +'">' +
args[0] +
'</a>';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment