soffes-blog-jekyll 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +5 -0
  3. data/.ruby-version +1 -0
  4. data/Gemfile +6 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +68 -0
  7. data/Rakefile +2 -0
  8. data/_includes/footer.html +4 -0
  9. data/_includes/head.html +13 -0
  10. data/_includes/header.html +5 -0
  11. data/_layouts/default.html +13 -0
  12. data/_layouts/home.html +21 -0
  13. data/_layouts/page.html +5 -0
  14. data/_layouts/post.html +22 -0
  15. data/_sass/application.scss +271 -0
  16. data/_sass/bourbon/_bourbon-deprecated-upcoming.scss +411 -0
  17. data/_sass/bourbon/_bourbon.scss +87 -0
  18. data/_sass/bourbon/addons/_border-color.scss +26 -0
  19. data/_sass/bourbon/addons/_border-radius.scss +48 -0
  20. data/_sass/bourbon/addons/_border-style.scss +25 -0
  21. data/_sass/bourbon/addons/_border-width.scss +25 -0
  22. data/_sass/bourbon/addons/_buttons.scss +64 -0
  23. data/_sass/bourbon/addons/_clearfix.scss +25 -0
  24. data/_sass/bourbon/addons/_ellipsis.scss +30 -0
  25. data/_sass/bourbon/addons/_font-stacks.scss +31 -0
  26. data/_sass/bourbon/addons/_hide-text.scss +27 -0
  27. data/_sass/bourbon/addons/_margin.scss +26 -0
  28. data/_sass/bourbon/addons/_padding.scss +26 -0
  29. data/_sass/bourbon/addons/_position.scss +48 -0
  30. data/_sass/bourbon/addons/_prefixer.scss +66 -0
  31. data/_sass/bourbon/addons/_retina-image.scss +25 -0
  32. data/_sass/bourbon/addons/_size.scss +51 -0
  33. data/_sass/bourbon/addons/_text-inputs.scss +112 -0
  34. data/_sass/bourbon/addons/_timing-functions.scss +34 -0
  35. data/_sass/bourbon/addons/_triangle.scss +63 -0
  36. data/_sass/bourbon/addons/_word-wrap.scss +29 -0
  37. data/_sass/bourbon/css3/_animation.scss +43 -0
  38. data/_sass/bourbon/css3/_appearance.scss +3 -0
  39. data/_sass/bourbon/css3/_backface-visibility.scss +3 -0
  40. data/_sass/bourbon/css3/_background-image.scss +42 -0
  41. data/_sass/bourbon/css3/_background.scss +55 -0
  42. data/_sass/bourbon/css3/_border-image.scss +59 -0
  43. data/_sass/bourbon/css3/_calc.scss +4 -0
  44. data/_sass/bourbon/css3/_columns.scss +47 -0
  45. data/_sass/bourbon/css3/_filter.scss +4 -0
  46. data/_sass/bourbon/css3/_flex-box.scss +289 -0
  47. data/_sass/bourbon/css3/_font-face.scss +24 -0
  48. data/_sass/bourbon/css3/_font-feature-settings.scss +4 -0
  49. data/_sass/bourbon/css3/_hidpi-media-query.scss +10 -0
  50. data/_sass/bourbon/css3/_hyphens.scss +4 -0
  51. data/_sass/bourbon/css3/_image-rendering.scss +14 -0
  52. data/_sass/bourbon/css3/_keyframes.scss +36 -0
  53. data/_sass/bourbon/css3/_linear-gradient.scss +38 -0
  54. data/_sass/bourbon/css3/_perspective.scss +8 -0
  55. data/_sass/bourbon/css3/_placeholder.scss +8 -0
  56. data/_sass/bourbon/css3/_radial-gradient.scss +39 -0
  57. data/_sass/bourbon/css3/_selection.scss +42 -0
  58. data/_sass/bourbon/css3/_text-decoration.scss +19 -0
  59. data/_sass/bourbon/css3/_transform.scss +15 -0
  60. data/_sass/bourbon/css3/_transition.scss +71 -0
  61. data/_sass/bourbon/css3/_user-select.scss +3 -0
  62. data/_sass/bourbon/functions/_assign-inputs.scss +11 -0
  63. data/_sass/bourbon/functions/_contains-falsy.scss +20 -0
  64. data/_sass/bourbon/functions/_contains.scss +26 -0
  65. data/_sass/bourbon/functions/_is-length.scss +11 -0
  66. data/_sass/bourbon/functions/_is-light.scss +21 -0
  67. data/_sass/bourbon/functions/_is-number.scss +11 -0
  68. data/_sass/bourbon/functions/_is-size.scss +13 -0
  69. data/_sass/bourbon/functions/_modular-scale.scss +69 -0
  70. data/_sass/bourbon/functions/_px-to-em.scss +13 -0
  71. data/_sass/bourbon/functions/_px-to-rem.scss +15 -0
  72. data/_sass/bourbon/functions/_shade.scss +24 -0
  73. data/_sass/bourbon/functions/_strip-units.scss +17 -0
  74. data/_sass/bourbon/functions/_tint.scss +24 -0
  75. data/_sass/bourbon/functions/_transition-property-name.scss +22 -0
  76. data/_sass/bourbon/functions/_unpack.scss +27 -0
  77. data/_sass/bourbon/helpers/_convert-units.scss +15 -0
  78. data/_sass/bourbon/helpers/_directional-values.scss +96 -0
  79. data/_sass/bourbon/helpers/_font-source-declaration.scss +43 -0
  80. data/_sass/bourbon/helpers/_gradient-positions-parser.scss +13 -0
  81. data/_sass/bourbon/helpers/_linear-angle-parser.scss +25 -0
  82. data/_sass/bourbon/helpers/_linear-gradient-parser.scss +41 -0
  83. data/_sass/bourbon/helpers/_linear-positions-parser.scss +61 -0
  84. data/_sass/bourbon/helpers/_linear-side-corner-parser.scss +31 -0
  85. data/_sass/bourbon/helpers/_radial-arg-parser.scss +69 -0
  86. data/_sass/bourbon/helpers/_radial-gradient-parser.scss +50 -0
  87. data/_sass/bourbon/helpers/_radial-positions-parser.scss +18 -0
  88. data/_sass/bourbon/helpers/_render-gradients.scss +26 -0
  89. data/_sass/bourbon/helpers/_shape-size-stripper.scss +10 -0
  90. data/_sass/bourbon/helpers/_str-to-num.scss +50 -0
  91. data/_sass/bourbon/settings/_asset-pipeline.scss +7 -0
  92. data/_sass/bourbon/settings/_prefixer.scss +9 -0
  93. data/_sass/bourbon/settings/_px-to-em.scss +1 -0
  94. data/_sass/components/code.scss +89 -0
  95. data/_sass/components/pagination.scss +50 -0
  96. data/_sass/components/reset.scss +54 -0
  97. data/_sass/globals/variables.scss +25 -0
  98. data/_sass/sections/blog.scss +186 -0
  99. data/_sass/sections/error.scss +6 -0
  100. data/assets/application.js +38 -0
  101. data/assets/fonts.css +22 -0
  102. data/assets/main.scss +5 -0
  103. data/bin/console +14 -0
  104. data/bin/setup +8 -0
  105. data/lib/soffes/blog/jekyll.rb +9 -0
  106. data/lib/soffes/blog/jekyll/version.rb +7 -0
  107. data/soffes-blog-jekyll.gemspec +34 -0
  108. metadata +180 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 53afddc4c44f77e342cbb62a8023e72fd1b4acbf
4
+ data.tar.gz: 7cddcd7043be75223859ec8f65ea42ee8e4b8ae8
5
+ SHA512:
6
+ metadata.gz: 633bdd22e3d5a3fbf32598b8789daf8847827d8832aac215c2202e453420943716ead994bf102f214085bcc5b6514b6be91cf6f9b725de12f29b19920f9693de
7
+ data.tar.gz: 16439e0c53ea15215cf5731da73fe262d1312beaf2539a63293a836eb588d8540bdf8c572e5d63a8332dd4174a24881df8fc906778460b4cbdc06cdbba7e4bcf
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ *.gem
2
+ .bundle
3
+ .sass-cache
4
+ _site
5
+ Gemfile.lock
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.4.1
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in soffes-blog-jekyll.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 James Hart
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,68 @@
1
+ # soffes-blog-jekyll
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
+ This is the soffes.blog theme, but made so that you can use jekyll.
6
+
7
+ ## Installation
8
+
9
+ Add this line to your Jekyll site's `Gemfile`:
10
+
11
+ ```ruby
12
+ gem "soffes-blog-jekyll"
13
+ ```
14
+
15
+ And add this line to your Jekyll site's `_config.yml`:
16
+
17
+ ```yaml
18
+ theme: soffes-blog-jekyll
19
+ description: > # this means to ignore newlines until "full_name:"
20
+ This is my blog. Enjoy.
21
+ full_name: James Hart
22
+ short_name: James
23
+ copyright_start_year: 2014
24
+ ```
25
+
26
+ And then execute:
27
+
28
+ $ bundle
29
+
30
+ Or install it yourself as:
31
+
32
+ $ gem install soffes-blog-jekyll
33
+
34
+ ## TODO:
35
+
36
+ * Delete the fonts.css file in `assets` and set up a system for using cloud.typography.com subscriptions.
37
+ * The bourbon dependency was injected using the `bourbon install` command. Can we add a runtime / dev dependency and make this work, without muddying up the `_sass` directory?
38
+ * Pagination does not work yet (commented out in home.html)
39
+ * javascript doesn't load yet
40
+ * Never implemented cover images (not sure where one exists).
41
+ * Next post footer is not implemented in markdown world yet (see post.html)
42
+ * JSON feed not implemented - does it matter?
43
+ * Javascript does not have coffeescript pipeline
44
+
45
+ ## Usage
46
+
47
+ ### In progress below:
48
+
49
+ Sign up for a typography.com account, the fonts are essential. The cost is $99 / year for up to 250k page views.
50
+
51
+ https://www.typography.com/account/your-account.php
52
+
53
+ ## Contributing
54
+
55
+ 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.
56
+
57
+ ## Development
58
+
59
+ To set up your environment to develop this theme, run `bundle install`.
60
+
61
+ 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.
62
+
63
+ When your theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
64
+
65
+ ## License
66
+
67
+ The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
68
+
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+ task :default => :spec
@@ -0,0 +1,4 @@
1
+ <footer>
2
+ <p><a href="{{ "/feed.xml" | relative_url }}">RSS</a></p>
3
+ <p>© {{site.copyright_start_year}}-{{ 'now' | date: "%Y" }} <a href="/" rel="home">{{ site.full_name }}</a></p>
4
+ </footer>
@@ -0,0 +1,13 @@
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
+ {% seo %}
6
+ <link rel="stylesheet" type="text/css" href="{{ "/assets/fonts.css" | relative_url }}">
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
+ {% if jekyll.environment == 'production' and site.google_analytics %}
10
+ {% include google-analytics.html %}
11
+ {% endif %}
12
+ </head>
13
+
@@ -0,0 +1,5 @@
1
+ <header>
2
+ <h1><a href="/" rel="home">Hi, I’m {{ site.short_name }}</a></h1>
3
+ <p>{{ site.description }}</p>
4
+ </header>
5
+
@@ -0,0 +1,13 @@
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>
7
+ {{ content }}
8
+ </main>
9
+ <script src="/assets/application.js"></script>
10
+ {% include footer.html %}
11
+ </body>
12
+ </html>
13
+
@@ -0,0 +1,21 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <section class="posts">
5
+ {{ content }}
6
+ {% for post in site.posts %}
7
+ <article>
8
+ <header>
9
+ <h2><a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a></h2>
10
+ {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
11
+ <p>Posted on <time datetime="{{ post.date | date: date_format }}">{{ post.date | date: date_format }}</time></p>
12
+ </header>
13
+ <p>{{ post.excerpt }} <a href="{{ post.url | relative_url }}" class="continue-reading">Continue reading &rarr;</a></p>
14
+ </article>
15
+ {% endfor %}
16
+ </section>
17
+
18
+ <!-- <% if @posts.count > 0 %> -->
19
+ <!-- <%= erb :pagination, locals: { page: @page, total_pages: @total_pages, window: 2 } %> -->
20
+ <!-- <% end %> -->
21
+
@@ -0,0 +1,5 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+
5
+ {{ content }}
@@ -0,0 +1,22 @@
1
+ ---
2
+ layout: default
3
+ ---
4
+ <section class="post">
5
+ <article>
6
+ <header>
7
+ <h2><a href="{{ page.url | relative_url }}">{{ page.title | escape }}</a></h2>
8
+ {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
9
+ <p>Posted on <time datetime="{{ page.date | date: date_format }}">{{ page.date | date: date_format }}</time></p>
10
+ </header>
11
+ {{ content }}
12
+ </article>
13
+ <!-- <% if @older_post; @hide_footer = true %> -->
14
+ <!-- <footer> -->
15
+ <!-- <div> -->
16
+ <!-- <%= erb :'_post', locals: { post: @older_post } %> -->
17
+ <!-- <p class="copyright">© 2006-<%= Time.now.year %> <a href="/" rel="home">Sam Soffes</a></p> -->
18
+ <!-- </div> -->
19
+ <!-- </footer> -->
20
+ <!-- <% end %> -->
21
+ </section>
22
+
@@ -0,0 +1,271 @@
1
+ @import "bourbon/bourbon";
2
+ @import "globals/variables";
3
+ @import "components/reset";
4
+
5
+ // HTML5
6
+ section, header, footer, nav, article, aside, figure {
7
+ display: block;
8
+ width: 100%;
9
+ }
10
+
11
+ mark, time, meter, progress {
12
+ display: inline;
13
+ }
14
+
15
+ // Tags
16
+ html {
17
+ -webkit-font-smoothing: antialiased;
18
+ }
19
+
20
+ body {
21
+ color: $text-color;
22
+ font-size: 20px;
23
+ font-family: $font-family;
24
+ font-weight: $standard-weight;
25
+ line-height: 1.55em;
26
+ }
27
+
28
+ input {
29
+ line-height: 1em;
30
+ }
31
+
32
+ a {
33
+ color: $link-color;
34
+ text-decoration: none;
35
+ border-bottom: 1px solid transparent;
36
+
37
+ &:hover {
38
+ @include transition-property(border);
39
+ @include transition-duration(0.2s);
40
+ border-bottom: 1px solid;
41
+ }
42
+ }
43
+
44
+ strong, b {
45
+ font-weight: $bold-weight;
46
+ font-style: normal;
47
+ }
48
+
49
+ mark {
50
+ background-color: $highligh-color;
51
+ padding: 0.05em 0.1em;
52
+ box-shadow: $highligh-color 0 0 5px;
53
+
54
+ code {
55
+ background-color: $highligh-color;
56
+ border: none;
57
+ }
58
+ }
59
+
60
+ em, i {
61
+ font-style:italic
62
+ }
63
+
64
+ abbr {
65
+ border-bottom: 1px dashed;
66
+ cursor: help;
67
+ }
68
+
69
+ p {
70
+ margin: 0 0 1em;
71
+ }
72
+
73
+ hr {
74
+ margin: 0 auto 2em;
75
+ border: 0;
76
+ border-bottom: 1px solid #ddd;
77
+ width: 60%;
78
+ }
79
+
80
+ blockquote {
81
+ border-left: 5px solid #ddd;
82
+ color: #888;
83
+ margin: 0 0 1em;
84
+ padding-left: 1em;
85
+
86
+ a {
87
+ color: #444;
88
+
89
+ &:hover {
90
+ color: $link-color;
91
+ }
92
+ }
93
+ }
94
+
95
+ small {
96
+ font-size: 0.8em;
97
+ color: #999;
98
+ margin-left: 0.2em;
99
+
100
+ a {
101
+ color: #444;
102
+
103
+ &:hover {
104
+ color: #2e80d3;
105
+ }
106
+ }
107
+ }
108
+
109
+ h1 {
110
+ color: #000;
111
+ font-size: 3em;
112
+ margin-bottom: 0.5em;
113
+ font-family: 'Landmark Dimensional A', 'Landmark Dimensional B';
114
+ font-weight: 400;
115
+ text-transform: capitalize;
116
+ line-height: 1em;
117
+ }
118
+
119
+ body > header h1 {
120
+ a, a:hover {
121
+ color: $red-color;
122
+ border: 0;
123
+ }
124
+ }
125
+
126
+ h2 {
127
+ font-size: 1.3em;
128
+ font-weight: $bold-weight;
129
+
130
+ a {
131
+ color: $text-color;
132
+ border: 0;
133
+ }
134
+ }
135
+
136
+ h3 {
137
+ font-weight: $bold-weight;
138
+ color: #666;
139
+ font-size: 1.1em;
140
+
141
+ a {
142
+ color: #666;
143
+ border: 0;
144
+ }
145
+ }
146
+
147
+ h4 {
148
+ color: #999;
149
+ font-weight: $bold-weight;
150
+ margin-bottom: 0.2em;
151
+ }
152
+
153
+ sup {
154
+ vertical-align: super;
155
+ }
156
+
157
+
158
+ // Content
159
+ body > header, main > section.posts, main > nav, body > footer {
160
+ max-width: $width;
161
+ margin: 0 auto;
162
+ padding: 0 16px;
163
+ box-sizing: border-box;
164
+ }
165
+
166
+ // Header
167
+ body > header {
168
+ color: #949494;
169
+ margin: 4em auto;
170
+
171
+ p {
172
+ margin: 0;
173
+ }
174
+
175
+ @media #{$small-query} {
176
+ margin: 2em auto 3em;
177
+
178
+ p:nth-child(2) {
179
+ margin-bottom: 1em;
180
+ }
181
+ }
182
+ }
183
+
184
+ a.hire, a.hire:hover {
185
+ color: $red-color;
186
+ }
187
+
188
+ // Footer
189
+ body > footer {
190
+ color: #aaa;
191
+ text-shadow: #fff 0 1px 0;
192
+ font-size: 0.8em;
193
+ text-align: center;
194
+ margin: 3em auto;
195
+
196
+ a {
197
+ color: #aaa;
198
+
199
+ &:hover {
200
+ color: $link-color;
201
+ }
202
+ }
203
+
204
+
205
+ li {
206
+ margin-right: 1em;
207
+ display: inline-block;
208
+
209
+ &:last-child {
210
+ margin-right: 0;
211
+ }
212
+ }
213
+ }
214
+
215
+ // Sections
216
+ @import "sections/error";
217
+ @import "sections/blog";
218
+
219
+ a.twitter-username:before {
220
+ content: "@";
221
+ }
222
+
223
+ section.server-error {
224
+ margin-bottom: 3em;
225
+ }
226
+
227
+ span.gray {
228
+ color: #777;
229
+ }
230
+
231
+ ul.list, ol.list {
232
+ margin: 0 0 2em 0.5em;
233
+
234
+ li {
235
+ margin-left: 1em;
236
+ }
237
+ }
238
+
239
+ ul.list li {
240
+ list-style: disc;
241
+ }
242
+
243
+ ol.list li {
244
+ list-style: decimal;
245
+ }
246
+
247
+ ol.list li ol li {
248
+ list-style: lower-alpha;
249
+ }
250
+
251
+ div.video {
252
+ position: relative;
253
+
254
+ img {
255
+ display: block;
256
+ width: 100%;
257
+ height: auto;
258
+ visibility: hidden;
259
+ }
260
+
261
+ iframe {
262
+ position: absolute;
263
+ top: 0;
264
+ left: 0;
265
+ width: 100%;
266
+ height: 100%;
267
+ }
268
+ }
269
+
270
+ @import "components/code";
271
+ @import "components/pagination";