jekyll-theme-cheap 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb4638096cde2899e7362b1c3b9d8412c5db74c3
4
- data.tar.gz: c0b1009f1e3e96b2ea387aaae2979d1251d88ce4
3
+ metadata.gz: 7c1faa1079e03206a856c38115d0410ab1d8759e
4
+ data.tar.gz: 63ffad89cb751754cb435daf25195178443c3f3f
5
5
  SHA512:
6
- metadata.gz: ba32a39808f6e2808b7d1b4a0286e94625de955f499a1d2871d8dd0b6289c18726aef03bb9bd372825380011781a5366399aef763508f51cae7ca80b81ac74da
7
- data.tar.gz: 549119f1d64d69847847b453bd8cc866a90fb547a6a1fd42d3f67f7af271ad8e653827d7144ee75671aabdfeffd5ccf08589dc826087dd8f8af390b3f3db5c35
6
+ metadata.gz: 425a81803023e229d06ea7e7e6e548fa8c6eaaab870c53fae625e71599c366f47735fd7082eb9605a8ae294aba4d0f2d9d695985f4bfc97af853e71c776610c6
7
+ data.tar.gz: b70bc44f087a7015f8672732ad6e6e750629357fb999e94c4f95d541b0561b3e7a9aee77a3022b1dfa309ecd6fe28116a770db3a2ee14406640ed57fdf3f94c1
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # jekyll-theme-cheap
2
2
 
3
- Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes` and your sass in `_sass`. To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ this is cheap jekyll theme.
6
4
 
7
5
  ## Installation
8
6
 
@@ -32,17 +30,29 @@ TODO: Write usage instructions here. Describe your available layouts, includes,
32
30
 
33
31
  ## Contributing
34
32
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
33
+ Bug reports and pull requests are
34
+ welcome on GitHub at https://github.com/itooww/jekyll-theme-cheap.
35
+ This project is intended to be a safe, welcoming space for collaboration,
36
+ and contributors are expected to adhere
37
+ to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
38
 
37
39
  ## Development
38
40
 
39
41
  To set up your environment to develop this theme, run `bundle install`.
40
42
 
41
- Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
43
+ Your theme is setup just like a normal Jekyll site! To test your theme,
44
+ run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`.
45
+ This starts a Jekyll server using your theme.
46
+ Add pages, documents, data, etc. like normal to test your theme's contents.
47
+ As you make modifications to your theme and to your content,
48
+ your site will regenerate and you should see the changes
49
+ in the browser after a refresh, just like normal.
42
50
 
43
- When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
51
+ When your theme is released,
52
+ only the files in `_layouts`, `_includes`, and `_sass` tracked
53
+ with Git will be released.
44
54
 
45
55
  ## License
46
56
 
47
- The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
48
-
57
+ The theme is available as open source
58
+ under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,15 @@
1
+ <footer class="text-center">
2
+ <hr>
3
+ <p class="copyright">
4
+ Copyright &copy;
5
+ <a href="https://github.com/{{ site.github_username }}" target="_blank">
6
+ {{ site.github_username }}
7
+ </a>
8
+ </p>
9
+ <p>
10
+ Powered by
11
+ <a href="https://github.com/itooww/jekyll-theme-cheap" target="_blank">
12
+ jekyll-theme-cheap
13
+ </a>
14
+ </p>
15
+ </footer>
@@ -0,0 +1,20 @@
1
+ <nav class="navbar navbar-default">
2
+ <div class="container-fluid">
3
+ <div class="navbar-collapse" id="bs-example-navbar-collapse-1">
4
+ <ul class="nav navbar-nav navbar-left">
5
+ <li>
6
+ <a href="/">Home</a>
7
+ </li>
8
+ </ul>
9
+ <ul class="nav navbar-nav navbar-right">
10
+ {% for my_page in site.pages %}
11
+ {% if my_page.title %}
12
+ <li>
13
+ <a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape}}</a>
14
+ </li>
15
+ {% endif %}
16
+ {% endfor %}
17
+ </ul>
18
+ </div><!-- /.navbar-collapse -->
19
+ </div><!-- /.container-fluid -->
20
+ </nav>
@@ -0,0 +1,39 @@
1
+ <div class="col-md-4">
2
+ <h2>
3
+ Static Pages
4
+ </h2>
5
+ <ul>
6
+ {% for page in site.pages %}
7
+ {% if page.title %}
8
+ <li>
9
+ <a href="{{ page.url | relative_url }}">{{ page.title | escape }}</a>
10
+ </li>
11
+ {% endif %}
12
+ {% endfor %}
13
+ </ul>
14
+ <h2>
15
+ Social Links
16
+ </h2>
17
+ <ul>
18
+ {% if site.github_username != nil %}
19
+ <li>
20
+ <a
21
+ href="https://github.com/{{ site.github_username }}"
22
+ target="_blank"
23
+ >
24
+ {{ site.github_username }}@github
25
+ </a>
26
+ </li>
27
+ {% endif %}
28
+ {% if site.twitter_username != nil %}
29
+ <li>
30
+ <a
31
+ href="https://twitter.com/{{ site.twitter_username }}"
32
+ target="_blank"
33
+ >
34
+ {{ site.twitter_username }}@twitter
35
+ </a>
36
+ </li>
37
+ {% endif %}
38
+ </ul>
39
+ </div>
@@ -0,0 +1,20 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="categories-header">
6
+ <h1>Categories</h1>
7
+ </div>
8
+
9
+ {% for category in site.categories %}
10
+ <h2>{{ category[0] }}</h2>
11
+ <ul>
12
+ {% for posts in category %}
13
+ {% for post in posts %}
14
+ {% if post.title != nil %}
15
+ <li><a href="{{ post.url }}">{{ post.title }}</a></li>
16
+ {% endif %}
17
+ {% endfor %}
18
+ {% endfor %}
19
+ </ul>
20
+ {% endfor %}
@@ -1 +1,90 @@
1
- {{ content }}
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1">
7
+ {% feed_meta %}
8
+
9
+ <title>
10
+ {{ site.title | default: site.github.repository_name }}
11
+ by {{ site.github.owner_name }}
12
+ </title>
13
+
14
+ <!-- Bootstrap -->
15
+ <link
16
+ rel="stylesheet"
17
+ href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
18
+ integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
19
+ crossorigin="anonymous"
20
+ >
21
+ <link
22
+ rel="stylesheet"
23
+ href="{{
24
+ '/assets/css/styles.css?v=' |
25
+ append: site.github.build_revision |
26
+ relative_url
27
+ }}"
28
+ >
29
+ <link
30
+ rel="stlysheed"
31
+ href="https://cdnjs.cloudflare.com/ajax/libs/jquery.tocify/1.9.0/stylesheets/jquery.tocify.min.css"
32
+ >
33
+ <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
34
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
35
+ <!--[if lt IE 9]>
36
+ <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
37
+ <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
38
+ <![endif]-->
39
+ </head>
40
+ <body>
41
+
42
+ <div id="wrapper">
43
+ {{ content }}
44
+ </div>
45
+
46
+ {% include footer.html %}
47
+
48
+ <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
49
+ <script
50
+ src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"
51
+ >
52
+ </script>
53
+ <!-- Include all compiled plugins (below), or include individual files as needed -->
54
+ <script
55
+ src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
56
+ integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa"
57
+ crossorigin="anonymous">
58
+ </script>
59
+
60
+ <script
61
+ src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"
62
+ type="text/javascript"
63
+ >
64
+ </script>
65
+
66
+ <script src="https://code.jquery.com/ui/1.12.0/jquery-ui.min.js">
67
+ </script>
68
+
69
+ <script
70
+ src="https://cdnjs.cloudflare.com/ajax/libs/jquery.tocify/1.9.0/javascripts/jquery.tocify.min.js"
71
+ >
72
+ </script>
73
+
74
+ <script
75
+ src="{{
76
+ '/assets/js/toc.js?v=' |
77
+ append: site.github.build_revision |
78
+ relative_url
79
+ }}"
80
+ >
81
+ </script>
82
+ <script>
83
+ $(function(){
84
+ if ($("img").length) {
85
+ $("img").addClass("img-responsive");
86
+ }
87
+ });
88
+ </script>
89
+ </body>
90
+ </html>
@@ -0,0 +1,42 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="home">
6
+ <div class="row">
7
+
8
+ <div class="col-md-12 text-center">
9
+ <div class="jumbotron text-center">
10
+ <h1 class="page-heading">
11
+ {{ site.title }}
12
+ <br>
13
+ <small>{{ site.description }}</small>
14
+ </h1>
15
+ </div>
16
+ </div>
17
+
18
+ <div class="col-md-8">
19
+ <h2>
20
+ Posts
21
+ <small class="rss-subscribe">
22
+ subscribe
23
+ <a href="{{ "/feed.xml" | relative_url }}">via RSS</a>
24
+ </small>
25
+ </h2>
26
+ {% for post in site.posts %}
27
+ <article>
28
+ <h3>
29
+ <a class="post-link" href="{{ post.url | relative_url }}">
30
+ {{ post.title | escape }}
31
+ </a>
32
+ </h3>
33
+ <span class="post-meta">
34
+ posted at {{ post.date | date: "%Y-%m-%d %H:%M:%S" }}
35
+ </span>
36
+ </article>
37
+ {% endfor %}
38
+ </div>
39
+
40
+ {% include sidebar.html %}
41
+ </div><!-- /.row -->
42
+ </div>
@@ -2,4 +2,45 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- {{ content }}
5
+ <div class="row">
6
+
7
+ <div class="col-md-8">
8
+ <h1 class="post-header-1">{{ page.title }}</h1>
9
+
10
+ {{ content }}
11
+
12
+ <div class="btn-group btn-group-justified" role="group">
13
+ <a
14
+ class="
15
+ btn
16
+ btn-primary
17
+ {% if page.previous != nil %}
18
+ disabled
19
+ {% endif %}
20
+ "
21
+ href="{% if page.previous != nil %}{{ page.previous }}{% endif %}"
22
+ >
23
+ <span class="glyphicon glyphicon-arrow-left"></span>
24
+ PREV
25
+ </a>
26
+ <a class="btn btn-primary" href="/">
27
+ <span class="glyphicon glyphicon-home"></span>
28
+ BACK TO HOME
29
+ </a>
30
+ <a
31
+ class="btn btn-primary {% if page.next != nil %}disabled{% endif %}"
32
+ href="{% if page.next != nil %}{{ page.next }}{% endif %}"
33
+ >
34
+ NEXT
35
+ <span class="glyphicon glyphicon-arrow-right"></span>
36
+ </a>
37
+ </div>
38
+ </div>
39
+ <div class="col-md-offset-8 col-md-3 affix post-sidebar">
40
+ <h2>
41
+ TOC
42
+ </h2>
43
+ <div class="post-toc" id="toc">
44
+ </div>
45
+ </div>
46
+ </div>
@@ -0,0 +1,72 @@
1
+ $red:#FF3399;
2
+ $gray:#f8f8f8;
3
+ $header-border: #e7e7e7;
4
+ $header-border: #777;
5
+ $text-border: 2px;
6
+
7
+ %header-base {
8
+ color: $header-border;
9
+ }
10
+
11
+ nav {
12
+ padding: 0px 10px;
13
+ }
14
+
15
+ #wrapper {
16
+ padding: 10px 20px;
17
+ }
18
+
19
+ article {
20
+ margin: 12px 0px;
21
+ }
22
+
23
+ h1, h2, h3, h4, h5, h6 {
24
+ display: inline;
25
+ }
26
+
27
+ h1:before {
28
+ @extend %header-base;
29
+ font-size: 36px;
30
+ content: "# ";
31
+ }
32
+
33
+ h2:before {
34
+ @extend %header-base;
35
+ font-size: 30px;
36
+ content: "## ";
37
+ }
38
+
39
+ h3:before {
40
+ @extend %header-base;
41
+ font-size: 24px;
42
+ content: "### ";
43
+ }
44
+
45
+ h4:before {
46
+ @extend %header-base;
47
+ font-size: 18px;
48
+ content: "#### ";
49
+ }
50
+
51
+ h5:before {
52
+ @extend %header-base;
53
+ font-size: 12px;
54
+ content: "##### ";
55
+ }
56
+
57
+ h6:before {
58
+ @extend %header-base;
59
+ font-size: 6px;
60
+ content: "###### ";
61
+ }
62
+
63
+ .post-header-1 {
64
+ margin: 12px 0px;
65
+ display: block;
66
+ }
67
+
68
+ .post-sidebar {
69
+ background-color: #eee;
70
+ border-radius: 1em;
71
+ padding-top: 18px;
72
+ }
@@ -0,0 +1,4 @@
1
+ ---
2
+ ---
3
+
4
+ @import "jekyll-theme-cheap";
@@ -0,0 +1,7 @@
1
+ $(function(){
2
+ if ($("#toc").length) {
3
+ $("#toc").tocify({
4
+ showAndHideOnScroll: false
5
+ });
6
+ }
7
+ });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-cheap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - itooww
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-27 00:00:00.000000000 Z
11
+ date: 2017-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -61,9 +61,17 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - LICENSE.txt
63
63
  - README.md
64
+ - _includes/footer.html
65
+ - _includes/header.html
66
+ - _includes/sidebar.html
67
+ - _layouts/categories.html
64
68
  - _layouts/default.html
69
+ - _layouts/home.html
65
70
  - _layouts/page.html
66
71
  - _layouts/post.html
72
+ - _sass/jekyll-theme-cheap.scss
73
+ - assets/css/styles.scss
74
+ - assets/js/toc.js
67
75
  homepage: https://github.com/itooww/jekyll-theme-cheap
68
76
  licenses:
69
77
  - MIT