commit 6273da517ec106eddccb4f052cfd94ad7b2a8d98 Author: Chester How Date: Fri Mar 10 13:20:17 2017 +0800 Initial commit Set up basic Jekyll files diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..45c1505 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +_site +.sass-cache +.jekyll-metadata diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..ac9e0d8 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2016 Chester How + +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. diff --git a/README.md b/README.md new file mode 100644 index 0000000..5c92ab4 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Tale (WIP) + +A Jekyll theme for storytellers. diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..1cb7e63 --- /dev/null +++ b/_config.yml @@ -0,0 +1,32 @@ +# Permalinks +permalink: pretty + +# Setup +title: Tale +tagline: What's your story? +paginate: 1 +baseurl: "" +url: "" + +# Assets +sass: + sass_dir: _sass + style: :compressed + +# Build settings +markdown: kramdown + +# 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 + +# Gems +gems: + - jekyll-paginate diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..4586fa6 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,15 @@ + + + + + + {% if page.title == "Home" %} + {{ site.title }} · {{ site.tagline }} + {% else %} + {{ page.title }} · {{ site.title }} + {% endif %} + + + + + diff --git a/_layouts/default.html b/_layouts/default.html new file mode 100644 index 0000000..b8b999c --- /dev/null +++ b/_layouts/default.html @@ -0,0 +1,20 @@ + + + + {% include head.html %} + + + +
+

+ {{ site.title }} + {{ site.tagline }} +

+ +
+ {{ content }} +
+
+ + + diff --git a/_layouts/post.html b/_layouts/post.html new file mode 100644 index 0000000..e69de29 diff --git a/_posts/2017-03-10-welcome-to-jekyll.markdown b/_posts/2017-03-10-welcome-to-jekyll.markdown new file mode 100644 index 0000000..d2a0766 --- /dev/null +++ b/_posts/2017-03-10-welcome-to-jekyll.markdown @@ -0,0 +1,25 @@ +--- +layout: post +title: "Welcome to Jekyll!" +date: 2017-03-10 12:32:48 +0800 +categories: jekyll update +--- +You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. + +To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works. + +Jekyll also offers powerful support for code snippets: + +{% highlight ruby %} +def print_hi(name) + puts "Hi, #{name}" +end +print_hi('Tom') +#=> prints 'Hi, Tom' to STDOUT. +{% endhighlight %} + +Check out the [Jekyll docs][jekyll-docs] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll Talk][jekyll-talk]. + +[jekyll-docs]: https://jekyllrb.com/docs/home +[jekyll-gh]: https://github.com/jekyll/jekyll +[jekyll-talk]: https://talk.jekyllrb.com/ diff --git a/_sass/_base.scss b/_sass/_base.scss new file mode 100644 index 0000000..b297ec4 --- /dev/null +++ b/_sass/_base.scss @@ -0,0 +1,17 @@ +* { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +html, +body { + margin: 0; + padding: 0; +} + +html { + font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; + font-size: 16px; + line-height: 1.5; +} diff --git a/_sass/_layout.scss b/_sass/_layout.scss new file mode 100644 index 0000000..408ab89 --- /dev/null +++ b/_sass/_layout.scss @@ -0,0 +1,5 @@ +.container { + margin: 0 auto; + max-width: 1200px; + width: 80%; +} diff --git a/about.md b/about.md new file mode 100644 index 0000000..b48a683 --- /dev/null +++ b/about.md @@ -0,0 +1,9 @@ +--- +layout: default +title: About +permalink: /about/ +--- + +# About + +Tale is a minimal Jekyll theme. diff --git a/index.html b/index.html new file mode 100644 index 0000000..6bee159 --- /dev/null +++ b/index.html @@ -0,0 +1,13 @@ +--- +layout: default +title: Home +--- + +
+ {% for post in site.posts %} +

{{ post.title }}

+ + + {{ post.content }} + {% endfor %} +
diff --git a/styles.scss b/styles.scss new file mode 100644 index 0000000..2ef4ae6 --- /dev/null +++ b/styles.scss @@ -0,0 +1,7 @@ +--- +# Use a comment to ensure Jekyll reads the file to be transformed into CSS later +# only main files contain this front matter, not partials. +--- + +@import 'base'; +@import 'layout';