Commit e5ea5a6b authored by jimakker's avatar jimakker

init

parent 848f2661
Pipeline #1215453 skipped
.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.deploy*/
\ No newline at end of file
pages:
script:
- bash deploy.sh
artifacts:
paths:
- public
only:
- page
Copyright (c) 2015 tufu9441
Copyright (c) 2016 jimakker @ BaibaLab
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
......
# BulmHex
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: BulmHex
subtitle: Hexo + Bulma = Awesome
description:
author: jimakker
language: en
timezone: Europe/Madrid
# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://flowr.baibalab.net
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace:
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
# Pagination
## Set per_page to 0 to disable pagination
per_page: 5
pagination_dir: page
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: flowr
# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
type:
fancybox: true ## If you want to use fancybox please set the value to true.
menu:
- page: Get started
directory: get-started/
icon: fa-magic
- page: Docs
directory: docs/
icon: fa-book
- page: blog
directory: archives/
icon: fa-newspaper-o
- page: about
directory: about/
icon: fa-info
# - page: rss
# directory: atom.xml
# icon: fa-rss
widgets: ## Six widgets in sidebar provided: search, category, tag, recent_posts, rencent_comments and links.
- recent_posts
- category
- tag
- links
links:
- title: HACKmildegia
url: http://hackmildegia.net
- title: BaibaLab
url: http://baibalab.net/
hero:
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
css: css
# Theme version
version: 0.0.0
#!/bin/bash
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash
source ~/.nvm/nvm.sh
nvm install
nvm use
npm install hexo-cli -g
npm install
hexo generate
......@@ -7,7 +7,7 @@ footer.footer
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>.
| is licensed <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/">by-nc-sa</a>.
p
|<a class="icon" href="https://gitlab.com/baibalab/bulmhex">
| <i class="fa fa-code"></i>
......
......@@ -24,7 +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', href='/css/font-awesome.min.css')
link(rel='stylesheet', href=url_for(theme.css) + '/font-awesome.min.css')
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'))
......@@ -56,7 +56,7 @@ html(lang='#{config.language}')
section.section
.container
.columns
if(is_archive() || is_post())
if(is_archive() || is_post() || is_tag() || is_category())
.column.is-quarter
#sidebar
each item in theme.widgets
......
{
"name": "hexo-site",
"name": "BulmHex",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.2.0"
},
"dependencies": {
"hexo": "^3.2.0",
"hexo-generator-archive": "^0.1.4",
"hexo-generator-category": "^0.1.3",
"hexo-generator-feed": "^0.2.0",
"hexo-generator-index": "^0.2.0",
"hexo-generator-tag": "^0.2.0",
"hexo-pagination": "0.0.2",
"hexo-renderer-jade": "^0.1.0",
"hexo-renderer-marked": "^0.2.10",
"hexo-renderer-sass": "^0.2.0",
"hexo-server": "^0.2.0"
"bulma": "0.0.17"
}
}
---
title: {{ title }}
tags:
---
---
title: {{ title }}
date: {{ date }}
---
---
title: {{ title }}
date: {{ date }}
tags:
---
---
title: Hello World
---
Welcome to [Hexo](https://hexo.io/)! This is your very first post. Check [documentation](https://hexo.io/docs/) for more info. If you get any problems when using Hexo, you can find the answer in [troubleshooting](https://hexo.io/docs/troubleshooting.html) or you can ask me on [GitHub](https://github.com/hexojs/hexo/issues).
## Quick Start
### Create a new post
``` bash
$ hexo new "My New Post"
```
More info: [Writing](https://hexo.io/docs/writing.html)
### Run server
``` bash
$ hexo server
```
More info: [Server](https://hexo.io/docs/server.html)
### Generate static files
``` bash
$ hexo generate
```
More info: [Generating](https://hexo.io/docs/generating.html)
### Deploy to remote sites
``` bash
$ hexo deploy
```
More info: [Deployment](https://hexo.io/docs/deployment.html)
---
title: About
---
Something about this...
**BulmHex** by [BaibaLab](http://baibalab.net). The source code is licensed [MIT](http://opensource.org/licenses/mit-license.php). The website content is licensed [CC ANS 4.0](http://creativecommons.org/licenses/by-nc-sa/4.0/).
[{% icon code %}](https://gitlab.net/baibalab/bulmex)
___
{% columns %}
{% column is-third %}
{% message "Bulma CSS Framework" is-success %}
[Bulma](http://bulma.io/) is a modern CSS framework based on Flexbox.
{% icon paint-brush %} Customize colors and other theme features via [variables](http://bulma.io/documentation/overview/variables/) in `source/css/style.sass`
{% icon code %} Ready to use template **tags**. Create awesome content using Bulma [elements](http://bulma.io/documentation/elements/buttons/), [components](http://bulma.io/documentation/components/tabs/) and even the [grid](http://bulma.io/documentation/grid/)!
{% endmessage %}
{% endcolumn %}
{% column %}
{% notification is-danger %}
{% icon expand %} Configurable **hero** block. It's showtime! And, oh... it's just another *markdown* page!
{% endnotification %}{% notification is-warning %}
{% icon bars %} Create nice menus in documents/pages.
{% endnotification %}{% notification is-success %}
{% icon plus %} Many more to come! Let's build something amazing with Hexo and Bulma!
{% endnotification %}
{% columns %}
{% column is-third %}{% ibutton "Get started" '/docs' arrow-right 'is-large is-fullwidth' %}{% endcolumn %}
{% column is-third %}{% ibutton "Read the docs" '/docs' 'book' 'is-large is-fullwidth' %}{% endcolumn %}
{% column is-third %}{% ibutton "Get the code" 'https://gitlab.com' code 'is-large is-fullwidth' %}{% endcolumn %}
{% endcolumns %}
{% endcolumn %}
{% endcolumns %}
@import "../../node_modules/bulma/bulma";
.pagination li {
list-style:none;
}
.menu {
margin-bottom: 20px;
}
---
title: Documentation
menu:
- title: Hero block
id: Hero-block
- title: Footer
id: Footer
- title: Page menu
id: Page-menu
- title: Template tags
id: Template-tags
submenu:
- title: Columns
id: Columns
- title: Notifications
id: Notification
- title: Icons
id: Icons
- title: Title
id: Title
- title: Messages
id: Messages
- title: Buttons
id: Buttons
---
BulmHex Documentation. Wat
## Hero block
```
hero:
title: BulmHex
subtitle: Hexo + Bulma = Awesome!
class:
- is-info
content: blocks/hero.md
```
## Footer
```
footer:
class:
- is-text-centered
content: blocks/footer.md
```
## Page menu
You can add menus in pages. `id` is the HTML tag id you want to jump to. Add this in [front matter](https://hexo.io/docs/front-matter.html):
```
menu:
- title: First item
id: First-item
- title: Item with submenu
id: Item-with-submenu
submenu:
- title: Sub-item
id: Sub-item
```
## Template tags
There are various **tags** available that you can use them directly in your *markdown*!
### Columns
```
{% columns %}
{% column is-third %} 1/3 {% endcolumn %}
{% column %} 2/3 (auto) {% endcolumn %}
{% endcolumns %}
```
{% columns %}
{% column is-third %}
{% notification is-success %} 1/3 {% endnotification %} {% endcolumn %}
{% column %}
{% notification is-danger %} 2/3 (auto) {% endnotification %} {% endcolumn %}
{% endcolumns %}
### Notifications
```
{% notification is-success %} I'm successful {% endnotification %}
{% notification is-danger %} I'm dangerous {% endnotification %}
```
{% notification is-success %} I'm successful {% endnotification %}
{% notification is-danger %} I'm dangerous {% endnotification %}
### Icons
```
{% icon home is-large %}
```
{% icon home is-large %}
### Title
```
{% title "This is the title content" is-1 %}
{% subtitle "This is the title content" is-3 %}
```
{% title "This is the title content" is-2 %}
{% subtitle "This is the subtitle content" is-4 %}
### Messages
```
{% message "Yeah!" is-success %}
A successful message!
{% endmessage %}
```
{% message "Yeah!" is-success %}
A successful message!
{% endmessage %}
## Buttons
```
{% button "Large warning button" "/docs" 'is-large is-warning' %}
```
{% button "Large warning button" "/docs" 'is-large is-warning' %}
### With icon
```
{% button "Large warning button" "/docs" 'is-large is-warning' %}
```
{% ibutton "Outlined danger button with icon" "/docs" book 'is-outlined is-danger' %}
# Maupassant
[![Build Status](https://travis-ci.org/tufu9441/maupassant-hexo.svg?branch=master)](https://travis-ci.org/tufu9441/maupassant-hexo) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/tufu9441/maupassant-hexo/blob/master/LICENSE)
> 大道至简
[Preview](https://www.haomwei.com)[中文文档](https://www.haomwei.com/technology/maupassant-hexo.html)
A simple Hexo template with great performance on different devices, ported from a Typecho theme by [Cho](https://github.com/pagecho/maupassant/), forked and modified from [icylogic](https://github.com/icylogic/maupassant-hexo/).
![template preview](http://ooo.0o0.ooo/2015/10/24/562b5be12177e.jpg
"Maupassant template preview")
## Installation
Install theme and renderers:
```shell
$ git clone https://github.com/tufu9441/maupassant-hexo.git themes/maupassant
$ npm install hexo-renderer-jade --save
$ npm install hexo-renderer-sass --save
```
Then change your `theme` setting in `_config.yml` to `maupassant`.
## Configuration
Default config:
```YAML
fancybox: true ## If you want to use fancybox please set the value to true.
duoshuo: ## Your duoshuo_shortname, e.g. username
disqus: ## Your disqus_shortname, e.g. username
google_search: true ## Use Google search, true/false.
baidu_search: ## Use Baidu search, true/false.
swiftype: ## Your swiftype_key, e.g. m7b11ZrsT8Me7gzApciT
tinysou: ## Your tinysou_key, e.g. 4ac092ad8d749fdc6293
self_search: ## Use a jQuery-based local search engine, true/false.
google_analytics: ## Your Google Analytics tracking id, e.g. UA-42425684-2
baidu_analytics: ## Your Baidu Analytics tracking id, e.g. 8006843039519956000
shareto: true ## If you want to use the share button please set the value to true.
busuanzi: true ## If you want to use Busuanzi page views please set the value to true.
menu:
- page: home
directory: .
icon: fa-home
- page: archive
directory: archives/
icon: fa-archive
- page: about
directory: about/
icon: fa-user
- page: rss
directory: atom.xml
icon: fa-rss
widgets: ## Six widgets in sidebar provided: search, category, tag, recent_posts, rencent_comments and links.
- search
- category
- tag
- recent_posts
- recent_comments
- links
links:
- title: site-name1
url: http://www.example1.com/
- title: site-name2
url: http://www.example2.com/
- title: site-name3
url: http://www.example3.com/
# Static files
js: js
css: css
# Theme version
version: 0.0.0
```
- fancybox - Enable [Fancybox](http://fancyapps.com/fancybox/)
- duoshuo - [Duoshuo](http://duoshuo.com) shortname
- disqus - [Disqus](https://disqus.com) shortname
- google_search - Default search engine
- baidu_search - Search engine for users in China
- swiftype - [Swiftype Search](https://swiftype.com) key
- tinysou - [Tiny Search](http://tinysou.com) key
- self_search - A jQuery-based [local search engine](http://hahack.com/codes/local-search-engine-for-hexo), with the dependency on the plugin [hexo-generator-search](https://github.com/PaicHyperionDev/hexo-generator-search).
- google_analytics - [Google Analytics](https://www.google.com/analytics/) tracking id
- baidu_analytics - [Baidu Analytics](http://tongji.baidu.com) tracking id
- shareto - Enable share button
- busuanzi - Enable [Busuanzi](http://busuanzi.ibruce.info) page views
- menu - Customize your menu of pages here, just follow the format of existied items. Don't forget to create corresponding folders inlcuding `index.md` in `source` folder to ensure the pages will correctly display. [FontAwesome](http://fontawesome.io) icon fonts have been integrated, and you can choose other icons you like [here](http://fontawesome.io/icons/) and use them according to the instruction.
- widgets - Choose and arrange the widgets in sidebar here.
- links - Edit your blogroll here.
- Static files - Static files directory, for convenience of CDN usage.
- Theme version - For automatic refresh of static files on CDN.
## Features
#### Logo
You can set a **favicon.ico** for your website, please put it into `source` folder of hexo directory, recommended size: 32px*32px.
You can add a website logo for apple devices, please put an image named **apple-touch-icon.png** into `source` folder of hexo directory, recommended size: 114px*114px.
#### Abstract
You can control the abstract of a post shown at index, by either filling a `description:` item in `front-matter` of the `post.md`, or just inserting a `<!--more-->` before your hidden content.
#### Table of Contents
TOC in a post can be enabled by adding a `toc: true` item in `front-matter`.
#### Comments
Comment feature of each post and page can be enabled (default) and disabled by adding a `comments: true` or a `comments: false` in `front-matter`. This could be useful when you want comment feature for a guestbook page, but don't want comment feature for a about page.
#### Syntax Highlighting
Highlighted code showcase is supported, please set the `highlight` option in `_config.yml` of hexo directory like this:
```YAML
highlight:
enable: true
auto_detect: true
line_number: true
tab_replace:
```
#### Languages
Seven languages are available for this theme currently: Simplified Chinese (zh-CN), Traditional Chinese (zh-TW), English (en), French (fr-FR), German (de-DE), Korean (ko) and Spanish (es-ES). Contributions of translating to other languages will be highly appreciated.
## Solutions
- Check whether your Terminal's current directory is in hexo's root directory which contains `source/`, `themes/`, etc.
- If you have any trouble in using this theme, please feel free to open an [issue](https://github.com/tufu9441/maupassant-hexo/issues).
## Contributing
All kinds of contributions (enhancements, new features, documentation & code improvements, issues & bugs reporting) are welcome.
Looking forward to your pull request.
## Acknowledgements
Thank [JamesPan](http://blog.jamespan.me) for his help to improve this theme
.
## Maupassant on other platforms:
+ Typecho:https://github.com/pagecho/maupassant/
+ Octopress:https://github.com/pagecho/mewpassant/
+ Farbox:https://github.com/pagecho/Maupassant-farbox/
+ Wordpress:https://github.com/iMuFeng/maupassant/
+ Ghost: https://github.com/LjxPrime/maupassant/
fancybox: true ## If you want to use fancybox please set the value to true.
menu:
- page: Docs
directory: docs/
icon: fa-book
- page: blog
directory: archives/
icon: fa-newspaper-o
- page: about
directory: about/
icon: fa-info
- page: rss
directory: atom.xml
icon: fa-rss
widgets: ## Six widgets in sidebar provided: search, category, tag, recent_posts, rencent_comments and links.
- recent_posts
- category
- tag
- links
links:
- title: HACKmildegia
url: http://hackmildegia.net
- title: BaibaLab
url: http://baibalab.net/
hero:
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
css: css
# Theme version
version: 0.0.0
script(type='text/javascript', src=url_for(theme.js) + '/codeblock-resizer.js' + '?v=' + theme.version)
script(type='text/javascript', src=url_for(theme.js) + '/smartresize.js' + '?v=' + theme.version)
{
"name": "bulbalab",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.1.1"
},
"dependencies": {
"bulma": "0.0.17"
}
}
/*! fancyBox v2.1.5 fancyapps.com | fancyapps.com/fancybox/#license */
.fancybox-wrap,
.fancybox-skin,
.fancybox-outer,
.fancybox-inner,
.fancybox-image,
.fancybox-wrap iframe,
.fancybox-wrap object,
.fancybox-nav,
.fancybox-nav span,
.fancybox-tmp
{
padding: 0;
margin: 0;
border: 0;
outline: none;
vertical-align: top;
}
.fancybox-wrap {
position: absolute;