simplicity 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f612dc2c1db7e0725c385be6898d381d33755f66
4
+ data.tar.gz: 72252dedc5e09165c5e81bf624218d5f9d5a36ae
5
+ SHA512:
6
+ metadata.gz: d1ba6639452e48f040f22ffe3214641a5fce43db128682d828745c36b3a8cfdcf48ec6f5ae63d33c82cf454a73d7555c63aaf7a627197dcd6157e95bf128dc5c
7
+ data.tar.gz: c3ad4fb733f5d09428fa2e573cd5229a1e1889a24d78925884fe897d5c8b45d513c5a3c7bdc00da7c6a70f2da36b5e0d2a3e51466fbb0c980687269a47c49cb5
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 bananaappletw
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.
data/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # simplicity
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
6
+
7
+ ## Installation
8
+
9
+ Add this line to your Jekyll site's `Gemfile`:
10
+
11
+ ```ruby
12
+ gem "simplicity"
13
+ ```
14
+
15
+ And add this line to your Jekyll site's `_config.yml`:
16
+
17
+ ```yaml
18
+ theme: simplicity
19
+ ```
20
+
21
+ And then execute:
22
+
23
+ $ bundle
24
+
25
+ Or install it yourself as:
26
+
27
+ $ gem install simplicity
28
+
29
+ ## Usage
30
+
31
+ TODO: Write usage instructions here. Describe your available layouts, includes, and/or sass.
32
+
33
+ ## Contributing
34
+
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.
36
+
37
+ ## Development
38
+
39
+ To set up your environment to develop this theme, run `bundle install`.
40
+
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.
42
+
43
+ When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
44
+
45
+ ## License
46
+
47
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
48
+
@@ -0,0 +1,20 @@
1
+ {% if page.comments != false and jekyll.environment == "production" %}
2
+
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
+
10
+ (function() {
11
+ var d = document, s = d.createElement('script');
12
+
13
+ s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
14
+
15
+ s.setAttribute('data-timestamp', +new Date());
16
+ (d.head || d.body).appendChild(s);
17
+ })();
18
+ </script>
19
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
20
+ {% endif %}
@@ -0,0 +1,36 @@
1
+ <footer id="footer" class="ui inverted segment">
2
+ <div class="ui center aligned container">
3
+ <div class="ui inverted horizontal divided link list">
4
+ {% if site.facebook %}
5
+ <a class="item" href="{{site.facebook}}">
6
+ <i class="facebook icon"></i>
7
+ Facebook
8
+ </a>
9
+ {% endif %}
10
+ {% if site.github %}
11
+ <a class="item" href="{{ site.github }}">
12
+ <i class="github icon"></i>
13
+ Github
14
+ </a>
15
+ {% endif %}
16
+ {% if site.linkedin%}
17
+ <a class="item" href="{{ site.linkedin }}">
18
+ <i class="linkedin icon"></i>
19
+ Linkedin
20
+ </a>
21
+ {% endif %}
22
+ {% if site.stack_overflow %}
23
+ <a class="item" href="{{ site.stack_overflow }}">
24
+ <i class="stack overflow icon"></i>
25
+ Stack Overflow
26
+ </a>
27
+ {% endif %}
28
+ {% if site.twitter %}
29
+ <a class="item" href="{{ site.twitter }}">
30
+ <i class="twitter icon"></i>
31
+ Twitter
32
+ </a>
33
+ {% endif %}
34
+ </div>
35
+ </div>
36
+ </footer>
@@ -0,0 +1,11 @@
1
+ <script>
2
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
3
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
4
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
5
+ })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
6
+
7
+ ga('create', '{{ site.google_analytics }}', 'auto');
8
+ ga('send', 'pageview');
9
+
10
+ </script>
11
+
@@ -0,0 +1,19 @@
1
+ <head>
2
+ <meta charset="utf-8">
3
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
+ <meta name="viewport" content="width=device-width, initial-scale=1">
5
+
6
+ <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
7
+ <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
8
+
9
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.11/semantic.min.css" />
10
+ <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
11
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | absolute_url }}">
12
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ "/feed.xml" | relative_url }}">
13
+
14
+ {% if jekyll.environment == 'production' and site.google_analytics %}
15
+ {% include google-analytics.html %}
16
+ {% endif %}
17
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
18
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.11/semantic.min.js"></script>
19
+ </head>
@@ -0,0 +1,15 @@
1
+ <header id="header" class="ui inverted menu">
2
+ {% assign default_paths = site.pages | map: "path" %}
3
+ {% assign page_paths = site.header_pages | default: default_paths %}
4
+ <a class="item ui image" href="{{ "/" | relative_url }}">
5
+ <img src="/assets/icon_avatar.jpg" alt="Icon avatar" />
6
+ </a>
7
+ {% if page_paths %}
8
+ {% for path in page_paths %}
9
+ {% assign my_page = site.pages | where: "path", path | first %}
10
+ {% if my_page.title %}
11
+ <a class="item" href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a>
12
+ {% endif %}
13
+ {% endfor %}
14
+ {% endif %}
15
+ </header>
@@ -0,0 +1,35 @@
1
+ <div class="four wide column">
2
+ <aside class="ui tertiary blue raised segment">
3
+ <h1 class="header">Categories</h1>
4
+ {% for category in site.categories %}
5
+ <div class="ui link items">
6
+ <div class="item">
7
+ <div class="content">
8
+ <div class="header">
9
+ {{category | first}}
10
+ </div>
11
+ <div class="list">
12
+ {% for posts in category %}
13
+ {% for post in posts %}
14
+ {% if post.url %}
15
+ {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
16
+ <div class="item">
17
+ <div class="content">
18
+ <a class="header" href="{{ post.url | relative_url }}">
19
+ {{ post.title | escape }}
20
+ </a>
21
+ <div class="right floated">
22
+ {{ post.date | date: date_format }}
23
+ </div>
24
+ </div>
25
+ </div>
26
+ {% endif %}
27
+ {% endfor %}
28
+ {% endfor %}
29
+ </div>
30
+ </div>
31
+ </div>
32
+ </div>
33
+ {% endfor %}
34
+ </aside>
35
+ </div>
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
+ {% include head.html %}
4
+ <body>
5
+ {% include header.html %}
6
+ <main class="ui centered grid">
7
+ {{ content }}
8
+ </main>
9
+ {% include footer.html %}
10
+ </body>
11
+ </html>
@@ -0,0 +1,30 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="ten wide column">
6
+ <article class="ui green raised segment">
7
+ <h1 class="header">Posts</h1>
8
+ <div class="ui items">
9
+ {% for post in site.posts %}
10
+ <div class="item">
11
+ {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
12
+ <div class="content">
13
+ <a class="header" href="{{ post.url | relative_url }}">
14
+ {{ post.title | escape }}
15
+ </a>
16
+ <div class="meta">
17
+ {{ post.date | date: date_format }}
18
+ </div>
19
+ </div>
20
+ </div>
21
+ {% endfor %}
22
+ </div>
23
+ </article>
24
+ </div>
25
+
26
+ {{ content }}
27
+
28
+ <div class="four wide column">
29
+ {% include sidebar.html %}
30
+ </div>
@@ -0,0 +1,13 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="fourteen wide column">
5
+ <article class="ui green raised segment">
6
+ <header>
7
+ <h1 class="post-title">{{ page.title | escape }}</h1>
8
+ </header>
9
+ <div class="post-content">
10
+ {{ content }}
11
+ </div>
12
+ </article>
13
+ </div>
@@ -0,0 +1,29 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="ten wide column">
5
+ <article class="ui green raised segment">
6
+ <header>
7
+ <h1 class="header">{{ page.title | escape }}</h1>
8
+ <p>
9
+ <time datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
10
+ {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
11
+ {{ page.date | date: date_format }}
12
+ </time>
13
+ {% if page.author %}
14
+ • <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span itemprop="name">{{ page.author }}</span></span>
15
+ {% endif %}</p>
16
+ </header>
17
+
18
+ <div class="ui text">
19
+ {{ content }}
20
+ </div>
21
+
22
+ {% if site.disqus.shortname %}
23
+ {% include disqus_comments.html %}
24
+ {% endif %}
25
+ </article>
26
+ </div>
27
+ <div class="four wide column">
28
+ {% include sidebar.html %}
29
+ </div>
@@ -0,0 +1,21 @@
1
+ pre,
2
+ code {
3
+ border: 1px solid grey;
4
+ border-radius: 3px;
5
+ background-color: #eef;
6
+ }
7
+
8
+ code {
9
+ padding: 1px 5px;
10
+ }
11
+
12
+ pre {
13
+ padding: 8px 12px;
14
+ overflow-x: auto;
15
+
16
+ > code {
17
+ border: 0;
18
+ padding-right: 0;
19
+ padding-left: 0;
20
+ }
21
+ }
@@ -0,0 +1,20 @@
1
+ body{
2
+ display: flex;
3
+ flex-direction: column;
4
+ min-height: 100vh;
5
+ }
6
+
7
+ #header{
8
+ flex: none;
9
+ border-radius: 0;
10
+ }
11
+
12
+ main{
13
+ flex: 1 0 auto;
14
+ background-color: pink;
15
+ }
16
+
17
+ #footer{
18
+ flex: none;
19
+ border-radius: 0;
20
+ }
@@ -0,0 +1,77 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight, .highlight .w {
4
+ color: #303030;
5
+ }
6
+ .highlight .err {
7
+ color: #151515;
8
+ background-color: #ac4142;
9
+ }
10
+ .highlight .c, .highlight .cd, .highlight .cm, .highlight .c1, .highlight .cs {
11
+ color: #505050;
12
+ }
13
+ .highlight .cp {
14
+ color: #f4bf75;
15
+ }
16
+ .highlight .nt {
17
+ color: #f4bf75;
18
+ }
19
+ .highlight .o, .highlight .ow {
20
+ color: #d0d0d0;
21
+ }
22
+ .highlight .p, .highlight .pi {
23
+ color: #d0d0d0;
24
+ }
25
+ .highlight .gi {
26
+ color: #90a959;
27
+ }
28
+ .highlight .gd {
29
+ color: #ac4142;
30
+ }
31
+ .highlight .gh {
32
+ color: #6a9fb5;
33
+ background-color: #151515;
34
+ font-weight: bold;
35
+ }
36
+ .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
37
+ color: #aa759f;
38
+ }
39
+ .highlight .kc {
40
+ color: #d28445;
41
+ }
42
+ .highlight .kt {
43
+ color: #d28445;
44
+ }
45
+ .highlight .kd {
46
+ color: #d28445;
47
+ }
48
+ .highlight .s, .highlight .sb, .highlight .sc, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
49
+ color: #90a959;
50
+ }
51
+ .highlight .sr {
52
+ color: #75b5aa;
53
+ }
54
+ .highlight .si {
55
+ color: #8f5536;
56
+ }
57
+ .highlight .se {
58
+ color: #8f5536;
59
+ }
60
+ .highlight .nn {
61
+ color: #f4bf75;
62
+ }
63
+ .highlight .nc {
64
+ color: #f4bf75;
65
+ }
66
+ .highlight .no {
67
+ color: #f4bf75;
68
+ }
69
+ .highlight .na {
70
+ color: #6a9fb5;
71
+ }
72
+ .highlight .m, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mb, .highlight .mx {
73
+ color: #90a959;
74
+ }
75
+ .highlight .ss {
76
+ color: #90a959;
77
+ }
@@ -0,0 +1,6 @@
1
+ @charset "utf-8";
2
+ @import
3
+ "simplicity/base",
4
+ "simplicity/layout",
5
+ "simplicity/syntax"
6
+ ;
Binary file
data/assets/main.scss ADDED
@@ -0,0 +1,5 @@
1
+ ---
2
+ # Only the main Sass file needs front matter (the dashes are enough)
3
+ ---
4
+
5
+ @import "simplicity";
metadata ADDED
@@ -0,0 +1,104 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simplicity
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - bananaappletw
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-08-13 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.5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.5'
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
+ description:
56
+ email:
57
+ - bananaappletw@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE.txt
63
+ - README.md
64
+ - _includes/disqus_comments.html
65
+ - _includes/footer.html
66
+ - _includes/google-analytics.html
67
+ - _includes/head.html
68
+ - _includes/header.html
69
+ - _includes/sidebar.html
70
+ - _layouts/default.html
71
+ - _layouts/home.html
72
+ - _layouts/page.html
73
+ - _layouts/post.html
74
+ - _sass/simplicity.scss
75
+ - _sass/simplicity/_base.scss
76
+ - _sass/simplicity/_layout.scss
77
+ - _sass/simplicity/_syntax.scss
78
+ - assets/icon_avatar.jpg
79
+ - assets/main.scss
80
+ homepage: https://github.com/bananaappletw/simplicity
81
+ licenses:
82
+ - MIT
83
+ metadata: {}
84
+ post_install_message:
85
+ rdoc_options: []
86
+ require_paths:
87
+ - lib
88
+ required_ruby_version: !ruby/object:Gem::Requirement
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ version: '0'
93
+ required_rubygems_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ requirements: []
99
+ rubyforge_project:
100
+ rubygems_version: 2.6.12
101
+ signing_key:
102
+ specification_version: 4
103
+ summary: 'simplicity: simple theme built by flexbox'
104
+ test_files: []