Skip to content

Commit

Permalink
feat: add gem theme exmaple. => see ./test
Browse files Browse the repository at this point in the history
  • Loading branch information
kitian616 committed Nov 11, 2017
1 parent 2888dcb commit 300d2f3
Show file tree
Hide file tree
Showing 30 changed files with 579 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,7 @@ typings/
_site/
.sass-cache/
.jekyll-metadata

_posts/*

jekyll-text-theme-*.gem
8 changes: 8 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ markdown: kramdown
highlighter: rouge
permalink: date

exclude:
- CHECKLIST.md
- README.md
- LICENSE
- /docs
- /screenshots
- /test

## Plugins ##
gems:
- jekyll-sitemap
Expand Down
Binary file removed jekyll-text-theme-1.3.0.gem
Binary file not shown.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "jekyll-text-theme",
"version": "1.3.0",
"description": "A theme for Jekyll",
"description": "A text first theme for Jekyll.",
"scripts": {
"build": "bundle exec jekyll build --watch",
"build0": "bundle exec jekyll build --config ./_config.test.yml --watch",
"build": "bundle exec jekyll build",
"serve": "bundle exec jekyll serve -H 0.0.0.0",
"dev": "(npm run build &) && npm run serve",
"dev0": "(npm run build0 &) && npm run serve",
"dev": "bundle exec jekyll serve -H 0.0.0.0 -t",
"cp-post": "cp -rfv ./test/_posts/** ./_posts",
"rm-post": "rm -rfv ./_posts/**",
"favicon": "gulp favicon",
"icons": "gulp icons",
"artwork": "gulp artwork"
Expand Down
4 changes: 4 additions & 0 deletions test/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
layout: error-404
title: 404
---
2 changes: 2 additions & 0 deletions test/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
source 'http://gems.ruby-china.org/'
gem "jekyll-text-theme"
86 changes: 86 additions & 0 deletions test/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
GEM
remote: http://gems.ruby-china.org/
specs:
activesupport (4.2.10)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
colorator (1.1.0)
concurrent-ruby (1.0.5)
ffi (1.9.18)
forwardable-extended (2.6.0)
gemoji (3.0.0)
html-pipeline (2.7.1)
activesupport (>= 2)
nokogiri (>= 1.4)
i18n (0.9.1)
concurrent-ruby (~> 1.0)
jekyll (3.6.2)
addressable (~> 2.4)
colorator (~> 1.0)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1)
kramdown (~> 1.14)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (>= 1.7, < 3)
safe_yaml (~> 1.0)
jekyll-feed (0.9.2)
jekyll (~> 3.3)
jekyll-paginate (1.1.0)
jekyll-sass-converter (1.5.0)
sass (~> 3.4)
jekyll-sitemap (1.1.1)
jekyll (~> 3.3)
jekyll-text-theme (1.3.0)
jekyll (~> 3.5)
jekyll-feed (~> 0.9.2)
jekyll-paginate (~> 1.1)
jekyll-sitemap (~> 1.0)
jemoji (~> 0.8)
jekyll-watch (1.5.0)
listen (~> 3.0, < 3.1)
jemoji (0.8.1)
activesupport (~> 4.0, >= 4.2.9)
gemoji (~> 3.0)
html-pipeline (~> 2.2)
jekyll (>= 3.0)
kramdown (1.15.0)
liquid (4.0.0)
listen (3.0.8)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
mercenary (0.3.6)
mini_portile2 (2.3.0)
minitest (5.10.3)
nokogiri (1.8.1)
mini_portile2 (~> 2.3.0)
pathutil (0.16.0)
forwardable-extended (~> 2.6)
public_suffix (3.0.1)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rouge (2.2.1)
safe_yaml (1.0.4)
sass (3.5.3)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
thread_safe (0.3.6)
tzinfo (1.2.4)
thread_safe (~> 0.1)

PLATFORMS
ruby

DEPENDENCIES
jekyll-text-theme

BUNDLED WITH
1.15.4
30 changes: 21 additions & 9 deletions _config.test.yml → test/_config.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@

# Welcome to Jekyll!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely need to edit after that.
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'jekyll serve'. If you change this file, please restart the server process.

## Use TeXt theme !!!
theme: jekyll-text-theme

## Base settings ##
# url: # the base hostname & protocol for your site e.g. https://www.someone.com
baseurl: '/'
Expand All @@ -27,14 +31,14 @@ timezone: Asia/Shanghai
## Author & social ##
author:
name: Someone
email: someone@mail.com #your Email address e.g. someone@site.com
facebook: someone #your Facebook username
twitter: someone #your Twitter username
github: someone #your GitHub username
googleplus: someone #your Google+ username
weibo: someone #your Weibo username
douban: someone #your Douban username
linkedin: someone #your Linkedin username
email: someone@somemail.com #your Email address e.g. someone@site.com
facebook: someone #your Facebook username
twitter: someone #your Twitter username
github: someone #your GitHub username
googleplus: someone #your Google+ username
weibo: someone #your Weibo username
douban: someone #your Douban username
linkedin: someone #your Linkedin username

## Comment system (Disqus) ##
disqus:
Expand All @@ -57,13 +61,21 @@ paginate_path: /blog/page:num

## Post excerpts ##
excerpt_separator: <!--more-->
excerpt_type: html
excerpt_type: text ## text | html

## Build ##
markdown: kramdown
highlighter: rouge
permalink: date

exclude:
- CHECKLIST.md
- README.md
- LICENSE
- /docs
- /screenshots
- /test

## Plugins ##
gems:
- jekyll-sitemap
Expand Down
11 changes: 11 additions & 0 deletions test/_posts/2015-12-12-images-with-shadow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
layout: post
title: Markdown Example - Images With Shadow
key: 20151212
tags: test
picture_frame: shadow
---

![example image](https://wx3.sinaimg.cn/large/73bd9e13ly1fjlekzmmdjj20sg0sgqko.jpg "An exemplary image")

smile, smile, smile. :smile:
10 changes: 10 additions & 0 deletions test/_posts/2016-01-01-images.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
layout: post
title: Markdown Example - Images
key: 20160101
tags: markdown
---

![example image](https://wx3.sinaimg.cn/large/73bd9e13ly1fjlekzmmdjj20sg0sgqko.jpg "An exemplary image")

smile, smile, smile. :smile:
30 changes: 30 additions & 0 deletions test/_posts/2016-02-02-tables.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
layout: post
title: Markdown Example - Tables
key: 20160202
tags: markdown
---

Computer Type | Model | Location
------------- | ----------- | -----------------
Laptop | MacBook Pro | Office 100
iPad | iPad 2 | Office 150
Desktop | iMac 27" | Office 101

Computer Type | Model | Location | Cost
------------- | ----------- | ----------------- | ---------:
Laptop | MacBook Pro | Office 100 | $1500.00
iPad | **iPad 2** | Office 150 | $499.00
Desktop | iMac 27" | Office 101 | $1400.00

Computer Type | Model | Location | Cost | describe
------------- | ----------- | ----------------- | ---------: | -----------------------
Laptop | MacBook Pro | Office 100 | $1500.00 | Vestibulum posuere, quam sed bibendum posuere, orci est semper libero, nec congue tortor arcu eget velit
iPad | **iPad 2** | Office 150 | $499.00 | Vestibulum posuere, quam sed bibendum posuere, orci est semper libero, nec congue tortor arcu eget velit
Desktop | iMac 27" | Office 101 | $1400.00 | Vestibulum posuere, quam sed bibendum posuere, orci est semper libero, nec congue tortor arcu eget velit

Computer Type | Model | Location | Cost | describe
------------- | ----------- | ----------------- | ---------: | -----------------------
Laptop | MacBook Pro | Office 100 | $1500.00 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxixixxixiixxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxixixxixiix
iPad | **iPad 2** | Office 150 | $499.00 | Vestibulum posuere, quam sed bibendum posuere, orci est semper libero, nec congue tortor arcu eget velit
Desktop | iMac 27" | Office 101 | $1400.00 | Vestibulum posuere, quam sed bibendum posuere, orci est semper libero, nec congue tortor arcu eget velit
30 changes: 30 additions & 0 deletions test/_posts/2016-03-03-code.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
layout: post
title: Markdown Example - Code
key: 20160303
tags: markdown
---

Ut erat nisl, dignissim et iaculis ac, adipiscing non ipsum. `/r/n` Vivamus ornare `<?php echo("Hello World!"); ?>` hendrerit sapien ut ornare.

`<?php echo("Hello World!"); ?>`

`<p>Hello Workd!</p>`

{% highlight javascript %}
(() => console.log('hello, world!'))();
{% endhighlight %}

{% highlight javascript %}
(() => console.log('hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world!'))();
{% endhighlight %}

<!--more-->

```
(() => console.log('hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world! hello, world!'))();
```

(() => console.log('hello, world!'))();

Morbi dictum magna vitae mi malesuada laoreet. Proin tempus laoreet leo in lobortis. In sit amet ipsum vel massa fringilla volutpat. Aenean dictum odio in ligula egestas iaculis. Maecenas ut massa quis velit consectetur faucibus in in lectus. Praesent ac mauris nec tortor suscipit aliquam eu nec justo. Nulla facilisi. Curabitur sit amet ligula ante.
20 changes: 20 additions & 0 deletions test/_posts/2016-04-04-lists.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
layout: post
title: Markdown Example - Lists
key: 20160404
tags: markdown
---

## Unordered list
* Aenean
* vel
* libero
* eget
* ante

## Ordered list
1. Aenean
2. vel
3. libero
4. eget
5. ante
14 changes: 14 additions & 0 deletions test/_posts/2016-04-08-definition.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
layout: post
title: Markdown Example - Definition
key: 20160408
tags: markdown
---

<dl>
<dt>Definition list</dt>
<dd>Is something people use sometimes.</dd>

<dt>Markdown in HTML</dt>
<dd>Does *not* work **very** well. Use HTML <em>tags</em>.</dd>
</dl>
10 changes: 10 additions & 0 deletions test/_posts/2016-05-05-reference-links.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
layout: post
title: Markdown Example - Reference Links
key: 20160505
tags: markdown
---

My Blog is called [Qi's blog][BLOG].

[BLOG]: https://tianqi.name/blog "Qi's blog"
15 changes: 15 additions & 0 deletions test/_posts/2016-06-06-links.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: post
title: Markdown Example - Links
key: 20160606
tags: markdown
---

### Basic link
[Qi's Site](https://tianqi.name)

### Basic link with title
[Qi's Site](https://tianqi.name "hahahahahahaha")

### Link within a paragraph
Aliquam hendrerit congue mauris at imperdiet. Suspendisse sit amet justo eu lacus tempor malesuada aliquam et massa. Proin malesuada, sem id facilisis facilisis, ipsum lacus tincidunt dui, ut tincidunt diam urna vitae tellus. Etiam auctor dapibus felis, auctor eleifend erat semper non. [Qi's Site](https://tianqi.name) laoreet metus. Duis odio elit, venenatis nec malesuada at, pretium ut quam. Aenean sagittis eleifend rutrum. Ut dictum volutpat metus sit amet imperdiet. Integer iaculis massa vel ipsum tincidunt dictum. In fringilla pellentesque massa eget faucibus. Quisque vitae ligula justo.
18 changes: 18 additions & 0 deletions test/_posts/2016-07-07-headers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
layout: post
title: Markdown Example - Headers
key: 20160707
tags: markdown
---

# Integer suscipit, purus in egestas iaculis, nunc massa facilisis nisi

## Integer suscipit, purus in egestas iaculis, nunc massa facilisis nisi

### Integer suscipit, purus in egestas iaculis, nunc massa facilisis nisi

#### Integer suscipit, purus in egestas iaculis, nunc massa facilisis nisi

##### Integer suscipit, purus in egestas iaculis, nunc massa facilisis nisi

###### Integer suscipit, purus in egestas iaculis, nunc massa facilisis nisi
16 changes: 16 additions & 0 deletions test/_posts/2016-08-08-blockquotes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
layout: post
title: Markdown Example - Blockquotes
key: 20160808
tags: markdown
---

> Donec massa lacus, ultricies a ullamcorper in, fermentum sed augue.
<!--more-->

Nunc vestibulum leo a lorem pulvinar ut convallis odio iaculis. Sed a sapien nec libero semper scelerisque at eget nisl. Vestibulum urna ligula, facilisis sed blandit nec, placerat eget augue. Nulla ultrices hendrerit mauris, quis hendrerit mi bibendum eget.

> Aliquam id turpis in dolor tincidunt mollis ac eu diam. Duis faucibus consectetur ante vel accumsan. Donec quis felis et ipsum blandit consectetur ut sit amet nisi. Nunc faucibus pellentesque auctor. Fusce ac porta est. Suspendisse potenti. Sed pellentesque quam arcu. Praesent vel enim ligula. Integer aliquet semper metus vitae iaculis. Nunc justo dolor, posuere eget volutpat in, accumsan ac lorem. Nam at scelerisque ante.
Aliquam ut augue turpis, eget mattis nibh. Suspendisse urna mauris, pharetra vitae laoreet non, tempor sit amet metus. Donec risus diam, tincidunt id elementum sed, ultrices id neque. Curabitur sed nisl non sem gravida malesuada et dapibus justo. Nullam in sagittis magna. Aliquam erat volutpat. Suspendisse potenti. Fusce id posuere orci. In sed vestibulum dolor. Phasellus volutpat eleifend purus sed vestibulum. Ut dolor massa, volutpat nec elementum vel, vestibulum in mi. Donec fringilla dignissim risus.
Loading

0 comments on commit 300d2f3

Please sign in to comment.