Skip to content
Open

a #1

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ root = true

[*]
indent_style = space
indent_size = 2
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ _site
codekit-config.json
node_modules
_asset_bundler_cache
.sass-cache
.sass-cache
.jekyll-metadata
7 changes: 4 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Skinny Bones Gemfile
source "https://rubygems.org"

gem 'jekyll', '2.5.3'
gem 'jekyll-sitemap'
gem 'octopress', '~> 3.0'
gem "jekyll"
gem "jekyll-sitemap"
gem "jekyll-gist"
gem "jekyll-feed"
99 changes: 36 additions & 63 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,84 +1,57 @@
GEM
remote: https://rubygems.org/
specs:
blankslate (2.1.2.4)
classifier-reborn (2.0.4)
fast-stemmer (~> 1.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.9.1.1)
addressable (2.4.0)
colorator (0.1)
execjs (2.6.0)
fast-stemmer (1.0.2)
faraday (0.9.2)
multipart-post (>= 1.2, < 3)
ffi (1.9.10)
ffi (1.9.10-x64-mingw32)
jekyll (2.5.3)
classifier-reborn (~> 2.0)
jekyll (3.1.6)
colorator (~> 0.1)
jekyll-coffeescript (~> 1.0)
jekyll-gist (~> 1.0)
jekyll-paginate (~> 1.0)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1)
kramdown (~> 1.3)
liquid (~> 2.6.1)
liquid (~> 3.0)
mercenary (~> 0.3.3)
pygments.rb (~> 0.6.0)
redcarpet (~> 3.1)
rouge (~> 1.7)
safe_yaml (~> 1.0)
toml (~> 0.1.0)
jekyll-coffeescript (1.0.1)
coffee-script (~> 2.2)
jekyll-gist (1.3.5)
jekyll-paginate (1.1.0)
jekyll-sass-converter (1.3.0)
sass (~> 3.2)
jekyll-sitemap (0.9.0)
jekyll-watch (1.3.0)
listen (~> 3.0)
kramdown (1.9.0)
liquid (2.6.3)
listen (3.0.4)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
mercenary (0.3.5)
octopress (3.0.11)
jekyll (>= 2.0)
mercenary (~> 0.3.2)
octopress-deploy
octopress-escape-code (~> 2.0)
octopress-hooks (~> 2.0)
redcarpet (~> 3.0)
titlecase
octopress-deploy (1.3.0)
colorator
octopress-escape-code (2.0.6)
octopress-hooks (~> 2.0)
octopress-hooks (2.6.1)
jekyll (>= 2.0)
parslet (1.5.0)
blankslate (~> 2.0)
posix-spawn (0.3.11)
pygments.rb (0.6.3)
posix-spawn (~> 0.3.6)
yajl-ruby (~> 1.2.0)
rb-fsevent (0.9.6)
rb-inotify (0.9.5)
jekyll-feed (0.5.1)
jekyll-gist (1.4.0)
octokit (~> 4.2)
jekyll-sass-converter (1.4.0)
sass (~> 3.4)
jekyll-sitemap (0.10.0)
jekyll-watch (1.4.0)
listen (~> 3.0, < 3.1)
kramdown (1.11.1)
liquid (3.0.6)
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
mercenary (0.3.6)
multipart-post (2.0.0)
octokit (4.3.0)
sawyer (~> 0.7.0, >= 0.5.3)
rb-fsevent (0.9.7)
rb-inotify (0.9.7)
ffi (>= 0.5.0)
redcarpet (3.3.3)
rouge (1.10.1)
safe_yaml (1.0.4)
sass (3.4.19)
titlecase (0.1.1)
toml (0.1.2)
parslet (~> 1.5.0)
yajl-ruby (1.2.1)
sass (3.4.22)
sawyer (0.7.0)
addressable (>= 2.3.5, < 2.5)
faraday (~> 0.8, < 0.10)

PLATFORMS
ruby
x64-mingw32

DEPENDENCIES
jekyll (= 2.5.3)
jekyll
jekyll-feed
jekyll-gist
jekyll-sitemap
octopress (~> 3.0)

BUNDLED WITH
1.16.0
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

Just a little something I'm using to jump start a site refresh. I like to think of it as a starter for building your own Jekyll site. I purposely keep the styling minimal and bare to make it easier to add your own flare and markup.

**Jekyll 3 Update:** A version of Skinny Bones compatible with Jekyll 3 can be found in the [`jekyll3` branch](https://github.com/mmistakes/skinny-bones-jekyll/tree/jekyll3). GitHub Pages is [locked at version 2.4](https://pages.github.com/versions/) so some keep that in mind if you're trying to use 3.0 features that aren't supported there yet.

I'm currently using a variation of it on my personal website [Made Mistakes](http://mademistakes.com) with some modifications. To learn more about how to use the theme and install it check out the [Skinny Bones demo](http://mmistakes.github.io/skinny-bones-jekyll/) (*work in progress*).

![screenshot of Skinny Bones](http://mmistakes.github.io/skinny-bones-jekyll/images/skinny-bones-theme-feature.jpg)
Expand All @@ -12,7 +10,8 @@ I'm currently using a variation of it on my personal website [Made Mistakes](htt

## Notable Features

* Stylesheet built using Sass. *Requires Jekyll 2.x*
* Jekyll 3.x and GitHub Pages compatible.
* Stylesheet built using Sass.
* Data files for easier customization of the site navigation/footer and for supporting multiple authors.
* Optional Disqus comments, table of contents, social sharing links, and Google AdSense ads.
* And more.
50 changes: 39 additions & 11 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,64 @@
# Site wide configuration

title:
description:
title: "開展個人學習網絡"
description: "在更遼闊的(全球資訊網)世界感覺更自在地體驗及學習"
logo: # 120x120 px default image used for Twitter summary card
teaser: # 400x250 px default teaser image used in image archive grid
locale: en
locale: zh_TW # 本地化翻譯
url:
feed:
path: atom.xml

# Jekyll configuration

sass:
sass_dir: _sass
style: compressed
sass_dir: _sass
style: compressed
permalink: /:categories/:title/
kramdown:
toc_levels: 1..2
highlighter: pygments
highlighter: rouge
gems:
- jekyll-sitemap
- jekyll-gist
- jekyll-feed


# Site owner
owner:
name:
email:
twitter:
name: hanteng
email: [email protected]
twitter: hanteng
google:
ad-client:
ad-slot:
bio:
bio: "廖汉腾,副教授(网络与新媒体专业) 中山大学南方学院 新媒体研究中心代理主任 ,开设课程:《网络新媒体技术与协作》、《信息可视化设计》、《大数据统计》、《Python语言》、《网页设计与制作》、《网站运营与管理实践》等。"
avatar: bio-photo.jpg # 160x160 px image for author byline
disqus-shortname:


exclude: ["lib", "config.rb", ".sass-cache", "Capfile", "config", "log", "Rakefile", "Rakefile.rb", "tmp", "*.sublime-project", "*.sublime-workspace", "Gemfile", "Gemfile.lock", "README.md", "LICENSE", "node_modules", "Gruntfile.js", "package.json"]
include:
- .htaccess
exclude:
- "*.less"
- "*.sublime-project"
- "*.sublime-workspace"
- .asset-cache
- .bundle
- .jekyll-assets-cache
- .sass-cache
- CHANGELOG
- Capfile
- Gemfile
- Gruntfile.js
- LICENSE
- README
- Rakefile
- config
- gulpfile.js
- lib
- log
- node_modules
- package.json
- spec
- tmp
4 changes: 2 additions & 2 deletions _data/footer.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Footer navigation links

- title:
url:
- title: 在更遼闊的(全球資訊網)世界更感覺自在
url: https://hanteng.github.io
22 changes: 21 additions & 1 deletion _data/messages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,25 @@ locales:

# French translation (TODO)
# -------------------
fr: &DEFAULT_FR
<<: *DEFAULT_EN # load English values as default
overview: "Aperçu"
toc: "Table des matières"
written_by: "Écrit par"
updated: "Mis à jour"
share: "Partager sur"
fr_FR:
<<: *DEFAULT_EN # load English values as default
<<: *DEFAULT_FR # use French translation for fr_FR

# Chinese translation
# -------------------
zh: &DEFAULT_ZH
<<: *DEFAULT_ZH # load English values as default
overview: "總覽"
toc: "目錄"
written_by: "撰寫者"
updated: "更新日期:"
share: "分享"
zh_TW:
<<: *DEFAULT_ZH # use German translation for de_DE

23 changes: 19 additions & 4 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
# Site navigation links

- title:
url:
excerpt:
image:
- title: Teaching 教學
url: /teaching/
excerpt: "含体验式教学及混合式教学"
image: 300x200.gif

- title: i18nl10n 國際化及本地化
url: /i18nl10n/
excerpt: "含"一带一路"倡议"
image: 300x200.gif

- title: SDG 永續發展
url: /SDG/
excerpt: "Sustainable Development Goals,亦译可持续发展,含"生态文明"倡议"
image: 300x200.gif

- title: Contact 聯絡我
url: /contact/
excerpt: "联络我"
image: 300x200.gif
7 changes: 7 additions & 0 deletions _includes/favicon.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!-- Favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/manifest.json">
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">
1 change: 1 addition & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{% assign author = site.data.authors[page.author] %}{% else %}{% assign author = site.owner %}
{% endif %}
{% include open-graph.html %}
{% include favicon.html %}

<link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.url }}">

Expand Down
10 changes: 0 additions & 10 deletions _octopress.yml

This file was deleted.

38 changes: 38 additions & 0 deletions _posts/2017-11-30-練Jekyll裝Ruby.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
layout: default
title: "欲練Jekyll神功,必先自裝Ruby"
date: 2017-11-30 22:07:50 +0800
categories: Jekyll Ruby update
---
欲練 `Jekyll` 神功,必先自裝 `Ruby` 這腳本語言的開發環境。

現在2017年年底的情境下,在微軟視窗環境裝 `Ruby` ,可以使用[RubyInstaller for Windows][rubyinstaller] 減少不必要的痛苦及麻煩。仍會遇到點問題,請細讀以下內容做準備。

## 从 RubyInstaller 起步的自裝策略:缺啥裝啥

現在,個人同意 [Rei在Ruby-China的社群網站的看法][Rei_Ruby-China] (2015年06月26日):

> 我觉得从 RubyInstaller 起步,遇到问题逐个解决比较好

其意涵是,若裝了 RubyInstaller ,但通常的情況是裝不完所有的gem包,這時若有報錯說缺什麼包,就用下面的命令裝什麼包

> gem install 缺什麼gem包

用RubyInstaller 安裝後,出現命令列有Ruby的ASCII藝術圖已算是基本安裝好, 可以在命令列或PowerShell輸入以下命令檢查版本

> ruby -v

出現命令列有Ruby的ASCII藝術圖时,還能繼續安裝其他常用的包,所以有1,2,3等等選項。不過由於中国網絡環境的關係,若不能順利下載安裝其他gem包,可以就用 `缺啥裝啥` 的策略就行。

## 其他相關討論及策略

早些年有不少開發者認定在微軟視窗環境裝 Ruby 是件吃力不討好的事,故建議 [新人千万不要在 Windows 上使用][no_ruby_on_windows] 。其論點為開發者應該改以 Linux or Mac 環境來使用 Ruby ,裝起來開發起來都比較順。

經過這些年的發展,在微軟視窗環境使用 Ruby 的問題雖未獲完整解決,但若是使用較簡單的模塊如 `Jekyll` ,已不是什麼太大的問題,所以建議从 RubyInstaller 起步,遇到问题逐个解决補上所需的gem包比较好。

中国Ruby China用戶 [ericguo 亦有打包 Rails 在 Windows 下的完整开发环境压缩包][Rei_Ruby-China],好處是解壓了應該能用,壞處是裝了不少的東西,佔的空間比較大,且版本可能不是最新的ruby 2.4.2p198 (2017-09-14 revision 59899。


[rubyinstaller]: https://rubyinstaller.org/downloads/
[Rei_Ruby-China]: https://ruby-china.org/topics/26191
[no_ruby_on_windows]: https://ruby-china.org/topics/1020
Loading