black-white-blue 1.0.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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: bb650430b4562d63b50319fd63066cde0a196439
4
+ data.tar.gz: 44761b523eaee62e7ee8255c866c02714e255514
5
+ SHA512:
6
+ metadata.gz: e477173ae093802182094a165bced27122e641199ec6a67ddc7771550495007b7c1e63bf58042cc45d06b1bf0cb87c76b094f25d313ab5d96e48d01e1834b877
7
+ data.tar.gz: c3a4463ae48d51a97d66170f18cfbfe6c1f9d541b1d4c637d2fb920bdb65bf7ff06810acab88f57398f136d6f56b9bf239190c81d5078c0f8795fa4aaa049371
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2016 David Zhang
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 all
13
+ 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 THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,74 @@
1
+ # Black White Blue
2
+
3
+ ![](https://travis-ci.org/crispgm/black-white-blue.svg)
4
+ [![Gem Version](https://badge.fury.io/rb/black-white-blue.svg)](https://badge.fury.io/rb/black-white-blue)
5
+
6
+ Black White Blue is a simple project page theme for Jekyll, which is designed to build project pages in a easier way.
7
+
8
+ Black, white and blue are the colors used in the page. White for background, black for text and blue for links.
9
+
10
+ ## Installation
11
+
12
+ Add this line to your Jekyll site's Gemfile:
13
+
14
+ ```ruby
15
+ gem "black-white-blue"
16
+ ```
17
+
18
+ And add this line to your Jekyll site:
19
+
20
+ ```yaml
21
+ theme: black-white-blue
22
+ ```
23
+
24
+ And then execute:
25
+
26
+ ```
27
+ $ bundle install
28
+ ```
29
+
30
+ ## Usage
31
+
32
+ ### Project Metadata
33
+
34
+ Project metadata is defined in `_config.yml`.
35
+
36
+ ### Changelog
37
+
38
+ Changelog is maintained in `_data/changelog.yml`.
39
+
40
+ For a version, simply add an yaml array item:
41
+
42
+ ```
43
+ - version: "1.0.1"
44
+ changes:
45
+ - text: Performance improved
46
+ hash: 3325193
47
+ - version: "1.0.1"
48
+ changes:
49
+ - text: Bugfix
50
+ issue: 12
51
+ - version: "1.0.0"
52
+ changes:
53
+ - text: "Initial version"
54
+ ```
55
+
56
+ Each version comes with multiple changes, and you may present a text with an issue ID. It will generate a link to the GitHub issue specified.
57
+
58
+ ### Google Analytics
59
+
60
+ Edit `_config.yml` and set your `track_id`:
61
+
62
+ ```
63
+ google_analytics: xx-xxxxx
64
+ ```
65
+
66
+ ### Disqus
67
+
68
+ * WIP
69
+
70
+ # Contributing
71
+
72
+ * [Black White Blue](https://github.com/crispgm/black-white-blue) is licensed under MIT License.
73
+ * If there is a bug, you may [file an issue](https://github.com/crispgm/black-white-blue/issues/new) or pull request directly.
74
+ * Pull requests for contribution is welcomed.
@@ -0,0 +1,18 @@
1
+ {% if page.comments != false and jekyll.environment == "production" %}
2
+ <div id="disqus" class="content">
3
+ <div id="disqus_thread"></div>
4
+ <script>
5
+ var disqus_config = function () {
6
+ this.page.url = '{{ page.url | absolute_url }}';
7
+ this.page.identifier = '{{ page.url | absolute_url }}';
8
+ };
9
+ (function() {
10
+ var d = document, s = d.createElement('script');
11
+ s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
12
+ s.setAttribute('data-timestamp', +new Date());
13
+ (d.head || d.body).appendChild(s);
14
+ })();
15
+ </script>
16
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
17
+ </div>
18
+ {% endif %}
@@ -0,0 +1,35 @@
1
+ <footer class="footer">
2
+ <div class="footer-links">
3
+ {% if site.project.email != nil and site.project.email != "" %}
4
+ <div class="footer-link-icon">
5
+ <a href="mailto:{{ site.project.email }}">
6
+ <i class="fa fa-envelope"></i>
7
+ </a>
8
+ </div>
9
+ {% endif %}
10
+ {% if site.project.repo != nil and site.project.repo != "" %}
11
+ <div class="footer-link-icon">
12
+ <a href="https://github.com/{{ site.project.repo }}">
13
+ <i class="fa fa-github"></i>
14
+ </a>
15
+ </div>
16
+ {% endif %}
17
+ {% if site.project.twitter != nil and site.project.twitter != "" %}
18
+ <div class="footer-link-icon">
19
+ <a href="https://twitter.com/{{ site.project.twitter }}">
20
+ <i class="fa fa-twitter"></i>
21
+ </a>
22
+ </div>
23
+ {% endif %}
24
+ {% if site.project.medium != nil and site.project.medium != "" %}
25
+ <div class="footer-link-icon">
26
+ <a href="https://medium.com/{{ site.project.medium }}">
27
+ <i class="fa fa-medium"></i>
28
+ </a>
29
+ </div>
30
+ {% endif %}
31
+ </div>
32
+ <div class="footer-copyright">
33
+ Copyright &copy; {{site.time | date: "%Y"}}, <a href="{{ site.project.author_link }}">{{ site.project.author }}</a>.
34
+ </div>
35
+ </footer>
@@ -0,0 +1,10 @@
1
+ {% if site.google_analytics != nil and site.google_analytics != "" and jekyll.environment == "production" %}
2
+ <script>
3
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
4
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
5
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
6
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
7
+ ga('create', '{{ site.google_analytics }}', 'auto');
8
+ ga('send', 'pageview');
9
+ </script>
10
+ {% endif %}
@@ -0,0 +1,15 @@
1
+ <head>
2
+ <meta charset="UTF-8">
3
+ <meta name="viewport" content="width=device-width, initial-scale=1">
4
+ <title>{{ page.title }} | {{ site.project.name }}</title>
5
+ <link rel="stylesheet" href="{{ site.baseurl }}/assets/style.css">
6
+ <script async defer src="https://buttons.github.io/buttons.js"></script>
7
+ <link href="//fonts.googleapis.com/css?family=Noto+Sans" rel="stylesheet">
8
+ <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet">
9
+ <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
10
+ {% if site.highlightjs %}
11
+ <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/styles/dracula.min.css">
12
+ <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.7.0/highlight.min.js"></script>
13
+ <script>hljs.initHighlightingOnLoad();</script>
14
+ {% endif %}
15
+ </head>
@@ -0,0 +1,19 @@
1
+ <header class="topbar">
2
+ <div class="menu">
3
+ <div class="menu-item">
4
+ <a href="{{ site.baseurl }}/">Home</a>
5
+ </div>
6
+ <div class="menu-item">
7
+ <a href="{{ site.baseurl }}/docs.html">Docs</a>
8
+ </div>
9
+ <div class="menu-item">
10
+ <a href="{{ site.baseurl }}/changelog.html">Changelog</a>
11
+ </div>
12
+ <div class="menu-item">
13
+ <a href="{{ site.baseurl }}/about.html">About</a>
14
+ </div>
15
+ </div>
16
+ <div class="title">
17
+ <a href="{{ site.baseurl }}/">{{ site.project.name }}</a>
18
+ </div>
19
+ </header>
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ {% include head.html %}
4
+ <body>
5
+ <div class="container">
6
+ {% include header.html %}
7
+ {{ content }}
8
+ {% include footer.html %}
9
+ </div>
10
+ </body>
11
+ </html>
@@ -0,0 +1,7 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
6
+
7
+ {% include google_analytics.html %}
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="section content">
6
+ <div class="content-title">
7
+ {{ page.title }}
8
+ </div>
9
+ </div>
10
+
11
+ <div class="article">
12
+ {{ content }}
13
+ </div>
14
+
15
+ {% include google_analytics.html %}
@@ -0,0 +1,17 @@
1
+ @charset "utf-8";
2
+
3
+ $page-width: 48rem;
4
+
5
+ $grey-9: #212529;
6
+ $grey-6: #868e96;
7
+ $grey-3: #dee2e6;
8
+ $grey-0: #f8f9fa;
9
+
10
+ $blue-5: #329af0;
11
+
12
+ @import 'frame';
13
+ @import 'header';
14
+ @import 'footer';
15
+ @import 'section';
16
+ @import 'content';
17
+ @import 'code-highlight';
@@ -0,0 +1,23 @@
1
+ // scss-lint:disable QualifyingElement
2
+ pre,
3
+ code {
4
+ font-family: "Source Code Pro", Menlo, Consolas, Courier, monospace;
5
+ hyphens: none;
6
+ }
7
+
8
+ pre.highlight {
9
+ border: 1px solid $grey-9;
10
+ border-radius: 4px;
11
+ font-size: 1rem;
12
+ }
13
+
14
+ code.hljs {
15
+ padding: .4rem;
16
+ }
17
+
18
+ code.highlighter-rouge {
19
+ border: 1px solid $grey-6;
20
+ border-radius: 4px;
21
+ font-weight: bold;
22
+ padding: 2px 4px;
23
+ }
@@ -0,0 +1,10 @@
1
+ .content {
2
+ font-size: 1rem;
3
+ padding: 3.2rem 0 1.6rem;
4
+ }
5
+
6
+ .content-title {
7
+ font-size: 2.4rem;
8
+ padding-bottom: 2.4rem;
9
+ text-align: center;
10
+ }
data/_sass/footer.scss ADDED
@@ -0,0 +1,31 @@
1
+ .footer {
2
+ border-top: solid 1px $grey-3;
3
+ line-height: 1.5;
4
+ margin: 2.4rem 0;
5
+ padding: 1rem 0;
6
+ }
7
+
8
+ .footer-copyright {
9
+ font-size: 1rem;
10
+ }
11
+
12
+ .footer-links {
13
+ display: flex;
14
+ float: right;
15
+
16
+ a {
17
+ color: $grey-6;
18
+
19
+ &:hover {
20
+ color: $grey-9;
21
+ }
22
+ }
23
+ }
24
+
25
+ .footer-link-icon {
26
+ margin-right: .4rem;
27
+
28
+ &:last-of-type {
29
+ margin-left: 0;
30
+ }
31
+ }
data/_sass/frame.scss ADDED
@@ -0,0 +1,53 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ html {
6
+ font-size: 16px;
7
+ width: 100%;
8
+ }
9
+
10
+ @media (max-width: $page-width) {
11
+ html {
12
+ font-size: 12px;
13
+ }
14
+ }
15
+
16
+ body {
17
+ background-color: $grey-0;
18
+ color: $grey-9;
19
+ font-family: -apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Hiragino Sans GB", "Microsoft Yahei", sans-serif;
20
+ font-size: 1rem;
21
+ -webkit-font-smoothing: antialiased;
22
+ height: 100%;
23
+ line-height: 1.5rem;
24
+ margin: 0;
25
+ text-align: center;
26
+ word-wrap: break-word;
27
+ }
28
+
29
+ img {
30
+ border: 0;
31
+ }
32
+
33
+ a {
34
+ color: $blue-5;
35
+ text-decoration: none;
36
+
37
+ &:hover {
38
+ text-decoration: underline;
39
+ }
40
+ }
41
+
42
+ .container {
43
+ margin: 0 auto;
44
+ max-width: 48rem;
45
+ text-align: left;
46
+ }
47
+
48
+ @media (max-width: $page-width) {
49
+ .container {
50
+ padding: 0 .4rem;
51
+ width: 100%;
52
+ }
53
+ }
data/_sass/header.scss ADDED
@@ -0,0 +1,23 @@
1
+ .topbar {
2
+ height: 3rem;
3
+ margin-top: .8rem;
4
+ }
5
+
6
+ .title {
7
+ font-weight: bold;
8
+ }
9
+
10
+ .menu {
11
+ display: flex;
12
+ float: right;
13
+ }
14
+
15
+ .menu-item {
16
+ padding-left: .8rem;
17
+ }
18
+
19
+ @media (max-width: 48rem) {
20
+ .menu-item {
21
+ padding-left: .4rem;
22
+ }
23
+ }
@@ -0,0 +1,82 @@
1
+ .section {
2
+ margin-bottom: 2.4rem;
3
+ padding-bottom: 3.2rem;
4
+
5
+ &:last-of-type {
6
+ margin-bottom: 0;
7
+ }
8
+ }
9
+
10
+ .back-top {
11
+ text-align: center;
12
+ }
13
+
14
+ .intro {
15
+ text-align: center;
16
+ }
17
+
18
+ .intro-logo {
19
+ text-align: center;
20
+
21
+ img {
22
+ height: 10rem;
23
+ width: 10rem;
24
+ }
25
+ }
26
+
27
+ .intro-text {
28
+ font-size: 2rem;
29
+ margin: 4.8rem 0;
30
+ }
31
+
32
+ .intro-desc {
33
+ color: $grey-6;
34
+ margin: 3.6rem 0;
35
+ }
36
+
37
+ .intro-button {
38
+ display: flex;
39
+ justify-content: center;
40
+ margin: 0 auto;
41
+ }
42
+
43
+ .install-item {
44
+ background-color: $grey-9;
45
+ border-radius: 8px;
46
+ color: $grey-9;
47
+ font-size: 1.6rem;
48
+ margin-right: .8rem;
49
+ padding: .8rem 1.6rem;
50
+
51
+ a {
52
+ color: $grey-3;
53
+ }
54
+
55
+ &:hover {
56
+ border-color: $blue-5;
57
+
58
+ a {
59
+ color: $blue-5;
60
+ text-decoration: none;
61
+ }
62
+ }
63
+
64
+ &:last-of-type {
65
+ margin-right: 0;
66
+ }
67
+ }
68
+
69
+ .intro-version {
70
+ margin: 2rem;
71
+ }
72
+
73
+ @media (max-width: 48rem) {
74
+ .intro-button {
75
+ margin-top: 2rem;
76
+ }
77
+
78
+ .intro-text {
79
+ font-size: 1.1rem;
80
+ margin-top: 3rem;
81
+ }
82
+ }
data/assets/style.scss ADDED
@@ -0,0 +1,11 @@
1
+ ---
2
+ # Only the main Sass file needs front matter (the dashes are enough)
3
+ ---
4
+
5
+ @import "black-white-blue";
6
+
7
+ .social {
8
+ text-align: center;
9
+ margin-top: 1rem;
10
+ padding-bottom: 1rem;
11
+ }
metadata ADDED
@@ -0,0 +1,119 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: black-white-blue
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - David Zhang
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-11-23 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: scss_lint
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description:
70
+ email:
71
+ - crispgm@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - LICENSE
77
+ - README.md
78
+ - _includes/disqus_comments.html
79
+ - _includes/footer.html
80
+ - _includes/google_analytics.html
81
+ - _includes/head.html
82
+ - _includes/header.html
83
+ - _layouts/default.html
84
+ - _layouts/index.html
85
+ - _layouts/page.html
86
+ - _sass/black-white-blue.scss
87
+ - _sass/code-highlight.scss
88
+ - _sass/content.scss
89
+ - _sass/footer.scss
90
+ - _sass/frame.scss
91
+ - _sass/header.scss
92
+ - _sass/section.scss
93
+ - assets/style.scss
94
+ homepage: https://github.com/crispgm/black-white-blue
95
+ licenses:
96
+ - MIT
97
+ metadata:
98
+ plugin_type: theme
99
+ post_install_message:
100
+ rdoc_options: []
101
+ require_paths:
102
+ - lib
103
+ required_ruby_version: !ruby/object:Gem::Requirement
104
+ requirements:
105
+ - - ">="
106
+ - !ruby/object:Gem::Version
107
+ version: '0'
108
+ required_rubygems_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: '0'
113
+ requirements: []
114
+ rubyforge_project:
115
+ rubygems_version: 2.6.11
116
+ signing_key:
117
+ specification_version: 4
118
+ summary: A simple and minimal project page theme for Jekyll.
119
+ test_files: []