Skip to content

Commit

Permalink
blog
Browse files Browse the repository at this point in the history
  • Loading branch information
HuijunXue committed Jan 7, 2019
1 parent b1d5d84 commit ed00305
Show file tree
Hide file tree
Showing 132 changed files with 8,617 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
_site/*
_theme_packages/*

Thumbs.db
.DS_Store

!.gitkeep

.rbenv-version
.rvmrc

*.lock
12 changes: 12 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---

---
<html>
<head>
<meta charset="UTF-8">
<title>{{ site.title }} | 404</title>
</head>
<body>
<script type="text/javascript" src="http://www.qq.com/404/search_children.js" charset="utf-8"></script>
</body>
</html>
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source 'https://rubygems.org'
gem 'github-pages', group: :jekyll_plugins
#gem 'jekyll-admin', group: :jekyll_plugins
84 changes: 84 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Jekyll-Jacman

**中文 | [English](/README_en.md)**

Jekyll-Jacman 是为 [Jekyll](http://jekyllrb.com) 设计的一款清新且具有响应式的主题,拥有更丰富的特性并支持了很多的国内服务。Jacman 始于 [Hexo Jacman](https://github.com/wuchong/jacman) 移植而来。

* [主题演示](http://simpleyyt.github.io/jekyll-jacman/)
* [如何使用 Jacman 主题](http://simpleyyt.github.io/jekyll-jacman/jekyll/2015/09/20/how-to-use-jacman)

## 本地搭建

确保已安装`Ruby 2.1.0` 或更高版本:

```sh
ruby --version
```

安装`Bundler`

```sh
gem install bundler
```

下载 Jacman 主题:

```sh
git clone https://github.com/Simpleyyt/jekyll-jacman.git
cd jekyll-jacman
```

安装依赖:

```sh
bundle install
```

运行 Jekyll:

```sh
bundle exec jekyll server
```

更多细节可以参考:[Setting up your GitHub Pages site locally with Jekyll](https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/)

## 功能

- **菜单 menu**
主导航菜单
- **控件 widget**
侧边栏的控件。包括:Github 名片 、分类、标签、RSS、友情链接、微博秀。
- **图片相关 Image**
设置网站图标、网站logo、作者头像、博客顶部大图等。还提供了多种图片样式`img-logo`,`img-topic`,`img-center`等。
- **首页模式 index**
主题提供了两种首页展示模式。
- **作者 author**
作者信息,主要用于展示网站右下角的社交网络链接。包括:微博、豆瓣、知乎、邮箱、GitHub、StackOverflow、Twitter、Facebook、Linkedin、Google+。
- **目录 toc**
在文章中和侧边栏可以显示目录。
- **评论 comments**
支持 [多说](http://duoshuo.com/) & [disqus](https://disqus.com/) 评论。
- **分享 jiathis**
启用 内建分享工具 或 [加网](http://www.jiathis.com/) 分享系统。
- **网站统计 Analytiscs**
支持 [谷歌统计](http://www.google.com/analytics/) & [百度统计](http://tongji.baidu.com/) & [CNZZ站长统计](http://www.cnzz.com/)
- **Search**
支持 [谷歌自定义搜索](https://www.google.com/cse/ ) & [百度站内搜索](http://zn.baidu.com/) &[微搜索](http://tinysou.com/)。 &[Simple Jekyll Search](https://github.com/christian-fei/Simple-Jekyll-Search)
- **totop**
回到顶部。
- **rss**
RSS 订阅链接。
- **fancybox**
图片查看的 [Fancybox](http://fancyapps.com/fancybox/) 工具。
- **其他**
你可以设置侧边栏在博文页面中不显示。

## 协议

[MIT](/LICENSE)

## 捐赠

支付宝捐赠链接还是要有的,万一真的有人捐呢。

![支付宝扫码捐赠](http://p1.bpimg.com/567571/9a4a158daee8aa69.png)
82 changes: 82 additions & 0 deletions README_en.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Jacman

**[中文](/README.md) | English**

Jacman is a fresh looking and responsive theme for [Jekyll](http://jekyllrb.com) with more features and some build-in Chinese service based on [Hexo Jacman](https://github.com/wuchong/jacman).

* [Demo](http://simpleyyt.github.io/jekyll-jacman/)
* [如何使用 Jacman 主题](http://simpleyyt.github.io/jekyll-jacman/jekyll/2015/09/20/how-to-use-jacman)

## Local Setup

Check whether you have `Ruby 2.1.0` or higher installed:

```sh
ruby --version
```

Install `Bundler`:

```sh
gem install bundler
```

Clone Jacman theme:

```sh
git clone https://github.com/Simpleyyt/jekyll-jacman.git
cd jekyll-jacman
```

You can change the `language` setting to `en` in `_config.yml`.

You can also disable share buttons by setting `share_to` to `false`.

Install Jekyll and other dependencies from the GitHub Pages gem:

```sh
bundle install
```

Run your Jekyll site locally:

```sh
bundle exec jekyll server
```

More Details:[Setting up your GitHub Pages site locally with Jekyll](https://help.github.com/articles/setting-up-your-github-pages-site-locally-with-jekyll/)

## Features

- **menu**
Main navigation menu.
- **widget**
Widgets displaying in sidebar.The github card, category,tag,rss,archive,tagcloud,links,weibo are supported.
- **Image**
Images about favicon, site logo, author image, banner image. Support different image styles like `img-logo`,`img-topic`,`img-center` etc.
- **index**
Two different home page display modes.You can visit [Demo](http://jacman.wuchong.me) to check the difference.
- **author**
Author imformation, used to show your social network links on the bottom right. Including github, stackoverflow, twitter, facebook, linkedin, google+, weibo, douban, zhihu, email.
- **toc**
Show Table Of Contents in article & aside.
- **comments**
[duoshuo](http://duoshuo.com/) & [disqus](https://disqus.com/) are supported.
- **jiathis**
Build-in share tool or [JiaThis](http://www.jiathis.com/) share buttons at the bottom of articles.
- **Analytiscs**
[Google analytics](http://www.google.com/analytics/) & [Baidu tongji](http://tongji.baidu.com/) & [CNZZ tongji](http://www.cnzz.com/) are all supported.
- **Search**
[Googlle Custom Search](https://www.google.com/cse/ ) & [Baidu Site Search](http://zn.baidu.com/) & [Tiny Search](http://tinysou.com/) are supported.
- **totop**
Scroll to top
- **rss**
RSS subscription link (change if using Feedburner).
- **fancybox**
Enable [Fancybox](http://fancyapps.com/fancybox/)
- **others**
You can configure sidebar not show in post pages.

## License

[MIT](/LICENSE)
171 changes: 170 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,170 @@
theme: jekyll-theme-architect
#### Exclude
exclude: [".rvmrc", ".rbenv-version", "README.md", "README_en.md", "Rakefile", "changelog.md"]

#### Code Highlighter
# 'pygments' is unsupported on GitHub Pages now.
highlighter: rouge

#### Permalink
# For more see: http://jekyllrb.com/docs/permalinks/
permalink: pretty

#### Markdown Processors
# 'redcarpet' is unsupported on GitHub Pages now.
markdown: kramdown
kramdown:
input: GFM

#### Default Attributes
defaults:
-
scope:
path: ""
type: "posts"
values:
layout: "post"

#### Pagination
paginate: 20

#### Site
title : Jekyll Jacman
tagline: A fresh looking and responsive theme for Jekyll
assets: /assets
url:
baseurl:

#### Language
language: zh-CN ## blog site languages: en, zh-CN, zh-TW, de

#### Menu
menu:
Home: /
Archives: /archives
About: /about
## you can create `tags` and `categories` folders (I had created them already).
## And create a `index.md` file in each of them.
## set `front-matter`as
## layout: tags (or categories)
## title: tags (or categories)
## ---

#### Widgets
widgets:
- category
- tag
- tagcloud
- links
- douban
- github-card
- rss
## provide seven widgets:github-card,category,tag,rss,archive,tagcloud,links,weibo,douban


#### RSS
rss: /atom.xml ## RSS address.

#### Image
imglogo:
enable: true ## display image logo true/false.
src: img/logo.png ## `.svg` and `.png` are recommended,please put image into the theme folder `/jacman/source/img`.
favicon: img/favicon.ico ## size:32px*32px,`.ico` is recommended,please put image into the theme folder `/jacman/source/img`.
apple_icon: img/jacman.jpg ## size:114px*114px,please put image into the theme folder `/jacman/source/img`.
author_img: img/author.jpg ## size:220px*220px.display author avatar picture.if don't want to display,please don't set this.
banner_img: #img/banner.jpg ## size:1920px*200px+. Banner Picture

#### index post is expanding or not
index:
expand: true ## default is unexpanding,so you can only see the short description of each post.
excerpt_link: Read More

close_aside: false #close sidebar in post page if true
mathjax: true #enable mathjax if true
share_to: true #enable share-to buttons if true

#### Author information
author:
name: yitao ## e.g. wuchong Author name
intro_line1: "Hello ,I'm Larry Page in Google." ## your introduction on the bottom of the page
intro_line2: "This is my blog,believe it or not." ## the 2nd line
weibo: ## e.g. wuchong1014 or 2176287895 for http://weibo.com/2176287895
weibo_verifier: ## e.g. b3593ceb Your weibo-show widget verifier ,if you use weibo-show it is needed.
tsina: ## e.g. 2176287895 Your weibo ID,It will be used in share button.
douban: ## e.g. wuchong1014 or your id for https://www.douban.com/people/wuchong1014
zhihu: ## e.g. jark for http://www.zhihu.com/people/jark
email: ## e.g. [email protected]
twitter: ## e.g. jarkwu for https://twitter.com/jarkwu
github: ## e.g. wuchong for https://github.com/wuchong
facebook: ## e.g. imjark for https://facebook.com/imjark
linkedin: ## e.g. wuchong1014 for https://www.linkedin.com/in/wuchong1014
google_plus: ## e.g. "111190881341800841449" for https://plus.google.com/u/0/111190881341800841449, the "" is needed!
stackoverflow: ## e.g. 3222790 for http://stackoverflow.com/users/3222790/jark
## if you set them, the corresponding share button will show on the footer

#### Toc
toc:
article: true ## show contents in article.
aside: true ## show contents in aside.
## you can set both of the value to true of neither of them.
## if you don't want display contents in a specified post,you can modify `front-matter` and add `toc: false`.

#### Links
links:
码农圈: https://coderq.com
Jark's Blog: http://wuchong.me

#### Comment
duoshuo_shortname: ## e.g. wuchong your duoshuo short name. website: http://duoshuo.com
disqus_shortname: ## e.g. wuchong your disqus short name. website: http://disqus.com
hypercomments_id: ## e.g. 91510 your hypercomments widget id. website: http://hypercomments.com
yungentie_productkey: ## your netease yungentie product key. website: https://gentie.163.com
## set only one of them
## duoshuo will be shutting down on June 1, 2017

#### Share button
jiathis:
enable: false ## if you use jiathis as your share tool,the built-in share tool won't be display.
id: ## e.g. 1889330 your jiathis ID.
tsina: ## e.g. 2176287895 Your weibo id,It will be used in share button.

#### Analytics
google_analytics:
enable: false
id: ## e.g. UA-46321946-2 your google analytics ID.
site: ## e.g. wuchong.me your google analytics site or set the value as auto.
## You MUST upgrade to Universal Analytics first!
## https://developers.google.com/analytics/devguides/collection/upgrade/?hl=zh_CN
baidu_tongji:
enable: false
sitecode: ## e.g. e6d1f421bbc9962127a50488f9ed37d1 your baidu tongji site code
cnzz_tongji:
enable: false
siteid: ## e.g. 1253575964 your cnzz tongji site id

#### Miscellaneous
fancybox: true ## if you use gallery post or want use fancybox please set the value to true.
totop: true ## if you want to scroll to top in every post set the value to true

#### Custom Search
google_cse:
enable: false
cx: 018294693190868310296:abnhpuysycw ## e.g. 018294693190868310296:abnhpuysycw your Custom Search ID.
## https://www.google.com/cse/
## To enable the custom search You must create a "search" folder in '/source' and a "index.md" file
## set the 'front-matter' as
## layout: search
## title: search
## ---
baidu_search: ## http://zn.baidu.com/
enable: false
id: ## e.g. "783281470518440642" for your baidu search id
site: http://zhannei.baidu.com/cse/search ## your can change to your site instead of the default site
tinysou_search: ## http://tinysou.com/
enable: false
id: ## e.g. "4ac092ad8d749fdc6293" for your tiny search id
simple_jekyll_search:
enable: true
fulltext: false

gems:
- jemoji
27 changes: 27 additions & 0 deletions _data/languages/de.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
categories: Kategorien
search: Suche
tags: Tags
tagcloud: Tag Übersicht
prev: Zurück
next: Weiter
prev-post: 'Vorheriger Post: '
next-post: 'Nächster Post: '
search-load: Wird geladen, bitte warten.
comment: Kommentare
contents: Inhalt
archive_a: Archiv
archive_b: "Archiv: %s"
archive_date: "%b %Y"
page: Seite %d
recent_posts: Neueste Posts
menu: Menü
weibo: Weibo
links: Links
rss: RSS
doubanshow: Douban Show
github-card: Github Card
showsidebar: Seistenleiste anzeigen
hidesidebar: Seistenleiste verstecken
updated: Aktualisiert
totop: Nach oben
datepublished: Veröffentlicht
Loading

0 comments on commit ed00305

Please sign in to comment.