lonelywriter 0.1.1

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: e5096eee9945b421a0d86f368ddfcb53536b0651
4
+ data.tar.gz: 9b629528209eda3981b2ed4d97c919b7cfb3ea9c
5
+ SHA512:
6
+ metadata.gz: e2fd791d12ff0c839b6266c47ffeaa3343b1ff09ac0eb0a09bca8601e12104b4a44662051ea3ff531bc0837442161443a32944fb9fcf1ef4fed28f1b3c7a920d
7
+ data.tar.gz: 1b6f6cad55c19717de8d48df9faf7122bcb496345679a442ae93c8bc08bdfec2bf1420119c236e3598a52449bde43a0f14d4f9d39f4711b5ab7e0ce6f6877edf
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Lingyi Hu
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,55 @@
1
+ # lonelywriter
2
+
3
+ lonelywriter is a simple completely minimal theme without all the fancy frills, designed to let you just concentrate on the writing. It comes in two color themes: light and dark.
4
+
5
+ ## More info and live preview
6
+ [Click here](https://theconfused.me/lonelywriter) to see the theme with the light color scheme in action.
7
+
8
+ [Click here](https://theconfused.me/lonelywriter/dark) to see the theme with the dark color scheme in action.
9
+
10
+ ## Features
11
+ - Responsive
12
+ - Compatible with Github Pages
13
+ - Two color themes available: light and dark
14
+ - no JS
15
+ - 404 page included
16
+
17
+ ## Installation
18
+
19
+ Add this line to your Jekyll site's `Gemfile`:
20
+
21
+ ```ruby
22
+ gem "lonelywriter"
23
+ ```
24
+
25
+ And add this line to your Jekyll site's `_config.yml`:
26
+
27
+ ```yaml
28
+ theme: lonelywriter
29
+ ```
30
+
31
+ And then execute:
32
+
33
+ $ bundle
34
+
35
+ Or install it yourself as:
36
+
37
+ $ gem install lonelywriter
38
+
39
+
40
+ ## Contributing
41
+
42
+ Bug reports and pull requests are welcome on GitHub at https://github.com/lingxz/lonelywriter. 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.
43
+
44
+ ## Development
45
+
46
+ To set up your environment to develop this theme, run `bundle install`.
47
+
48
+ 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.
49
+
50
+ When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
51
+
52
+ ## License
53
+
54
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
55
+
@@ -0,0 +1,33 @@
1
+ ---
2
+ ---
3
+
4
+ <!doctype html>
5
+ <html lang="en">
6
+ <head>
7
+ <meta charset="utf-8">
8
+
9
+ <!-- http://t.co/dKP3o1e -->
10
+ <meta name="HandheldFriendly" content="True">
11
+ <meta name="MobileOptimized" content="320">
12
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
13
+
14
+ <!-- For all browsers -->
15
+ <link rel="stylesheet" href="https://cdn.rawgit.com/mblode/marx/master/css/marx.min.css">
16
+ <link rel="stylesheet" href="{{ '/assets/css/main.css' | absolute_url }}">
17
+ <link rel="shortcut icon" type="image/x-icon" href="{{ site.favicon | absolute_url }}">
18
+ <meta http-equiv="cleartype" content="on">
19
+
20
+ {% if page.title %}
21
+ {% assign page_title = page.title | append: " " | append: "-" | append: " " | append: site.title %}
22
+ {% endif %}
23
+ <title>{{ page_title | default: site.title }}</title>
24
+
25
+ </head>
26
+
27
+ <body>
28
+ <div id="main">
29
+ {{ content }}
30
+ </div>
31
+ </body>
32
+ </html>
33
+
@@ -0,0 +1,12 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="header">
6
+ <div class="title"><a href="{{ '/' | absolute_url }}">{{ site.title }} | {{ site.tagline }}</a></div>
7
+ {{ site.description }}
8
+ </div>
9
+
10
+ <hr>
11
+
12
+ {{content}}
@@ -0,0 +1,12 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ <div class="header">
6
+ <div class="title light-title"><a href="{{ '/' | absolute_url }}">&#171; {{ site.title }}</a></div>
7
+ </div>
8
+
9
+ <div class="post">
10
+ <h1 class="post-title">{{ page.title }}</h1>
11
+ <div class="post-content">{{ content }}</div>
12
+ </div>
data/_sass/_base.scss ADDED
@@ -0,0 +1,107 @@
1
+ * {
2
+ box-sizing: border-box;
3
+ }
4
+
5
+ :root {
6
+ background-color: $background-color;
7
+ color: $text-color;
8
+ }
9
+
10
+ body {
11
+ color: $text-color;
12
+ font-size: 13.34px;
13
+ }
14
+
15
+ a {
16
+ color: inherit;
17
+ border-bottom: 1px solid $link-underline-color;
18
+ text-decoration: none;
19
+ -webkit-transition: border-bottom .2s ease-in-out;
20
+ transition: border-bottom .2s ease-in-out;
21
+ &:hover {
22
+ text-decoration: none;
23
+ border-bottom-color: $link-underline-color-on-hover;
24
+ color: inherit;
25
+ }
26
+ }
27
+
28
+ a:focus, a:hover {
29
+ text-decoration: none;
30
+ }
31
+
32
+ a, a:focus, a:hover {
33
+ color: inherit;
34
+ }
35
+
36
+ hr {
37
+ // margin: 1em auto;
38
+ margin: 1.5em 0;
39
+ height: 1px;
40
+ background-color: #ccc;
41
+ width: 50%;
42
+ border: none;
43
+ }
44
+
45
+ #main {
46
+ max-width: 600px;
47
+ margin: 0 auto;
48
+ padding: 0 16px;
49
+ margin-bottom: 3em;
50
+ font-size: 110%;
51
+ }
52
+
53
+ h1 {
54
+ border-bottom-color: $border-bottom-color;
55
+ }
56
+
57
+ h6 {
58
+ color: inherit;
59
+ }
60
+
61
+ pre, code {
62
+ font-size: inherit;
63
+ }
64
+
65
+ .header {
66
+ margin-top: 2em;
67
+ }
68
+
69
+ .title {
70
+ font-size: 1.5em;
71
+ font-weight: bold;
72
+ a {
73
+ border-bottom: none;
74
+ }
75
+ }
76
+
77
+ .light-title {
78
+ a {
79
+ color: $secondary-title-color;
80
+ // transition: color .2s ease-in-out;
81
+ &:hover {
82
+ color: inherit;
83
+ color: $secondary-title-hover-color;
84
+ }
85
+ }
86
+ }
87
+
88
+ .posts {
89
+ padding: 1em 0;
90
+ }
91
+
92
+ .post-entry {
93
+ margin-right: 0.75em;
94
+ margin-bottom: 0.3em;
95
+ a {
96
+ color: inherit;
97
+ }
98
+ .post-entry-date {
99
+ float: right;
100
+ margin-left: 1em;
101
+ color: #ccc;
102
+ }
103
+ }
104
+
105
+ .post {
106
+ margin-top: 1.2em;
107
+ }
data/_sass/_dark.scss ADDED
@@ -0,0 +1,7 @@
1
+ $text-color: #fff;
2
+ $background-color: rgba(0,0,0,.8);
3
+ $border-bottom-color: #ccc;
4
+ $link-underline-color: #aaa;
5
+ $link-underline-color-on-hover: #fff;
6
+ $secondary-title-color: #aaa;
7
+ $secondary-title-hover-color: #ccc;
data/_sass/_light.scss ADDED
@@ -0,0 +1,7 @@
1
+ $text-color: rgba(0,0,0,.8);
2
+ $background-color: #fff;
3
+ $border-bottom-color: rgba(0,0,0,.12);
4
+ $link-underline-color: #ddd;
5
+ $link-underline-color-on-hover: #000;
6
+ $secondary-title-color: #ccc;
7
+ $secondary-title-hover-color: rgba(0,0,0,.8);
@@ -0,0 +1,64 @@
1
+ /*==========================================================================
2
+ Syntax highlighting
3
+ ========================================================================== */
4
+
5
+ .highlighter-rouge { background: #f4f4f4; }
6
+ .highlight .c { color: #999988; font-style: italic } /* Comment */
7
+ .highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
8
+ .highlight .k { font-weight: bold } /* Keyword */
9
+ .highlight .o { font-weight: bold } /* Operator */
10
+ .highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
11
+ .highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
12
+ .highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
13
+ .highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
14
+ .highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
15
+ .highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
16
+ .highlight .ge { font-style: italic } /* Generic.Emph */
17
+ .highlight .gr { color: #aa0000 } /* Generic.Error */
18
+ .highlight .gh { color: #999999 } /* Generic.Heading */
19
+ .highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
20
+ .highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
21
+ .highlight .go { color: #888888 } /* Generic.Output */
22
+ .highlight .gp { color: #555555 } /* Generic.Prompt */
23
+ .highlight .gs { font-weight: bold } /* Generic.Strong */
24
+ .highlight .gu { color: #aaaaaa } /* Generic.Subheading */
25
+ .highlight .gt { color: #aa0000 } /* Generic.Traceback */
26
+ .highlight .kc { font-weight: bold } /* Keyword.Constant */
27
+ .highlight .kd { font-weight: bold } /* Keyword.Declaration */
28
+ .highlight .kp { font-weight: bold } /* Keyword.Pseudo */
29
+ .highlight .kr { font-weight: bold } /* Keyword.Reserved */
30
+ .highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
31
+ .highlight .m { color: #009999 } /* Literal.Number */
32
+ .highlight .s { color: #d14 } /* Literal.String */
33
+ .highlight .na { color: #008080 } /* Name.Attribute */
34
+ .highlight .nb { color: #0086B3 } /* Name.Builtin */
35
+ .highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
36
+ .highlight .no { color: #008080 } /* Name.Constant */
37
+ .highlight .ni { color: #800080 } /* Name.Entity */
38
+ .highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
39
+ .highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
40
+ .highlight .nn { color: #555555 } /* Name.Namespace */
41
+ .highlight .nt { color: #000080 } /* Name.Tag */
42
+ .highlight .nv { color: #008080 } /* Name.Variable */
43
+ .highlight .ow { font-weight: bold } /* Operator.Word */
44
+ .highlight .w { color: #bbbbbb } /* Text.Whitespace */
45
+ .highlight .mf { color: #009999 } /* Literal.Number.Float */
46
+ .highlight .mh { color: #009999 } /* Literal.Number.Hex */
47
+ .highlight .mi { color: #009999 } /* Literal.Number.Integer */
48
+ .highlight .mo { color: #009999 } /* Literal.Number.Oct */
49
+ .highlight .sb { color: #d14 } /* Literal.String.Backtick */
50
+ .highlight .sc { color: #d14 } /* Literal.String.Char */
51
+ .highlight .sd { color: #d14 } /* Literal.String.Doc */
52
+ .highlight .s2 { color: #d14 } /* Literal.String.Double */
53
+ .highlight .se { color: #d14 } /* Literal.String.Escape */
54
+ .highlight .sh { color: #d14 } /* Literal.String.Heredoc */
55
+ .highlight .si { color: #d14 } /* Literal.String.Interpol */
56
+ .highlight .sx { color: #d14 } /* Literal.String.Other */
57
+ .highlight .sr { color: #009926 } /* Literal.String.Regex */
58
+ .highlight .s1 { color: #d14 } /* Literal.String.Single */
59
+ .highlight .ss { color: #990073 } /* Literal.String.Symbol */
60
+ .highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
61
+ .highlight .vc { color: #008080 } /* Name.Variable.Class */
62
+ .highlight .vg { color: #008080 } /* Name.Variable.Global */
63
+ .highlight .vi { color: #008080 } /* Name.Variable.Instance */
64
+ .highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
@@ -0,0 +1,6 @@
1
+ ---
2
+ ---
3
+ @import "light";
4
+ @import "{{ site.color-theme | default: 'light' }}";
5
+ @import "base";
6
+ @import "syntax";
Binary file
metadata ADDED
@@ -0,0 +1,98 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: lonelywriter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Lingyi Hu
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-08-19 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
+ - lingyihuu@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - LICENSE.txt
63
+ - README.md
64
+ - _layouts/default.html
65
+ - _layouts/page.html
66
+ - _layouts/post.html
67
+ - _sass/_base.scss
68
+ - _sass/_dark.scss
69
+ - _sass/_light.scss
70
+ - _sass/_syntax.scss
71
+ - assets/css/main.scss
72
+ - assets/img/feather.png
73
+ homepage: https://github.com/lingxz/lonelywriter
74
+ licenses:
75
+ - MIT
76
+ metadata: {}
77
+ post_install_message:
78
+ rdoc_options: []
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ requirements: []
92
+ rubyforge_project:
93
+ rubygems_version: 2.4.5.2
94
+ signing_key:
95
+ specification_version: 4
96
+ summary: This is a Jekyll theme without any extra frills and fancy things, designed
97
+ to let you just concentrate on the writing.
98
+ test_files: []