jekyll-theme-golgif 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: dd15525f563f3199aa1cf19cdd2c80f4fa6b048d
4
+ data.tar.gz: 197f21a63ab5eb54b8fd6d9e2879db8a5bf44cd8
5
+ SHA512:
6
+ metadata.gz: 5d6aa99c162d30a5af9fb0ba3bdcec77bd75dc29f7a138cea7c076b0986591179aaa704d0bc8eee693632c82e9d7f1483cbcf4b3cac32299f89ba19345d21824
7
+ data.tar.gz: 0238cdc3f692c1da6998c3ac36700f3befee69ef42f73c29cd7de7bd64e4de88196e688e4fbcde220b78e5b10fce1e4e4d293a3cc9ddc3ac938b8614e385cb09
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 arzyu
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
+ # jekyll-theme-golgif
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 "jekyll-theme-golgif"
13
+ ```
14
+
15
+ And add this line to your Jekyll site's `_config.yml`:
16
+
17
+ ```yaml
18
+ theme: jekyll-theme-golgif
19
+ ```
20
+
21
+ And then execute:
22
+
23
+ $ bundle
24
+
25
+ Or install it yourself as:
26
+
27
+ $ gem install jekyll-theme-golgif
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
+ <div class="archives">
2
+ {% for post in site.posts %}
3
+ {% assign post_year = post.date | date: "%Y" %}
4
+ {% if post_year != year %}
5
+ {% unless forloop.first %}
6
+ </ul>
7
+ {% endunless %}
8
+ <h2>{{ post_year }}</h2>
9
+ <ul>
10
+ {% assign year = post_year %}
11
+ {% endif %}
12
+ <li property="blogPost" typeof="BlogPosting">
13
+ <a property="url" href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a>
14
+ <span class="post-date">{{ post.date | date: "%m/%d" }}</span>
15
+ </li>
16
+ {% if forloop.last %}
17
+ </ul>
18
+ {% endif %}
19
+ {% endfor %}
20
+ </div>
@@ -0,0 +1,12 @@
1
+ <meta charset="utf-8">
2
+ <meta name="viewport" content="width=device-width, initial-scale=1">
3
+
4
+ <title>{% if page.title %}{{ page.title | escape }}{% else %}{{ site.title | escape }}{% endif %}</title>
5
+ <meta name="description" content="{{ page.excerpt | default: site.description | strip_html | normalize_whitespace | truncate: 160 | escape }}">
6
+
7
+ <link rel="stylesheet" href="{{ '/assets/main.css' | relative_url }}">
8
+ <link rel="alternate" type="application/rss+xml" title="{{ site.title | escape }}" href="{{ '/feed.xml' | relative_url }}">
9
+
10
+ {% if jekyll.environment == 'production' and site.google_analytics %}
11
+ {% include google-analytics.html %}
12
+ {% endif %}
@@ -0,0 +1,3 @@
1
+ <div class="site-info">
2
+ <div property="author" typeof="Person"><span property="name">arzyu</span></div>
3
+ </div>
@@ -0,0 +1,5 @@
1
+ <!DOCTYPE html>
2
+ {% include head.html %}
3
+ <body vocab="http://schema.org/" typeof="Blog">
4
+ <div class="main">{{ content }}</div>
5
+ </body>
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {% include archives.html %}
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,11 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <article class="post">
6
+ <h1 class="post-title">{{ page.title }}</h1>
7
+ <div class="post-date">
8
+ <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%Y年%m月%d日" }}</time>
9
+ </div>
10
+ {{ content }}
11
+ </article>
data/_sass/_base.scss ADDED
@@ -0,0 +1,17 @@
1
+ html, body {
2
+ margin: 0;
3
+ padding: 0;
4
+ }
5
+
6
+ body {
7
+ margin: 0;
8
+ font-family: $root-font-family;
9
+ font-size: $root-font-size;
10
+ line-height: $root-line-height;
11
+ color: $body-color;
12
+ background-color: $body-bg-color;
13
+ }
14
+
15
+ a {
16
+ color: $link-color;
17
+ }
data/_sass/_code.scss ADDED
@@ -0,0 +1,51 @@
1
+ // Inline and block-level code snippets. Includes tweaks to syntax highlighted
2
+ // snippets from Pygments/Rouge and Gist embeds.
3
+
4
+ code,
5
+ pre {
6
+ font-family: $code-font-family;
7
+ }
8
+
9
+ code {
10
+ padding: .25em .5em;
11
+ font-size: 85%;
12
+ color: $code-color;
13
+ background-color: #f9f9f9;
14
+ border-radius: 3px;
15
+ }
16
+
17
+ pre {
18
+ margin-top: 0;
19
+ margin-bottom: 1rem;
20
+ }
21
+
22
+ pre code {
23
+ padding: 0;
24
+ font-size: 100%;
25
+ color: inherit;
26
+ background-color: transparent;
27
+ }
28
+
29
+ // Pygments via Jekyll
30
+ .highlight {
31
+ padding: 1rem;
32
+ margin-bottom: 1rem;
33
+ font-size: .8rem;
34
+ line-height: 1.4;
35
+ background-color: #f9f9f9;
36
+ border-radius: .25rem;
37
+
38
+ pre {
39
+ margin-bottom: 0;
40
+ overflow-x: auto;
41
+ }
42
+
43
+ .lineno {
44
+ display: inline-block; // Ensures the null space also isn't selectable
45
+ padding-right: .75rem;
46
+ padding-left: .25rem;
47
+ color: #999;
48
+ // Make sure numbers aren't selectable
49
+ user-select: none;
50
+ }
51
+ }
@@ -0,0 +1,66 @@
1
+ .highlight { background-color: #ffc; }
2
+ .highlight .hll { background-color: #ffc; }
3
+ .highlight .c { color: #999; } /* Comment */
4
+ .highlight .err { color: #a00; background-color: #faa } /* Error */
5
+ .highlight .k { color: #069; } /* Keyword */
6
+ .highlight .o { color: #555 } /* Operator */
7
+ .highlight .cm { color: #09f; font-style: italic } /* Comment.Multiline */
8
+ .highlight .cp { color: #099 } /* Comment.Preproc */
9
+ .highlight .c1 { color: #999; } /* Comment.Single */
10
+ .highlight .cs { color: #999; } /* Comment.Special */
11
+ .highlight .gd { background-color: #fcc; border: 1px solid #c00 } /* Generic.Deleted */
12
+ .highlight .ge { font-style: italic } /* Generic.Emph */
13
+ .highlight .gr { color: #f00 } /* Generic.Error */
14
+ .highlight .gh { color: #030; } /* Generic.Heading */
15
+ .highlight .gi { background-color: #cfc; border: 1px solid #0c0 } /* Generic.Inserted */
16
+ .highlight .go { color: #aaa } /* Generic.Output */
17
+ .highlight .gp { color: #009; } /* Generic.Prompt */
18
+ .highlight .gs { } /* Generic.Strong */
19
+ .highlight .gu { color: #030; } /* Generic.Subheading */
20
+ .highlight .gt { color: #9c6 } /* Generic.Traceback */
21
+ .highlight .kc { color: #069; } /* Keyword.Constant */
22
+ .highlight .kd { color: #069; } /* Keyword.Declaration */
23
+ .highlight .kn { color: #069; } /* Keyword.Namespace */
24
+ .highlight .kp { color: #069 } /* Keyword.Pseudo */
25
+ .highlight .kr { color: #069; } /* Keyword.Reserved */
26
+ .highlight .kt { color: #078; } /* Keyword.Type */
27
+ .highlight .m { color: #f60 } /* Literal.Number */
28
+ .highlight .s { color: #d44950 } /* Literal.String */
29
+ .highlight .na { color: #4f9fcf } /* Name.Attribute */
30
+ .highlight .nb { color: #366 } /* Name.Builtin */
31
+ .highlight .nc { color: #0a8; } /* Name.Class */
32
+ .highlight .no { color: #360 } /* Name.Constant */
33
+ .highlight .nd { color: #99f } /* Name.Decorator */
34
+ .highlight .ni { color: #999; } /* Name.Entity */
35
+ .highlight .ne { color: #c00; } /* Name.Exception */
36
+ .highlight .nf { color: #c0f } /* Name.Function */
37
+ .highlight .nl { color: #99f } /* Name.Label */
38
+ .highlight .nn { color: #0cf; } /* Name.Namespace */
39
+ .highlight .nt { color: #2f6f9f; } /* Name.Tag */
40
+ .highlight .nv { color: #033 } /* Name.Variable */
41
+ .highlight .ow { color: #000; } /* Operator.Word */
42
+ .highlight .w { color: #bbb } /* Text.Whitespace */
43
+ .highlight .mf { color: #f60 } /* Literal.Number.Float */
44
+ .highlight .mh { color: #f60 } /* Literal.Number.Hex */
45
+ .highlight .mi { color: #f60 } /* Literal.Number.Integer */
46
+ .highlight .mo { color: #f60 } /* Literal.Number.Oct */
47
+ .highlight .sb { color: #c30 } /* Literal.String.Backtick */
48
+ .highlight .sc { color: #c30 } /* Literal.String.Char */
49
+ .highlight .sd { color: #c30; font-style: italic } /* Literal.String.Doc */
50
+ .highlight .s2 { color: #c30 } /* Literal.String.Double */
51
+ .highlight .se { color: #c30; } /* Literal.String.Escape */
52
+ .highlight .sh { color: #c30 } /* Literal.String.Heredoc */
53
+ .highlight .si { color: #a00 } /* Literal.String.Interpol */
54
+ .highlight .sx { color: #c30 } /* Literal.String.Other */
55
+ .highlight .sr { color: #3aa } /* Literal.String.Regex */
56
+ .highlight .s1 { color: #c30 } /* Literal.String.Single */
57
+ .highlight .ss { color: #fc3 } /* Literal.String.Symbol */
58
+ .highlight .bp { color: #366 } /* Name.Builtin.Pseudo */
59
+ .highlight .vc { color: #033 } /* Name.Variable.Class */
60
+ .highlight .vg { color: #033 } /* Name.Variable.Global */
61
+ .highlight .vi { color: #033 } /* Name.Variable.Instance */
62
+ .highlight .il { color: #f60 } /* Literal.Number.Integer.Long */
63
+
64
+ .css .o,
65
+ .css .o + .nt,
66
+ .css .nt + .nt { color: #999; }
@@ -0,0 +1,13 @@
1
+ $red: #f00;
2
+ $blue: #00e;
3
+
4
+ $root-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif;
5
+ $root-font-size: 16px;
6
+ $root-line-height: 1.5;
7
+
8
+ $body-color: #333;
9
+ $body-bg-color: #fff;
10
+ $link-color: $blue;
11
+
12
+ $code-font-family: Menlo, Monaco, "Courier New", monospace;
13
+ $code-color: #c03030;
data/assets/main.scss ADDED
@@ -0,0 +1,26 @@
1
+ ---
2
+ ---
3
+
4
+ @import "variables";
5
+ @import "base";
6
+ @import "syntax";
7
+ @import "code";
8
+
9
+ html {
10
+ background: #f9f9f9;
11
+
12
+ > body {
13
+ width: 42em;
14
+ margin: 0 auto 0 1em;
15
+ padding: 1em 2em;
16
+ background: #fff;
17
+ box-shadow: #f1f1f1 0 0 5px 5px;
18
+ }
19
+ }
20
+
21
+ .archives {
22
+ ul {
23
+ padding-left: 1.8em;
24
+ line-height: 2em;
25
+ }
26
+ }
metadata ADDED
@@ -0,0 +1,100 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-theme-golgif
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - arzyu
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-06-16 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.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.4'
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
+ - arzyu@live.cn
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE.txt
63
+ - README.md
64
+ - _includes/archives.html
65
+ - _includes/head.html
66
+ - _includes/site-info.html
67
+ - _layouts/default.html
68
+ - _layouts/home.html
69
+ - _layouts/page.html
70
+ - _layouts/post.html
71
+ - _sass/_base.scss
72
+ - _sass/_code.scss
73
+ - _sass/_syntax.scss
74
+ - _sass/_variables.scss
75
+ - assets/main.scss
76
+ homepage: https://github.com/arzyu/jekyll-theme-golgif
77
+ licenses:
78
+ - MIT
79
+ metadata: {}
80
+ post_install_message:
81
+ rdoc_options: []
82
+ require_paths:
83
+ - lib
84
+ required_ruby_version: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ">="
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ requirements: []
95
+ rubyforge_project:
96
+ rubygems_version: 2.6.12
97
+ signing_key:
98
+ specification_version: 4
99
+ summary: Another jekyll theme.
100
+ test_files: []