jekyll-plus 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +77 -0
- data/lib/jekyll-plus.rb +2 -0
- data/lib/jekyll-plus/version.rb +3 -0
- data/lib/jekyll/commands/new.rb +190 -0
- data/lib/jekyll/templates/classic_template/Gemfile.erb +26 -0
- data/lib/jekyll/templates/classic_template/_config.yml.erb +37 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_includes/disqus_comments.html +20 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_includes/footer.html +46 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_includes/google-analytics.html +11 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_includes/head.html +16 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_includes/header.html +27 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_includes/icon-github.html +1 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_includes/icon-github.svg +1 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_includes/icon-twitter.html +1 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_includes/icon-twitter.svg +1 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_layouts/default.html +20 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_layouts/home.html +25 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_layouts/page.html +14 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_layouts/post.html +18 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_sass/_base.scss +198 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_sass/_layout.scss +237 -0
- data/lib/jekyll/templates/classic_template/theme_folders/_sass/_syntax-highlighting.scss +71 -0
- data/lib/jekyll/templates/classic_template/theme_folders/assets/main.scss +47 -0
- data/lib/jekyll/templates/site_template/.gitignore +3 -0
- data/lib/jekyll/templates/site_template/Gemfile.erb +24 -0
- data/lib/jekyll/templates/site_template/_config.yml.erb +37 -0
- data/lib/jekyll/templates/site_template/_posts/0000-00-00-welcome-to-jekyll.md.erb +25 -0
- data/lib/jekyll/templates/site_template/about.md +15 -0
- data/lib/jekyll/templates/site_template/index.md +6 -0
- metadata +131 -0
@@ -0,0 +1,71 @@
|
|
1
|
+
/**
|
2
|
+
* Syntax highlighting styles
|
3
|
+
*/
|
4
|
+
.highlight {
|
5
|
+
background: #fff;
|
6
|
+
@extend %vertical-rhythm;
|
7
|
+
|
8
|
+
.highlighter-rouge & {
|
9
|
+
background: #eef;
|
10
|
+
}
|
11
|
+
|
12
|
+
.c { color: #998; font-style: italic } // Comment
|
13
|
+
.err { color: #a61717; background-color: #e3d2d2 } // Error
|
14
|
+
.k { font-weight: bold } // Keyword
|
15
|
+
.o { font-weight: bold } // Operator
|
16
|
+
.cm { color: #998; font-style: italic } // Comment.Multiline
|
17
|
+
.cp { color: #999; font-weight: bold } // Comment.Preproc
|
18
|
+
.c1 { color: #998; font-style: italic } // Comment.Single
|
19
|
+
.cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
|
20
|
+
.gd { color: #000; background-color: #fdd } // Generic.Deleted
|
21
|
+
.gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
|
22
|
+
.ge { font-style: italic } // Generic.Emph
|
23
|
+
.gr { color: #a00 } // Generic.Error
|
24
|
+
.gh { color: #999 } // Generic.Heading
|
25
|
+
.gi { color: #000; background-color: #dfd } // Generic.Inserted
|
26
|
+
.gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
|
27
|
+
.go { color: #888 } // Generic.Output
|
28
|
+
.gp { color: #555 } // Generic.Prompt
|
29
|
+
.gs { font-weight: bold } // Generic.Strong
|
30
|
+
.gu { color: #aaa } // Generic.Subheading
|
31
|
+
.gt { color: #a00 } // Generic.Traceback
|
32
|
+
.kc { font-weight: bold } // Keyword.Constant
|
33
|
+
.kd { font-weight: bold } // Keyword.Declaration
|
34
|
+
.kp { font-weight: bold } // Keyword.Pseudo
|
35
|
+
.kr { font-weight: bold } // Keyword.Reserved
|
36
|
+
.kt { color: #458; font-weight: bold } // Keyword.Type
|
37
|
+
.m { color: #099 } // Literal.Number
|
38
|
+
.s { color: #d14 } // Literal.String
|
39
|
+
.na { color: #008080 } // Name.Attribute
|
40
|
+
.nb { color: #0086B3 } // Name.Builtin
|
41
|
+
.nc { color: #458; font-weight: bold } // Name.Class
|
42
|
+
.no { color: #008080 } // Name.Constant
|
43
|
+
.ni { color: #800080 } // Name.Entity
|
44
|
+
.ne { color: #900; font-weight: bold } // Name.Exception
|
45
|
+
.nf { color: #900; font-weight: bold } // Name.Function
|
46
|
+
.nn { color: #555 } // Name.Namespace
|
47
|
+
.nt { color: #000080 } // Name.Tag
|
48
|
+
.nv { color: #008080 } // Name.Variable
|
49
|
+
.ow { font-weight: bold } // Operator.Word
|
50
|
+
.w { color: #bbb } // Text.Whitespace
|
51
|
+
.mf { color: #099 } // Literal.Number.Float
|
52
|
+
.mh { color: #099 } // Literal.Number.Hex
|
53
|
+
.mi { color: #099 } // Literal.Number.Integer
|
54
|
+
.mo { color: #099 } // Literal.Number.Oct
|
55
|
+
.sb { color: #d14 } // Literal.String.Backtick
|
56
|
+
.sc { color: #d14 } // Literal.String.Char
|
57
|
+
.sd { color: #d14 } // Literal.String.Doc
|
58
|
+
.s2 { color: #d14 } // Literal.String.Double
|
59
|
+
.se { color: #d14 } // Literal.String.Escape
|
60
|
+
.sh { color: #d14 } // Literal.String.Heredoc
|
61
|
+
.si { color: #d14 } // Literal.String.Interpol
|
62
|
+
.sx { color: #d14 } // Literal.String.Other
|
63
|
+
.sr { color: #009926 } // Literal.String.Regex
|
64
|
+
.s1 { color: #d14 } // Literal.String.Single
|
65
|
+
.ss { color: #990073 } // Literal.String.Symbol
|
66
|
+
.bp { color: #999 } // Name.Builtin.Pseudo
|
67
|
+
.vc { color: #008080 } // Name.Variable.Class
|
68
|
+
.vg { color: #008080 } // Name.Variable.Global
|
69
|
+
.vi { color: #008080 } // Name.Variable.Instance
|
70
|
+
.il { color: #099 } // Literal.Number.Integer.Long
|
71
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
# Only the main Sass file needs front matter (the dashes are enough)
|
3
|
+
---
|
4
|
+
@charset "UTF-8";
|
5
|
+
|
6
|
+
// Our variables
|
7
|
+
$base-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
8
|
+
$base-font-size: 16px;
|
9
|
+
$base-font-weight: 400;
|
10
|
+
$small-font-size: $base-font-size * 0.875;
|
11
|
+
$base-line-height: 1.5;
|
12
|
+
|
13
|
+
$spacing-unit: 30px;
|
14
|
+
|
15
|
+
$text-color: #111;
|
16
|
+
$background-color: #fdfdfd;
|
17
|
+
$brand-color: #2a7ae2;
|
18
|
+
|
19
|
+
$grey-color: #828282;
|
20
|
+
$grey-color-light: lighten($grey-color, 40%);
|
21
|
+
$grey-color-dark: darken($grey-color, 25%);
|
22
|
+
|
23
|
+
// Width of the content area
|
24
|
+
$content-width: 800px;
|
25
|
+
|
26
|
+
$on-palm: 600px;
|
27
|
+
$on-laptop: 800px;
|
28
|
+
|
29
|
+
// Use media queries like this:
|
30
|
+
// @include media-query($on-palm) {
|
31
|
+
// .wrapper {
|
32
|
+
// padding-right: $spacing-unit / 2;
|
33
|
+
// padding-left: $spacing-unit / 2;
|
34
|
+
// }
|
35
|
+
// }
|
36
|
+
@mixin media-query($device) {
|
37
|
+
@media screen and (max-width: $device) {
|
38
|
+
@content;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
// Import partials from `sass_dir` (defaults to `_sass`)
|
43
|
+
@import
|
44
|
+
"base",
|
45
|
+
"layout",
|
46
|
+
"syntax-highlighting"
|
47
|
+
;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
ruby "<%= RUBY_VERSION %>"
|
3
|
+
|
4
|
+
# Hello! This is where you manage which Jekyll version is used to run.
|
5
|
+
# When you want to use a different version, change it below, save the
|
6
|
+
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
|
7
|
+
#
|
8
|
+
# bundle exec jekyll serve
|
9
|
+
#
|
10
|
+
# This will help ensure the proper Jekyll version is running.
|
11
|
+
# Happy Jekylling!
|
12
|
+
gem "jekyll", "~> <%= Jekyll::VERSION %>"
|
13
|
+
|
14
|
+
# This is the default theme for new Jekyll sites. You may change this to anything you like.
|
15
|
+
gem "minima"
|
16
|
+
|
17
|
+
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
|
18
|
+
# uncomment the line below. To upgrade, run `bundle update github-pages`.
|
19
|
+
# gem "github-pages", group: :jekyll_plugins
|
20
|
+
|
21
|
+
# If you have any plugins, put them here!
|
22
|
+
group :jekyll_plugins do
|
23
|
+
gem "jekyll-feed", "~> 0.6"
|
24
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# Welcome to Jekyll!
|
2
|
+
#
|
3
|
+
# This config file is meant for settings that affect your whole blog, values
|
4
|
+
# which you are expected to set up once and rarely edit after that. If you find
|
5
|
+
# yourself editing this file very often, consider using Jekyll's data files
|
6
|
+
# feature for the data you need to update frequently.
|
7
|
+
#
|
8
|
+
# For technical reasons, this file is *NOT* reloaded automatically when you use
|
9
|
+
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
|
10
|
+
|
11
|
+
# Site settings
|
12
|
+
# These are used to personalize your new site. If you look in the HTML files,
|
13
|
+
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
|
14
|
+
# You can create any custom variable you would like, and they will be accessible
|
15
|
+
# in the templates via {{ site.myvariable }}.
|
16
|
+
|
17
|
+
title: <%= @blog_title %>
|
18
|
+
author: <%= @user_name %>
|
19
|
+
email: <%= @user_email %>
|
20
|
+
# the ">" below means to ignore newlines until "baseurl:"
|
21
|
+
description: >
|
22
|
+
Write an awesome description for your new site here. You can edit this
|
23
|
+
line in _config.yml. It will appear in your document head meta (for
|
24
|
+
Google search results) and in your feed.xml site description.
|
25
|
+
baseurl: "" # the subpath of your site, e.g. /blog
|
26
|
+
url: "" # the base hostname & protocol for your site, e.g. http://example.com
|
27
|
+
twitter_username: jekyllrb
|
28
|
+
github_username: jekyll
|
29
|
+
|
30
|
+
# Build settings
|
31
|
+
markdown: kramdown
|
32
|
+
theme: minima
|
33
|
+
gems:
|
34
|
+
- jekyll-feed
|
35
|
+
exclude:
|
36
|
+
- Gemfile
|
37
|
+
- Gemfile.lock
|
@@ -0,0 +1,25 @@
|
|
1
|
+
---
|
2
|
+
layout: post
|
3
|
+
title: "Welcome to Jekyll!"
|
4
|
+
date: <%= Time.now.strftime('%Y-%m-%d %H:%M:%S %z') %>
|
5
|
+
categories: jekyll update
|
6
|
+
---
|
7
|
+
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.
|
8
|
+
|
9
|
+
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.
|
10
|
+
|
11
|
+
Jekyll also offers powerful support for code snippets:
|
12
|
+
|
13
|
+
{% highlight ruby %}
|
14
|
+
def print_hi(name)
|
15
|
+
puts "Hi, #{name}"
|
16
|
+
end
|
17
|
+
print_hi('Tom')
|
18
|
+
#=> prints 'Hi, Tom' to STDOUT.
|
19
|
+
{% endhighlight %}
|
20
|
+
|
21
|
+
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].
|
22
|
+
|
23
|
+
[jekyll-docs]: http://jekyllrb.com/docs/home
|
24
|
+
[jekyll-gh]: https://github.com/jekyll/jekyll
|
25
|
+
[jekyll-talk]: https://talk.jekyllrb.com/
|
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
layout: page
|
3
|
+
title: About
|
4
|
+
permalink: /about/
|
5
|
+
---
|
6
|
+
|
7
|
+
This is the base Jekyll theme. You can find out more info about customizing your Jekyll theme, as well as basic Jekyll usage documentation at [jekyllrb.com](http://jekyllrb.com/)
|
8
|
+
|
9
|
+
You can find the source code for the Jekyll new theme at:
|
10
|
+
{% include icon-github.html username="jekyll" %} /
|
11
|
+
[minima](https://github.com/jekyll/minima)
|
12
|
+
|
13
|
+
You can find the source code for Jekyll at
|
14
|
+
{% include icon-github.html username="jekyll" %} /
|
15
|
+
[jekyll](https://github.com/jekyll/jekyll)
|
metadata
ADDED
@@ -0,0 +1,131 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll-plus
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ashwin Maroli
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-10-28 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.12'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.12'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: minitest
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '5.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '5.0'
|
69
|
+
description:
|
70
|
+
email:
|
71
|
+
- ashmaroli@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- LICENSE.txt
|
77
|
+
- README.md
|
78
|
+
- lib/jekyll-plus.rb
|
79
|
+
- lib/jekyll-plus/version.rb
|
80
|
+
- lib/jekyll/commands/new.rb
|
81
|
+
- lib/jekyll/templates/classic_template/Gemfile.erb
|
82
|
+
- lib/jekyll/templates/classic_template/_config.yml.erb
|
83
|
+
- lib/jekyll/templates/classic_template/theme_folders/_includes/disqus_comments.html
|
84
|
+
- lib/jekyll/templates/classic_template/theme_folders/_includes/footer.html
|
85
|
+
- lib/jekyll/templates/classic_template/theme_folders/_includes/google-analytics.html
|
86
|
+
- lib/jekyll/templates/classic_template/theme_folders/_includes/head.html
|
87
|
+
- lib/jekyll/templates/classic_template/theme_folders/_includes/header.html
|
88
|
+
- lib/jekyll/templates/classic_template/theme_folders/_includes/icon-github.html
|
89
|
+
- lib/jekyll/templates/classic_template/theme_folders/_includes/icon-github.svg
|
90
|
+
- lib/jekyll/templates/classic_template/theme_folders/_includes/icon-twitter.html
|
91
|
+
- lib/jekyll/templates/classic_template/theme_folders/_includes/icon-twitter.svg
|
92
|
+
- lib/jekyll/templates/classic_template/theme_folders/_layouts/default.html
|
93
|
+
- lib/jekyll/templates/classic_template/theme_folders/_layouts/home.html
|
94
|
+
- lib/jekyll/templates/classic_template/theme_folders/_layouts/page.html
|
95
|
+
- lib/jekyll/templates/classic_template/theme_folders/_layouts/post.html
|
96
|
+
- lib/jekyll/templates/classic_template/theme_folders/_sass/_base.scss
|
97
|
+
- lib/jekyll/templates/classic_template/theme_folders/_sass/_layout.scss
|
98
|
+
- lib/jekyll/templates/classic_template/theme_folders/_sass/_syntax-highlighting.scss
|
99
|
+
- lib/jekyll/templates/classic_template/theme_folders/assets/main.scss
|
100
|
+
- lib/jekyll/templates/site_template/.gitignore
|
101
|
+
- lib/jekyll/templates/site_template/Gemfile.erb
|
102
|
+
- lib/jekyll/templates/site_template/_config.yml.erb
|
103
|
+
- lib/jekyll/templates/site_template/_posts/0000-00-00-welcome-to-jekyll.md.erb
|
104
|
+
- lib/jekyll/templates/site_template/about.md
|
105
|
+
- lib/jekyll/templates/site_template/index.md
|
106
|
+
homepage: https://github.com/ashmaroli/jekyll-plus
|
107
|
+
licenses:
|
108
|
+
- MIT
|
109
|
+
metadata:
|
110
|
+
allowed_push_host: https://rubygems.org
|
111
|
+
post_install_message:
|
112
|
+
rdoc_options: []
|
113
|
+
require_paths:
|
114
|
+
- lib
|
115
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - ">="
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '0'
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
requirements: []
|
126
|
+
rubyforge_project:
|
127
|
+
rubygems_version: 2.6.7
|
128
|
+
signing_key:
|
129
|
+
specification_version: 4
|
130
|
+
summary: Additional switches for jekyll new command.
|
131
|
+
test_files: []
|