From 0a0aabadcee67659111952b7c56fac77b22798d6 Mon Sep 17 00:00:00 2001 From: Chester How Date: Mon, 8 Jan 2018 22:36:00 +0800 Subject: [PATCH] Add home layout --- .gitignore | 6 ++++-- Gemfile.lock | 22 ++++++++++++---------- _config.yml | 29 +++++++++-------------------- _layouts/home.html | 31 +++++++++++++++++++++++++++++++ index.html | 31 +------------------------------ tale.gemspec | 2 +- 6 files changed, 58 insertions(+), 63 deletions(-) create mode 100644 _layouts/home.html diff --git a/.gitignore b/.gitignore index 45c1505..867d379 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ -_site +*.gem +.bundle .sass-cache -.jekyll-metadata +_site +Gemfile.lock diff --git a/Gemfile.lock b/Gemfile.lock index 41e1c63..ee14db4 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - tale (0.1.0) + tale (0.0.4) jekyll (~> 3.6) jekyll-paginate (~> 1.1) @@ -13,7 +13,7 @@ GEM colorator (1.1.0) ffi (1.9.18) forwardable-extended (2.6.0) - jekyll (3.6.0) + jekyll (3.6.2) addressable (~> 2.4) colorator (~> 1.0) jekyll-sass-converter (~> 1.0) @@ -25,26 +25,28 @@ GEM rouge (>= 1.7, < 3) safe_yaml (~> 1.0) jekyll-paginate (1.1.0) - jekyll-sass-converter (1.5.0) + jekyll-sass-converter (1.5.1) sass (~> 3.4) - jekyll-watch (1.5.0) - listen (~> 3.0, < 3.1) - kramdown (1.15.0) + jekyll-watch (1.5.1) + listen (~> 3.0) + kramdown (1.16.2) liquid (4.0.0) - listen (3.0.8) + listen (3.1.5) rb-fsevent (~> 0.9, >= 0.9.4) rb-inotify (~> 0.9, >= 0.9.7) + ruby_dep (~> 1.2) mercenary (0.3.6) - pathutil (0.16.0) + pathutil (0.16.1) forwardable-extended (~> 2.6) - public_suffix (3.0.0) + public_suffix (3.0.1) rake (10.4.2) rb-fsevent (0.10.2) rb-inotify (0.9.10) ffi (>= 0.5.0, < 2) rouge (2.2.1) + ruby_dep (1.5.0) safe_yaml (1.0.4) - sass (3.5.2) + sass (3.5.5) sass-listen (~> 4.0.0) sass-listen (4.0.0) rb-fsevent (~> 0.9, >= 0.9.4) diff --git a/_config.yml b/_config.yml index f18b40c..4dbcb2b 100644 --- a/_config.yml +++ b/_config.yml @@ -1,33 +1,22 @@ -# Permalinks -permalink: /:year-:month-:day/:title - # Setup -title: Tale +title: "Site title" paginate: 5 -baseurl: "/tale" -url: "https://chesterhow.github.io" - -# Assets -# sass: -# sass_dir: _sass -# style: :compressed +baseurl: # the subpath of your site e.g. "/blog" +url: # the base hostname & protocol for your site e.g. "https://chesterhow.github.io" # Build settings markdown: kramdown +theme: tale # About author: - name: Chester How - url: http://chester.how - email: chesterhow@gmail.com - -# Custom vars -version: 3.4.1 -github: - repo: https://github.com/chesterhow/tale + name: "Your name" + url: + email: # Gems plugins: - jekyll-paginate -theme: tale +# Permalinks +permalink: /:year-:month-:day/:title diff --git a/_layouts/home.html b/_layouts/home.html new file mode 100644 index 0000000..e7c08d6 --- /dev/null +++ b/_layouts/home.html @@ -0,0 +1,31 @@ +--- +layout: default +--- + +
+ {% for post in paginator.posts %} + +
+ +

{{ post.title }}

+
+ +

+ {{ post.content | truncatewords: 30 | strip_html }} +

+ +
+
+ {% endfor %} +
+ + diff --git a/index.html b/index.html index f58f82f..e4d427d 100644 --- a/index.html +++ b/index.html @@ -1,32 +1,3 @@ --- -layout: default -title: Home +layout: home --- - -
- {% for post in paginator.posts %} - -
- -

{{ post.title }}

-
- -

- {{ post.content | truncatewords: 30 | strip_html }} -

- -
-
- {% endfor %} -
- - diff --git a/tale.gemspec b/tale.gemspec index 80d3fdf..3285ddb 100644 --- a/tale.gemspec +++ b/tale.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = "tale" - spec.version = "0.1.0" + spec.version = "0.0.5" spec.authors = ["Chester How"] spec.email = ["chesterhow@gmail.com"]