Commit 5fbdf289 authored by jimakker's avatar jimakker

init

parents
.DS_Store
Thumbs.db
db.json
*.log
node_modules/
public/
.deploy*/
\ No newline at end of file
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: Hexo
subtitle: Another Hexo blog
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: 10
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:
{
"name": "hexo-site",
"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-renderer-ejs": "^0.2.0",
"hexo-renderer-jade": "^0.1.0",
"hexo-renderer-marked": "^0.2.10",
"hexo-renderer-sass": "^0.2.0",
"hexo-renderer-stylus": "^0.3.1",
"hexo-server": "^0.2.0"
}
}
---
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)
Copyright (c) 2015 tufu9441
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:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
# 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: 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: hackmildegia
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
reading_label: Beiträge in %s
blog: Blog
albums: Alben
categories: Kategorien
tags: Tags
archive: Archiv
links: Links
about: Über
recent: Letzte
next: Nächster
previous: Vorheriger
notitle: Kein Titel
blogroll: Blogroll
history: Chronik
rss: RSS
guestbook: Gästebuch
home: Start
recent_comments: Letzte Kommentare
Readmore: Mehr lesen
belongsto: kategorisiert in
contents: Inhalte
shareto: Aktie
reading_label: Reading articles in %s
blog: Blog
albums: Albums
categories: Categories
tags: Tags
archive: Archive
links: Links
about: About
recent: Recent
next: Next
previous: Previous
notitle: No Title
blogroll: Blogroll
history: History
rss: RSS
guestbook: Guestbook
home: Home
recent_comments: Recent Comments
Readmore: Read More
belongsto: Categorized in
contents: Contents
shareto: Share
reading_label: Leyendo artículos en %s
blog: Blog
albums: Álbums
categories: Categorías
tags: Etiquetas
archive: Archivo
links: Enlaces
about: Acerca de
recent: Recientes
next: Siguiente
previous: Anterior
notitle: Sin título
blogroll: Blogroll
history: Historial
rss: RSS
guestbook: Libro de visitas
home: Inicio
recent_comments: Comentarios recientes
Readmore: Leer más
belongsto: Guardado en
contents: Contenidos
shareto: Cuota
reading_label: "%s artikuluak irakurtzen"
blog: Bloga
albums: Albumak
categories: Kategoriak
tags: Etiketak
archive: Artxiboa
links: Estekak
about: Honi buruz
recent: Azkenak
next: Hurrengoa
previous: Aurrekoa
notitle: Izenburu gabea
blogroll: Blogroll
history: Historiala
rss: RSS
guestbook: Bisita liburua
home: Hasera
recent_comments: Azken iruzkinak
Readmore: Gehiago irakurri
belongsto: "Hemen gordea:"
contents: Edukia
shareto: Kuota
reading_label: Reading articles in %s
blog: Blog
albums: Albums
categories: Catégories
tags: Tags
archive: Archive
links: Liens
about: À propos
recent: Récent
next: Suivant
previous: Précdent
notitle: Sans titre
blogroll: À suivre
history: Historique
rss: RSS
guestbook: Livre d'or
home: Accueil
recent_comments: Commentaires récents
Readmore: Lire plus
belongsto: Catégorisé dans
contents: Contenus
shareto: Partager
reading_label: '%s 게시물 모음'
blog: 블로그
albums: 앨범
categories: 카테고리
tags: 태그
archive: 아카이브
links: 링크
about: 소개
recent: 과거
next: 다음
previous: 이전
notitle: 제목없음
blogroll: 블로그롤
history: 히스토리
rss: RSS
guestbook: 방명록
home:
recent_comments: 최근 댓글
Readmore: 더보기
belongsto: 분류됨
contents: 컨텐츠
shareto: 공유하기
reading_label: 正在查看 %s 下的文章
blog: 博客
albums: 相册
categories: 分类
tags: 标签
archive: 归档
links: 链接
about: 关于
recent: 最新文章
next: 下一页
previous: 上一页
notitle: 无题
blogroll: 友情链接
history: 历史
rss: 订阅
guestbook: 留言
home: 首页
recent_comments: 最近评论
Readmore: 阅读更多
belongsto: 分类于
contents: 文章目录
shareto: 分享到
reading_label: 正在查看 %s 下的文章
blog: 部落格
albums: 相簿
categories: 分類
tags: 標籤
archive: 所有文章
links: 連結
about: 關於
recent: 最新文章
next: 下一頁
previous: 上一頁
notitle: 無標題
blogroll: 友站連結
history: 歷史紀錄
rss: 訂閱
guestbook: 留言
home: 首頁
recent_comments: 最近評論
Readmore: 閱讀更多
belongsto: 分類於
contents: 文章目錄
shareto: 分享至
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)
if theme.duoshuo
.ds-thread(data-thread-key=page.path, data-title=page.title, data-url=page.permalink, data-author-key='1')
if theme.disqus
#disqus_thread
script.
var disqus_shortname = '#{theme.disqus}';
var disqus_identifier = '#{page.path}';
var disqus_title = '#{page.title}';
var disqus_url = '#{config.url}/#{page.path}';
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
script(id='dsq-count-scr', src='//#{theme.disqus}.disqus.com/count.js', async)
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>
mixin a_with_current(href, content, id)
- var url = url_for(href)
if (href == '.' && (is_home() || is_post())) || is_current(href)
a.header-tab.is-active(href=url)
i(class='fa' + ' ' + id, style="vertical-align: baseline;")
= ' ' + content
else if (href == 'archives/' && is_tag())
a.header-tab.is-active(href=url)
i(class='fa' + ' ' + id, style="vertical-align: baseline;")
= ' ' + content
else if (href == 'archives/' && is_category())
a.header-tab.is-active(href=url)
i(class='fa' + ' ' + id, style="vertical-align: baseline;")
= ' ' + content
else
a.header-tab(href=url)
i(class='fa' + ' ' + id, style="vertical-align: baseline;")
= ' ' + content
mixin title(page)
if page
if page.title
= page.title
else
= _p('no-title')
if page.next || page.prev
nav.page-navigator
!= paginator({prev_text: __('previous'), next_text: __('next')})
if page.next || page.prev
.post-nav
if page.prev
a.pre(href=url_for(page.prev_link ? page.prev_link : page.prev.path))= page.prev.title
if page.next
a.next(href=url_for(page.next_link ? page.next_link : page.next.path))= page.next.title
if page.tags
.tags
for tag in page.tags.toArray()
a(href=url_for(tag.path))= tag.name
a#rocket.show(href='#top')
script(type='text/javascript', src=url_for(theme.js) + '/totop.js' + '?v=' + theme.version, async)
.widget
.widget-title
i(class='fa fa-folder-o')= ' ' + __('categories')
!= list_categories({show_count: false})
.widget
.widget-title
i(class='fa fa-external-link')= ' ' + __('blogroll')
- for (var i in theme.links)
ul
a(href='#{theme.links[i].url}' title='#{theme.links[i].title}' target='_blank') #{theme.links[i].title}
if theme.duoshuo
.widget
.comments-title
i(class='fa fa-comment-o')= ' ' + __('recent_comments')
.ds-recent-comments(data-num-items='5' data-show-avatars='0' data-show-time='1' data-show-admin='0' data-excerpt-length='32' data-show-title='1')
if theme.disqus
.widget
.widget-title
i(class='fa fa-comment-o')= ' ' + __('recent_comments')
script(type='text/javascript', src='//#{theme.disqus}.disqus.com/recent_comments_widget.js?num_items=5&hide_avatars=1&avatar_size=32&excerpt_length=20&hide_mods=1')
.widget
.widget-title
i(class='fa fa-file-o')= ' ' + __('recent')
!= list_posts({amount: 10})
if theme.google_search == true
.widget
form(action='//www.google.com/search' method='get' accept-charset='utf-8' class='search-form' target='_blank')
input(type='text' name='q' maxlength='20' placeholder='Search')
input(type='hidden' name='sitesearch' value='#{config.url}')
if theme.baidu_search == true
.widget
form(action='//www.baidu.com/baidu' method='get' accept-charset='utf-8' class='search-form' target='_blank')
input(type='search' name='word' maxlength='20' placeholder='Search')
input(type='hidden' name='si' value='#{config.url}')
input(name='tn' type='hidden' value='bds')
input(name='cl' type='hidden' value='3')
input(name='ct' type='hidden' value='2097152')
input(name='s' type='hidden' value='on')
if theme.swiftype
.widget
input.st-default-search-input(placeholder='Search' type='text')
if theme.tinysou
.widget
form
input#ts-search-input(class='ts-search-input' placeholder='Search' type='text')
if theme.self_search == true
.widget
.search-form
input(id='local-search-input' placeholder='Search' type='text' name='q' results='0')
div#local-search-result
.widget
.widget-title
i(class='fa fa-star-o')= ' ' + __('tags')
.tagcloud
!= tagcloud({min_font: 15, max_font: 15, amount: 100, orderby: 'count'})
extends base
block title
if page.category
title= page.category + ' | ' + config.title
if page.tag
title= page.tag + ' | ' + config.title
if page.archive
title= __('archive') + ' | ' + config.title
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)
include _partial/paginator.jade
include _partial/helpers
if page.title
- var current_title = page.title
else
- var current_title = config.title
if config.feed
case config.feed.type
when 'rss2'
- var feed_type='application/rss+xml'
when 'atom'
default