pithy 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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2544d2d0552579cf1f220d0c987b55174490ced6
4
+ data.tar.gz: f682c957ef9b557ee061b7c1ef1a2e5061d716b8
5
+ SHA512:
6
+ metadata.gz: ae36cd08e1f8864c7991ceabb131e3ba821e6973fb24a6aba218f2c73677ffd7d357991d64d263877e20b8783cab316ecdba992741b3df0e2c4d7d79f53eae3d
7
+ data.tar.gz: 0d83d4167053defca7aeacf20385b9686a046bdfd3ada68c3a2463fac9bbba54fb5950db419579a52aac72b47789f179d68487cd466a3fd0a74bbd6c1b1faaa2
@@ -0,0 +1,14 @@
1
+ # Jekyll-Pithy
2
+
3
+ Jekyll-Pithy is a theme for Jekyll. Here is [my blog](http://wenva.github.io) which use this theme.
4
+
5
+ ![image](https://raw.githubusercontent.com/smallmuou/Jekyll-Pithy/master/images/Jekyll-Pithy.png)
6
+
7
+ ### Usage
8
+ * Clone it.
9
+ * cd Jekyll-Pithy, and Run "jekyll serve"(You must install [jekyll](http://jekyllrb.com/) first)
10
+ * Open web browser and enter "http://127.0.0.1:4000/", you can see the web page like snapshot above.
11
+ * If you want to host you blog on Github Page, you can follow the steps provide by Github.
12
+
13
+ ### License
14
+ The code follows MIT License.
@@ -0,0 +1,5 @@
1
+ <footer class="footer">
2
+ <div id="gotop">^</div>
3
+ <br>
4
+ @2015 Pithy Theme by Pawpaw.
5
+ </footer>
@@ -0,0 +1,14 @@
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 }}{% else %}{{ site.title }}{% endif %}</title>
7
+ <meta name="description" content="{% if page.excerpt %}{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}{% else %}{{ site.description }}{% endif %}">
8
+
9
+ <link rel="stylesheet" href="{{ "/css/main.css" | prepend: site.baseurl }}">
10
+ <link rel="canonical" href="{{ page.url | replace:'index.html','' | prepend: site.baseurl | prepend: site.url }}">
11
+ <link rel="alternate" type="application/atom+xml" title="{{ site.title }}" href="{{ "/feed.xml" | prepend: site.baseurl | prepend: site.url }}" />
12
+ <script src="/scripts/jquery-1.11.2.min.js"></script>
13
+ <script src="/scripts/pithy.js"></script>
14
+ </head>
@@ -0,0 +1,68 @@
1
+ <header class="header">
2
+ <div class="header-container">
3
+ <div class="nav">
4
+ {% if page.path == "index.html" %}
5
+ <span class="title">
6
+ <li>
7
+ <a href="/index.html">home</a>
8
+ </li>
9
+ </span>
10
+ {% else %}
11
+ <li>
12
+ <a href="/index.html">home</a>
13
+ </li>
14
+ {% endif %}
15
+ {% if page.path == "archive.html" %}
16
+ <span class="title">
17
+ <li>
18
+ <a href="/archive.html">archive</a>
19
+ </li>
20
+ </span>
21
+ {% else %}
22
+ <li>
23
+ <a href="/archive.html">archive</a>
24
+ </li>
25
+ {% endif %}
26
+ {% if page.path == "category.html" %}
27
+ <span class="title">
28
+ <li>
29
+ <a href="/category.html">category</a>
30
+ </li>
31
+ </span>
32
+ {% else %}
33
+ <li>
34
+ <a href="/category.html">category</a>
35
+ </li>
36
+ {% endif %}
37
+ {% if page.path == "about.html" %}
38
+ <span class="title">
39
+ <li>
40
+ <a href="/about.html">about</a>
41
+ </li>
42
+ </span>
43
+ {% else %}
44
+ <li>
45
+ <a href="/about.html">about</a>
46
+ </li>
47
+ {% endif %}
48
+ </div>
49
+ <div class="description"> {{ site.motto }} </div>
50
+ <ul class="social-links">
51
+ <li>
52
+ <a href="https://github.com/{{ site.github_username }}" title="Github">
53
+ <img width="19px" height="19px" src="/images/github.png"/>
54
+ </a>
55
+ </li>
56
+ <li>
57
+ <a href="/feed.xml" title="RSS">
58
+ <img width="19px" height="19px" src="/images/rss.png"/>
59
+ </a>
60
+ </li>
61
+ <li>
62
+ <a href="https://twitter.com/{{ site.twitter_username }}" title="Twitter">
63
+ <img width="19px" height="19px" src="/images/twitter.png"/>
64
+ </a>
65
+ </li>
66
+ </ul>
67
+ </div>
68
+ </header>
@@ -0,0 +1,18 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ {% include head.html %}
4
+
5
+ <body>
6
+ {% include header.html %}
7
+ <br>
8
+ <div class="page-content">
9
+ <div class="wrapper">
10
+ {{ content }}
11
+ </div>
12
+ </div>
13
+
14
+ {% include footer.html %}
15
+
16
+ </body>
17
+
18
+ </html>
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="post">
5
+
6
+ <header class="post-header">
7
+ <h1 class="post-title">{{ page.title }}</h1>
8
+ </header>
9
+ <br>
10
+ <article class="post-content">
11
+ {{ content }}
12
+ </article>
13
+
14
+ </div>
@@ -0,0 +1,14 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <div class="post">
5
+ <br>
6
+ <header class="post-header">
7
+ <h1 class="post-title">{{ page.title }}</h1>
8
+ <p class="post-meta">{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}</p>
9
+ </header>
10
+
11
+ <article class="post-content">
12
+ {{ content }}
13
+ </article>
14
+ </div>
@@ -0,0 +1,204 @@
1
+ /**
2
+ * Reset some basic elements
3
+ */
4
+ body, h1, h2, h3, h4, h5, h6,
5
+ p, blockquote, pre, hr,
6
+ dl, dd, ol, ul, figure {
7
+ margin: 0;
8
+ padding: 0;
9
+ }
10
+
11
+
12
+
13
+ /**
14
+ * Basic styling
15
+ */
16
+ body {
17
+ font-family: $base-font-family;
18
+ font-size: $base-font-size;
19
+ line-height: $base-line-height;
20
+ font-weight: 300;
21
+ color: $text-color;
22
+ background-color: $background-color;
23
+ -webkit-text-size-adjust: 100%;
24
+ }
25
+
26
+
27
+
28
+ /**
29
+ * Set `margin-bottom` to maintain vertical rhythm
30
+ */
31
+ h1, h2, h3, h4, h5, h6,
32
+ p, blockquote, pre,
33
+ ul, ol, dl, figure,
34
+ %vertical-rhythm {
35
+ margin-bottom: $spacing-unit / 2;
36
+ }
37
+
38
+
39
+
40
+ /**
41
+ * Images
42
+ */
43
+ img {
44
+ max-width: 100%;
45
+ vertical-align: middle;
46
+ }
47
+
48
+
49
+
50
+ /**
51
+ * Figures
52
+ */
53
+ figure > img {
54
+ display: block;
55
+ }
56
+
57
+ figcaption {
58
+ font-size: $small-font-size;
59
+ }
60
+
61
+
62
+
63
+ /**
64
+ * Lists
65
+ */
66
+ ul, ol {
67
+ margin-left: $spacing-unit;
68
+ }
69
+
70
+ li {
71
+ > ul,
72
+ > ol {
73
+ margin-bottom: 0;
74
+ }
75
+ }
76
+
77
+
78
+
79
+ /**
80
+ * Headings
81
+ */
82
+ h1, h2, h3, h4, h5, h6 {
83
+ font-weight: 300;
84
+ }
85
+
86
+
87
+
88
+ /**
89
+ * Links
90
+ */
91
+ a {
92
+ color: $brand-color;
93
+ text-decoration: none;
94
+
95
+ &:visited {
96
+ color: darken($brand-color, 15%);
97
+ }
98
+
99
+ &:hover {
100
+ color: $text-color;
101
+ text-decoration: underline;
102
+ }
103
+ }
104
+
105
+
106
+
107
+ /**
108
+ * Blockquotes
109
+ */
110
+ blockquote {
111
+ color: $grey-color;
112
+ border-left: 4px solid $grey-color-light;
113
+ padding-left: $spacing-unit / 2;
114
+ font-size: 18px;
115
+ letter-spacing: -1px;
116
+ font-style: italic;
117
+
118
+ > :last-child {
119
+ margin-bottom: 0;
120
+ }
121
+ }
122
+
123
+
124
+
125
+ /**
126
+ * Code formatting
127
+ */
128
+ pre,
129
+ code {
130
+ font-size: 15px;
131
+ border: 1px solid $grey-color-light;
132
+ border-radius: 3px;
133
+ background-color: #f5f5f5;
134
+ }
135
+
136
+ code {
137
+ padding: 1px 5px;
138
+ }
139
+
140
+ pre {
141
+ padding: 8px 12px;
142
+ overflow-x: scroll;
143
+
144
+ > code {
145
+ border: 0;
146
+ padding-right: 0;
147
+ padding-left: 0;
148
+ }
149
+ }
150
+
151
+
152
+
153
+ /**
154
+ * Wrapper
155
+ */
156
+ .wrapper {
157
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit} * 2));
158
+ max-width: calc(#{$content-width} - (#{$spacing-unit} * 2));
159
+ margin-right: auto;
160
+ margin-left: auto;
161
+ padding-right: $spacing-unit;
162
+ padding-left: $spacing-unit;
163
+ @extend %clearfix;
164
+
165
+ @include media-query($on-laptop) {
166
+ max-width: -webkit-calc(#{$content-width} - (#{$spacing-unit}));
167
+ max-width: calc(#{$content-width} - (#{$spacing-unit}));
168
+ padding-right: $spacing-unit / 2;
169
+ padding-left: $spacing-unit / 2;
170
+ }
171
+ }
172
+
173
+
174
+
175
+ /**
176
+ * Clearfix
177
+ */
178
+ %clearfix {
179
+
180
+ &:after {
181
+ content: "";
182
+ display: table;
183
+ clear: both;
184
+ }
185
+ }
186
+
187
+
188
+
189
+ /**
190
+ * Icons
191
+ */
192
+ .icon {
193
+
194
+ > svg {
195
+ display: inline-block;
196
+ width: 16px;
197
+ height: 16px;
198
+ vertical-align: middle;
199
+
200
+ path {
201
+ fill: $grey-color;
202
+ }
203
+ }
204
+ }
@@ -0,0 +1,199 @@
1
+ html,body {
2
+ -moz-osx-font-smoothing: grayscale;
3
+ }
4
+
5
+ /**
6
+ * Header
7
+ */
8
+ .header {
9
+ padding: 50px 20px 40px;
10
+ background-color: #515865;
11
+ }
12
+
13
+ .header-container {
14
+ max-width: 700px;
15
+ margin: 0px auto;
16
+ }
17
+
18
+ .nav {
19
+ color: #707070;
20
+ text-transform: uppercase;
21
+ font-size: 16px;
22
+ font-weight: 600;
23
+ font-family: "Montserrat",sans-serif;
24
+ display:inline;
25
+ }
26
+
27
+ .nav li {
28
+ padding-right: 20px;
29
+ display: inline-block;
30
+ line-height: 1;
31
+ }
32
+
33
+ li {
34
+ margin-left: 0px;
35
+ line-height: 1.7em;
36
+ }
37
+
38
+ .nav a {
39
+ color: #959BA6;
40
+ }
41
+
42
+ .nav a:link {
43
+ opacity: 1;
44
+ transition: all 0.15s linear 0s;
45
+ text-decoration: none;
46
+ }
47
+
48
+ .nav li a:visited {
49
+ opacity: 1;
50
+ transition: all 0.15s linear 0s;
51
+ text-decoration: none;
52
+ }
53
+
54
+ .nav li a:hover {
55
+ opacity: 0.6;
56
+ cursor: pointer;
57
+ text-decoration: none;
58
+ }
59
+
60
+ .title li a {
61
+ color: #FFF;
62
+ }
63
+
64
+ .title li a:link {
65
+ color: #FFF;
66
+ }
67
+
68
+ .title li a:visited {
69
+ opacity: 1;
70
+ transition: all 0.15s linear 0s;
71
+ text-decoration: none;
72
+ }
73
+
74
+ .title li a:hover {
75
+ opacity: 1;
76
+ color: #FFF;
77
+ }
78
+
79
+ .description {
80
+ padding-top: 10px;
81
+ font-size: 12px;
82
+ line-height: 1.5em;
83
+ color: #EEE;
84
+ }
85
+
86
+ .social-links {
87
+ padding-top: 10px;
88
+ margin-left: 0px;
89
+ }
90
+
91
+ .social-links li {
92
+ display: inline;
93
+ padding-right: 10px;
94
+ line-height: 0;
95
+ }
96
+
97
+ .social-links a {
98
+ color: #959BA6;
99
+ }
100
+
101
+ .social-links a:active {
102
+ opacity: 0.6;
103
+ }
104
+
105
+ .social-links a:hover {
106
+ opacity: 0.6;
107
+ }
108
+
109
+ .page-content {
110
+ min-height: 100%;
111
+ height: 100%;
112
+ }
113
+
114
+ .post-meta {
115
+ color: #666;
116
+ font-size: 12px;
117
+ margin-left: 0px;
118
+ }
119
+ .content {
120
+ margin-top: 20px;
121
+ color: #666;
122
+ font-size: 14px;
123
+ }
124
+
125
+ .post-list {
126
+ list-style:none;
127
+ }
128
+
129
+ .post-list li h3 {
130
+ margin-bottom: 5px;
131
+ font-weight: 500px;
132
+ }
133
+
134
+ .post-list li a {
135
+ color: #000;
136
+ }
137
+
138
+ #line {
139
+ opacity: 0.1;
140
+ color: #000;
141
+ }
142
+
143
+ /**
144
+ * Artist
145
+ */
146
+ .well {
147
+ color: #000;
148
+ font-family: Monaco,"Courier New",monospace;
149
+ }
150
+
151
+ .well ul {
152
+ color: #AAA;
153
+ font-size: 14px;
154
+ list-style:none;
155
+ }
156
+
157
+ .well ul a {
158
+ text-decoration: underline;
159
+ }
160
+
161
+ .well ul a:hover {
162
+ color: #000;
163
+ }
164
+
165
+ /**
166
+ * Category
167
+ */
168
+ .category-box {
169
+ font-weight:bold;
170
+ font-size: 16px;
171
+ }
172
+
173
+
174
+ /**
175
+ * About
176
+ */
177
+ .about {
178
+ color: #666;
179
+ }
180
+
181
+ /**
182
+ * Footer
183
+ */
184
+ .footer {
185
+ font-size: 11px;
186
+ text-align: center;
187
+ color: #666;
188
+ }
189
+
190
+ #gotop {
191
+ position: fixed;
192
+ right: 20px;
193
+ bottom: 20px;
194
+ padding: 10px 15px;
195
+ font-size: 20px;
196
+ background: #515865;
197
+ color: white;
198
+ cursor: pointer;
199
+ }
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Syntax highlighting styles
3
+ */
4
+ .highlight {
5
+ background: #fff;
6
+ @extend %vertical-rhythm;
7
+
8
+ .c { color: #998; font-style: italic } // Comment
9
+ .err { color: #a61717; background-color: #e3d2d2 } // Error
10
+ .k { font-weight: bold } // Keyword
11
+ .o { font-weight: bold } // Operator
12
+ .cm { color: #998; font-style: italic } // Comment.Multiline
13
+ .cp { color: #999; font-weight: bold } // Comment.Preproc
14
+ .c1 { color: #998; font-style: italic } // Comment.Single
15
+ .cs { color: #999; font-weight: bold; font-style: italic } // Comment.Special
16
+ .gd { color: #000; background-color: #fdd } // Generic.Deleted
17
+ .gd .x { color: #000; background-color: #faa } // Generic.Deleted.Specific
18
+ .ge { font-style: italic } // Generic.Emph
19
+ .gr { color: #a00 } // Generic.Error
20
+ .gh { color: #999 } // Generic.Heading
21
+ .gi { color: #000; background-color: #dfd } // Generic.Inserted
22
+ .gi .x { color: #000; background-color: #afa } // Generic.Inserted.Specific
23
+ .go { color: #888 } // Generic.Output
24
+ .gp { color: #555 } // Generic.Prompt
25
+ .gs { font-weight: bold } // Generic.Strong
26
+ .gu { color: #aaa } // Generic.Subheading
27
+ .gt { color: #a00 } // Generic.Traceback
28
+ .kc { font-weight: bold } // Keyword.Constant
29
+ .kd { font-weight: bold } // Keyword.Declaration
30
+ .kp { font-weight: bold } // Keyword.Pseudo
31
+ .kr { font-weight: bold } // Keyword.Reserved
32
+ .kt { color: #458; font-weight: bold } // Keyword.Type
33
+ .m { color: #099 } // Literal.Number
34
+ .s { color: #d14 } // Literal.String
35
+ .na { color: #008080 } // Name.Attribute
36
+ .nb { color: #0086B3 } // Name.Builtin
37
+ .nc { color: #458; font-weight: bold } // Name.Class
38
+ .no { color: #008080 } // Name.Constant
39
+ .ni { color: #800080 } // Name.Entity
40
+ .ne { color: #900; font-weight: bold } // Name.Exception
41
+ .nf { color: #900; font-weight: bold } // Name.Function
42
+ .nn { color: #555 } // Name.Namespace
43
+ .nt { color: #000080 } // Name.Tag
44
+ .nv { color: #008080 } // Name.Variable
45
+ .ow { font-weight: bold } // Operator.Word
46
+ .w { color: #bbb } // Text.Whitespace
47
+ .mf { color: #099 } // Literal.Number.Float
48
+ .mh { color: #099 } // Literal.Number.Hex
49
+ .mi { color: #099 } // Literal.Number.Integer
50
+ .mo { color: #099 } // Literal.Number.Oct
51
+ .sb { color: #d14 } // Literal.String.Backtick
52
+ .sc { color: #d14 } // Literal.String.Char
53
+ .sd { color: #d14 } // Literal.String.Doc
54
+ .s2 { color: #d14 } // Literal.String.Double
55
+ .se { color: #d14 } // Literal.String.Escape
56
+ .sh { color: #d14 } // Literal.String.Heredoc
57
+ .si { color: #d14 } // Literal.String.Interpol
58
+ .sx { color: #d14 } // Literal.String.Other
59
+ .sr { color: #009926 } // Literal.String.Regex
60
+ .s1 { color: #d14 } // Literal.String.Single
61
+ .ss { color: #990073 } // Literal.String.Symbol
62
+ .bp { color: #999 } // Name.Builtin.Pseudo
63
+ .vc { color: #008080 } // Name.Variable.Class
64
+ .vg { color: #008080 } // Name.Variable.Global
65
+ .vi { color: #008080 } // Name.Variable.Instance
66
+ .il { color: #099 } // Literal.Number.Integer.Long
67
+ }
metadata ADDED
@@ -0,0 +1,97 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pithy
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Gregor Sturm
8
+ - smallmuou
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2016-11-19 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: jekyll
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '3.3'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '3.3'
28
+ - !ruby/object:Gem::Dependency
29
+ name: bundler
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '1.12'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '1.12'
42
+ - !ruby/object:Gem::Dependency
43
+ name: rake
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '10.0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '10.0'
56
+ description:
57
+ email:
58
+ - mail@gregor-sturm.de
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - README.md
64
+ - _includes/footer.html
65
+ - _includes/head.html
66
+ - _includes/header.html
67
+ - _layouts/default.html
68
+ - _layouts/page.html
69
+ - _layouts/post.html
70
+ - _sass/_base.scss
71
+ - _sass/_layout.scss
72
+ - _sass/_syntax-highlighting.scss
73
+ homepage: https://github.com/grst/Jekyll-Pithy
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.5.1
94
+ signing_key:
95
+ specification_version: 4
96
+ summary: simplistic jekyll theme
97
+ test_files: []