minimaless 0.0.8 → 0.0.9

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 334bbf94cefaa6e5e52189dbd4a9354e04d0f5cf
4
- data.tar.gz: 647cc24cfde281b228b14bb0ef0d9185bc9178bf
3
+ metadata.gz: 44a169ab5d09b6585d68cc61853bab7dac65b6a1
4
+ data.tar.gz: 0cdd98d3aaec5970232913a130ec4fe29ead4223
5
5
  SHA512:
6
- metadata.gz: 42a94290430e40cad3ba6d7ca04ddb701ed33bc03709cc192dd0f962b699833b246452eb653e16a8aefeca04ca50bc6e5eed8af91d45da3a35ab00b0def3515e
7
- data.tar.gz: 9792cd97cd50dd158747d5a801a2d436fb8107544c137241403177912d37284be56912da966cd0213161754389ac2d4b0799ea06020b22e287e5bd68d3c6a82b
6
+ metadata.gz: 7c4bf82330e6ee55c3c5a8300007bd40c0afac00a1bca09d8387721302658a4f679228922fc9e8755ec9a79fefae9d6591c079c3906df7262326a85dd22bceae
7
+ data.tar.gz: ecd0761ab646be4b4a798c4616b89963f31b7a5539edc55a8251439851cf6247629458bb4db64ec015a6edcd2242d800604f2dde1a86b8725aa8be1e81e0ba78
@@ -18,6 +18,12 @@
18
18
  </li>
19
19
  {% endif %}
20
20
 
21
+ {% if site.codepen_username %}
22
+ <li>
23
+ <a href="https://codepen.io/{{ site.codepen_username }}" target="_blank"><i class="icon fa fa-codepen"></i></a>
24
+ </li>
25
+ {% endif %}
26
+
21
27
  {% if site.linkedin_username %}
22
28
  <li>
23
29
  <a href="https://www.linkedin.com/in/{{ site.linkedin_username }}" target="_blank"><i class="icon fa fa-linkedin"></i></a>
@@ -65,9 +71,10 @@
65
71
 
66
72
  {% for page in site.pages %}
67
73
  {% if page.layout == 'blog' %}
68
- <li>
69
- <a href="{{ "/feed.xml" | relative_url }}"><i class="icon fa fa-rss"></i></a>
70
- </li>
74
+ <li>
75
+ <a href="{{ "/feed.xml" | relative_url }}"><i class="icon fa fa-rss"></i></a>
76
+ </li>
77
+ {% break %}
71
78
  {% endif %}
72
79
  {% endfor %}
73
80
 
@@ -4,16 +4,7 @@
4
4
  {% assign default_paths = site.pages | map: "path" %}
5
5
  {% assign page_paths = site.header_pages | default: default_paths %}
6
6
 
7
- <!-- If not using blog, make home link go to root page -->
8
- <!-- {% for page in site.pages %} -->
9
- <!-- {% if site.home_page != blank and page.title == site.home_page %} -->
10
- <!-- <a class="site-title"href="{{ page.url | relative_url }}"> -->
11
- <!-- {% elsif forloop.last == true %} -->
12
- <!-- <a class="site-title"href="{{ "/" | relative_url }}"> -->
13
- <!-- {% endif %} -->
14
- <!-- {% endfor %} -->
15
-
16
- <a class="site-title"href="{{ "/blog/" | relative_url }}">
7
+ <a class="site-title"href="{{ "/" | relative_url }}">
17
8
  {% for file in site.static_files %}
18
9
  {% if file.basename == 'logo' %}
19
10
  <img class="site-logo" src="{{ file.path | relative_url }}" alt="site logo" />
@@ -38,7 +29,6 @@
38
29
  </label>
39
30
 
40
31
  <div class="trigger">
41
- <a class="page-link" href="{{ "/" | relative_url }}">about</a>
42
32
  {% for path in page_paths %}
43
33
  {% assign my_page = site.pages | where: "path", path | first %}
44
34
  {% if my_page.title %}
@@ -1,15 +1,15 @@
1
- <ul class="site-links">
1
+ <div class="site-links">
2
2
  {% for link in site.links %}
3
- <li>
3
+ <p>
4
4
  <a href="{{ link.url }}" target="_blank">
5
5
  {% if link.icon != false %}
6
6
  <i class="icon fa fa-{% if link.icon %}{{ link.icon }}{% else %}globe{% endif %}"></i>
7
7
  {% endif %}
8
8
  {% if link.title %}
9
- <p>{{ link.title }}</p>
9
+ <span>{{ link.title }}</span>
10
10
  {% endif %}
11
11
  </a>
12
- </li>
12
+ </p>
13
13
  {% endfor %}
14
- </ul>
14
+ </div>
15
15
 
data/_layouts/blog.html CHANGED
@@ -7,7 +7,7 @@ layout: default
7
7
  {{ content }}
8
8
 
9
9
  <ul class="post-list">
10
- {% for post in site.posts %}
10
+ {% for post in paginator.posts %}
11
11
  <li>
12
12
  {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
13
13
  <span class="post-meta">{{ post.date | date: date_format }}</span>
@@ -15,9 +15,28 @@ layout: default
15
15
  <h2>
16
16
  <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
17
17
  </h2>
18
+ {% if site.preview_posts %}
19
+ <p>
20
+ {{ post.content | strip_html | truncatewords:25 }}
21
+ </p>
22
+ {% endif %}
18
23
  </li>
19
24
  {% endfor %}
20
25
  </ul>
21
26
 
27
+ <div class="pagination">
28
+ {% if paginator.previous_page %}
29
+ <a href="{{ paginator.previous_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="previous"><i class="fa fa-arrow-circle-left"></i></a>
30
+ {% else %}
31
+ <span class="previous disabled"><i class="fa fa-arrow-circle-o-left"></i></span>
32
+ {% endif %}
33
+ <span class="page-number ">{{ paginator.page }} / {{ paginator.total_pages }}</span>
34
+ {% if paginator.next_page %}
35
+ <a href="{{ paginator.next_page_path | prepend: site.baseurl | replace: '//', '/' }}" class="next"><i class="fa fa-arrow-circle-right"></i></a>
36
+ {% else %}
37
+ <span class="next disabled"><i class="fa fa-arrow-circle-o-right"></i></span>
38
+ {% endif %}
39
+ </div>
40
+
22
41
 
23
42
  </div>
data/_layouts/post.html CHANGED
@@ -19,6 +19,15 @@ layout: default
19
19
  {{ content }}
20
20
  </div>
21
21
 
22
+ {% if page.tags != '' %}
23
+ <div class="tags">
24
+ {% for tag in page.tags %}
25
+ {% assign count = site.tags[tag].size %}
26
+ <a href="#{{ tag }}"><span class="tag">{{ tag | escape }}{% if count != 1 %}<span class="tag-count">({{ count }})</span>{% endif %}</span></a>
27
+ {% endfor %}
28
+ </div>
29
+ {% endif %}
30
+
22
31
  {% if site.disqus.shortname %}
23
32
  {% include disqus_comments.html %}
24
33
  {% endif %}
@@ -0,0 +1,15 @@
1
+ ---
2
+ layout: default
3
+ permalink: /archive/
4
+ ---
5
+
6
+ <h1>Posts from {{ page.date | date: "%Y" }}</h1>
7
+
8
+ <ul class="posts">
9
+ {% for post in page.posts %}
10
+ <li>
11
+ <span class="post-date">{{ post.date | date: "%b %-d, %Y" }}</span>
12
+ <a class="post-link" href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a>
13
+ </li>
14
+ {% endfor %}
15
+ </ul>
@@ -10,12 +10,20 @@
10
10
  // }
11
11
 
12
12
  body, h1, h2, h3, h4, h5, h6,
13
- p, blockquote, pre, hr,
13
+ p, blockquote, pre,
14
14
  dl, dd, ol, ul, figure {
15
15
  margin: 0;
16
16
  padding: 0;
17
17
  }
18
18
 
19
+ hr {
20
+ border-width: .5px;
21
+ border-color: #EFEFEF;
22
+ color: #FFF;
23
+ margin: $spacing-unit 0;
24
+ padding: 0;
25
+ }
26
+
19
27
 
20
28
 
21
29
  /**
@@ -45,6 +53,10 @@ ul, ol, dl, figure,
45
53
  margin-bottom: $spacing-unit / 2;
46
54
  }
47
55
 
56
+ pre {
57
+ margin-top: $spacing-unit / 6;
58
+ }
59
+
48
60
 
49
61
 
50
62
  /**
@@ -98,6 +110,7 @@ h1, h2, h3, h4, h5, h6 {
98
110
  /**
99
111
  * Links
100
112
  */
113
+ .landing-content a { white-space: nowrap; }
101
114
  a {
102
115
  color: $brand-color;
103
116
  fill: $brand-color;
@@ -44,7 +44,6 @@
44
44
  color: $text-color;
45
45
  line-height: $base-line-height;
46
46
  font-weight: bold;
47
- text-transform: lowercase;
48
47
 
49
48
  // Gaps between nav items, but not on the last one
50
49
  &:not(:last-child) {
@@ -105,6 +104,25 @@
105
104
  }
106
105
  }
107
106
 
107
+ .pagination {
108
+ text-align: center;
109
+ margin: $spacing-unit * 2 0;
110
+ color: $grey-color;
111
+
112
+ // .page_number
113
+
114
+ .previous, .next { @include relative-font-size(1.25); }
115
+ .previous {
116
+ margin-right: $spacing-unit;
117
+ }
118
+
119
+ .next {
120
+ margin-left: $spacing-unit;
121
+ }
122
+
123
+ .disabled > i { color: $grey-color-light; }
124
+ }
125
+
108
126
 
109
127
 
110
128
  /**
@@ -252,12 +270,13 @@
252
270
  .page-heading {
253
271
  @include relative-font-size(1.25);
254
272
  }
255
- @for $i from 1 through 10 {
273
+ @for $i from 1 through 15 {
256
274
  .blog li:nth-child(#{$i}),
257
275
  .contact .contact-icons li:nth-child(#{$i}),
258
276
  .splash p:nth-child(#{$i}),
259
- .splash .contact-icons li:nth-child(#{$i}), .site-links li:nth-child(#{$i}),
260
- .landing-content .about p:nth-child(#{$i}) {
277
+ .splash .contact-icons li:nth-child(#{$i}), .site-links p:nth-child(#{$i}),
278
+ .landing-content .about p:nth-child(#{$i}),
279
+ .pagination span:nth-child(#{$i}) {
261
280
  -webkit-animation: fadein .5s + $i/2; /* Safari, Chrome and Opera > 12.1 */
262
281
  -moz-animation: fadein .5s + $i/2; /* Firefox < 16 */
263
282
  -ms-animation: fadein .5s + $i/2; /* Internet Explorer */
@@ -303,25 +322,27 @@
303
322
  }
304
323
 
305
324
 
325
+
326
+
327
+
328
+ /**
329
+ * Links page
330
+ */
331
+
306
332
  .site-links {
307
- margin: 0 auto;
333
+ margin: 20px auto;
308
334
  max-width: 310px;
309
335
  a { color: inherit; }
310
336
 
311
- li {
312
- display: inline-block;
313
- min-width: 100px;
314
- min-height: 100px;
315
- }
316
-
317
- li a {
318
- height:100px;
319
- width:100px;
320
- display:table-cell;
321
- vertical-align : middle;
337
+ p {
322
338
  text-align: center;
323
- .icon { font-size: 1.5em; }
324
- p { margin: 0; }
339
+ list-style: none;
340
+ width: 100%;
341
+ margin: 5px 0;
342
+ .icon {
343
+ font-size: 1.5em;
344
+ margin-right: 5px;
345
+ }
325
346
  }
326
347
  }
327
348
 
@@ -379,3 +400,18 @@
379
400
  margin-right: 2px;
380
401
  color: lighten($grey-color-dark, 10%);
381
402
  }
403
+
404
+ .tag {
405
+ @include relative-font-size(.8);
406
+ color: #FFF;
407
+ background-color: $grey-color;
408
+ font-weight: normal;
409
+ padding: 4px 7px;
410
+ &:hover {
411
+ background-color: $grey-color-dark;
412
+ text-decoration: underline;
413
+ }
414
+ }
415
+ .tag-count {
416
+ margin-left: 3px;
417
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimaless
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - brettinternet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-19 00:00:00.000000000 Z
11
+ date: 2017-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -61,6 +61,7 @@ files:
61
61
  - _layouts/page.html
62
62
  - _layouts/post.html
63
63
  - _layouts/splash.html
64
+ - _layouts/tags.html
64
65
  - _sass/minimaless.scss
65
66
  - _sass/minimaless/_base.scss
66
67
  - _sass/minimaless/_layout.scss