29 |
--------------------------------------------------------------------------------
/_includes/hyvor-talk-comments.html:
--------------------------------------------------------------------------------
1 |
2 |
19 |
--------------------------------------------------------------------------------
/jekyll-theme-leaf.gemspec:
--------------------------------------------------------------------------------
1 | # frozen_string_literal: true
2 |
3 | Gem::Specification.new do |spec|
4 | spec.name = "jekyll-theme-leaf"
5 | spec.version = "0.1.0"
6 | spec.authors = ["Supun Kavinda"]
7 | spec.email = ["supunkavinda1125@gmail.com"]
8 |
9 | spec.summary = "Minimal yet beautiful Jekyll theme for dark background lovers."
10 | spec.homepage = "https://github.com/SupunKavinda/jekyll-theme-leaf"
11 | spec.license = "MIT"
12 |
13 | spec.files = `git ls-files -z`.split("\x0").select { |f| f.match(%r!^(assets|_layouts|_includes|_sass|LICENSE|README)!i) }
14 |
15 | spec.add_runtime_dependency "jekyll", "~> 3.8"
16 | spec.add_runtime_dependency "jekyll-feed", "~> 0.9"
17 | spec.add_runtime_dependency "jekyll-seo-tag", "~> 2.1"
18 |
19 | spec.add_development_dependency "bundler", "~> 2.1.4"
20 | spec.add_development_dependency "rake", "~> 12.0"
21 | end
22 |
--------------------------------------------------------------------------------
/_sass/leaf.scss:
--------------------------------------------------------------------------------
1 | $base-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Segoe UI Symbol", "Segoe UI Emoji", "Apple Color Emoji", Roboto, Helvetica, Arial, sans-serif !default;
2 | $code-font-family: "Menlo", "Inconsolata", "Consolas", "Roboto Mono", "Ubuntu Mono", "Liberation Mono", "Courier New", monospace;
3 | $base-font-size: 16px !default;
4 | $base-font-weight: 400 !default;
5 | $base-font-color: #e0e0e0;
6 | $small-font-size: $base-font-size * 0.875 !default;
7 | $base-line-height: 1.5 !default;
8 |
9 | $theme-color: #86bb48;
10 | $header-color: #0f0f0f;
11 |
12 | $spacing-unit: 30px !default;
13 |
14 | $content-width: 850px !default;
15 | $content-color: #272726;
16 |
17 | // devices
18 | $on-mobile: 600px !default;
19 | $on-laptop: 800px !default;
20 |
21 | // mixins
22 | @mixin relative-font-size($ratio) {
23 | font-size: #{$ratio}rem;
24 | }
25 | @mixin media-query($device) {
26 | @media screen and (max-width: $device) {
27 | @content;
28 | }
29 | }
30 |
31 | @import 'base';
32 | @import 'layout';
33 | @import 'highlight-dark';
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2020 Supun Kavinda
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/_posts/2020-02-25-welcome-to-jekyll.md:
--------------------------------------------------------------------------------
1 | ---
2 | layout: post
3 | author: Supun Kavinda
4 | ---
5 | 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.
6 |
7 | 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.
8 |
9 | Jekyll also offers powerful support for code snippets:
10 |
11 | {% highlight ruby %}
12 | def print_hi(name)
13 | puts "Hi, #{name}"
14 | end
15 | print_hi('Tom')
16 | #=> prints 'Hi, Tom' to STDOUT.
17 | {% endhighlight %}
18 |
19 | 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].
20 |
21 |
22 | [jekyll-docs]: http://jekyllrb.com/docs/home
23 | [jekyll-gh]: https://github.com/jekyll/jekyll
24 | [jekyll-talk]: https://talk.jekyllrb.com/
25 |
--------------------------------------------------------------------------------
/_layouts/post.html:
--------------------------------------------------------------------------------
1 | ---
2 | layout: default
3 | ---
4 |
5 |
6 |
7 |