Initial commit
Set up basic Jekyll files
This commit is contained in:
commit
6273da517e
13 changed files with 170 additions and 0 deletions
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
|||
_site
|
||||
.sass-cache
|
||||
.jekyll-metadata
|
21
LICENSE
Normal file
21
LICENSE
Normal file
|
@ -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.
|
3
README.md
Normal file
3
README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Tale (WIP)
|
||||
|
||||
A Jekyll theme for storytellers.
|
32
_config.yml
Normal file
32
_config.yml
Normal file
|
@ -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
|
15
_includes/head.html
Normal file
15
_includes/head.html
Normal file
|
@ -0,0 +1,15 @@
|
|||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>
|
||||
{% if page.title == "Home" %}
|
||||
{{ site.title }} · {{ site.tagline }}
|
||||
{% else %}
|
||||
{{ page.title }} · {{ site.title }}
|
||||
{% endif %}
|
||||
</title>
|
||||
|
||||
<!-- CSS -->
|
||||
<link rel="stylesheet" href="{{ site.baseurl }}/styles.css">
|
||||
</head>
|
20
_layouts/default.html
Normal file
20
_layouts/default.html
Normal file
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
{% include head.html %}
|
||||
|
||||
<body>
|
||||
|
||||
<div class="container">
|
||||
<h3>
|
||||
<a href="{{ site.baseurl }}/" title="Home">{{ site.title }}</a>
|
||||
<small>{{ site.tagline }}</small>
|
||||
</h3>
|
||||
|
||||
<main>
|
||||
{{ content }}
|
||||
</main>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
0
_layouts/post.html
Normal file
0
_layouts/post.html
Normal file
25
_posts/2017-03-10-welcome-to-jekyll.markdown
Normal file
25
_posts/2017-03-10-welcome-to-jekyll.markdown
Normal file
|
@ -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/
|
17
_sass/_base.scss
Normal file
17
_sass/_base.scss
Normal file
|
@ -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;
|
||||
}
|
5
_sass/_layout.scss
Normal file
5
_sass/_layout.scss
Normal file
|
@ -0,0 +1,5 @@
|
|||
.container {
|
||||
margin: 0 auto;
|
||||
max-width: 1200px;
|
||||
width: 80%;
|
||||
}
|
9
about.md
Normal file
9
about.md
Normal file
|
@ -0,0 +1,9 @@
|
|||
---
|
||||
layout: default
|
||||
title: About
|
||||
permalink: /about/
|
||||
---
|
||||
|
||||
# About
|
||||
|
||||
Tale is a minimal Jekyll theme.
|
13
index.html
Normal file
13
index.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
layout: default
|
||||
title: Home
|
||||
---
|
||||
|
||||
<div>
|
||||
{% for post in site.posts %}
|
||||
<h1>{{ post.title }}</h1>
|
||||
<time datetime="{{ post.date }}">{{ post.date | date_to_string }}</time>
|
||||
|
||||
{{ post.content }}
|
||||
{% endfor %}
|
||||
</div>
|
7
styles.scss
Normal file
7
styles.scss
Normal file
|
@ -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';
|
Loading…
Reference in a new issue