minimaless 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2fb14c3cc8a1e56aed2d5d070c0285fb6775af34
4
- data.tar.gz: 3c5bd83233e6b81b261eb81a01bbc22a495b2a4f
3
+ metadata.gz: 4f45d5bcadca8d31f5e43d5b5c73bae8d51c6551
4
+ data.tar.gz: b9f8b741d88b36ae8dedc29fbbe1ebadc44e9227
5
5
  SHA512:
6
- metadata.gz: 3f0c08a6c825fbbd2f0152406f2fcfe42ad0a91e3d6b88d0388b650e4aa53ba9895ef22a08e09c9323657b6f3a3d4d7cee7299d56c2daa8a3210fda4df682ed1
7
- data.tar.gz: 105c15caacaea47b617684cd7b318e71da95eb0f045ee67dcf8fef558e26f17afa8b4042ac13363a86b513c8742d0501363508e78d013967efb901f89e2b93a1
6
+ metadata.gz: 3237c5a28355636c914e969fbf7250ae8f7b14b312082d816227a935150973a994f4cc6289987710d3884c016b72a69df401375c676671a3742b817e54a6beed
7
+ data.tar.gz: 977e692276631c5eabc005bd01ff849656c260aa735c2298a48091ff468e61ec502aacd3c51e7422e6f6afa2d0155653206dfaac6402f144a4c6b794e89415be
File without changes
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # minimaless
2
2
 
3
- It's like [minima](https://jekyll.github.io/minima/), but less. ✨
3
+ It's like the [minima](https://jekyll.github.io/minima/) theme, but with _less noise_ and more functionality. ✨
4
4
 
5
- See the [demo site](https://brettinternet.github.io/minimaless/). Follow these steps to [setup](/_pages/setup.md) your own Jekyll site with this theme.
5
+ See the [demo site](https://brettinternet.github.io/minimaless/) or follow these steps to [setup](/_pages/setup.md) your own Jekyll site with this theme.
6
6
 
7
7
  ![minimaless screenshot preview](/screenshot.png)
8
8
 
@@ -65,6 +65,31 @@ The site's default CSS has now moved to a new place within the gem itself, [`ass
65
65
 
66
66
  --
67
67
 
68
+ ### Tags
69
+
70
+ Make a new folder called `tag` where you will add markdown files for each new tag you use on your site.
71
+
72
+ ```
73
+ minimaless
74
+ ├─ tag
75
+ │ └─ kittens.md
76
+ └─ _posts
77
+ ```
78
+
79
+ Create a new markdown file with the tag as the file name (eg. `<tag name>.md`). You only need to set up the header information. For example, if the tag is `kittens`, then use the following header:
80
+
81
+ ```yml
82
+ ---
83
+ layout: tags
84
+ tag: kittens
85
+ permalink: /tag/kittens/
86
+ ---
87
+ ```
88
+
89
+ This must be done for every new tag you create. This is the page that users will see when they click on a tag to display the list of posts for each tag. [View the tag page here](https://brettinternet.github.io/minimaless/tags/).
90
+
91
+ --
92
+
68
93
  ### Enabling comments (via Disqus)
69
94
 
70
95
  Optionally, if you have a Disqus account, you can tell Jekyll to use it to show a comments section below each post.
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -24,7 +24,7 @@ layout: default
24
24
  <i class="fa fa-tags"></i>
25
25
  {% for tag in page.tags %}
26
26
  {% assign count = site.tags[tag].size %}
27
- <a href="#{{ tag }}">
27
+ <a href="{{site.baseurl}}/tag/{{ tag }}">
28
28
  <span class="tag">{{ tag | escape }}{% if count != 1 %}<span class="tag-count">({{ count }})</span>{% endif %}</span></a>
29
29
  {% endfor %}
30
30
  </div>
File without changes
@@ -1,15 +1,45 @@
1
1
  ---
2
2
  layout: default
3
- permalink: /archive/
4
3
  ---
5
4
 
6
- <h1>Posts from {{ page.date | date: "%Y" }}</h1>
5
+ {% if page.tag %}
6
+ <h1>#{{ page.tag }}</h1>
7
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 %}
8
+ <ul class="post-list">
9
+ {% if site.tags[page.tag] %}
10
+ {% for post in site.tags[page.tag] %}
11
+ <li>
12
+ {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
13
+ <span class="post-meta">{{ post.date | date: date_format }}</span>
14
+
15
+ <h2>
16
+ <a class="post-link" href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
17
+ </h2>
18
+ {% if site.preview_posts %}
19
+ <p>
20
+ {{ post.content | strip_html | truncatewords:25 }}
21
+ </p>
22
+ {% endif %}
23
+ </li>
24
+ {% endfor %}
25
+ {% endif %}
15
26
  </ul>
27
+
28
+
29
+ <hr>
30
+ {% endif %}
31
+
32
+
33
+ {% if site.tags != '' %}
34
+ <h1>Tags</h1>
35
+
36
+ <div class="tags">
37
+ <i class="fa fa-tags"></i>
38
+ {% for tag_obj in site.tags %}
39
+ {% assign tag = tag_obj | first %}
40
+ {% assign count = site.tags[tag].size %}
41
+ <a href="{{site.baseurl}}/tag/{{ tag }}">
42
+ <span class="tag">{{ tag }}{% if count != 1 %}<span class="tag-count">({{ count }})</span>{% endif %}</span></a>
43
+ {% endfor %}
44
+ </div>
45
+ {% endif %}
File without changes
@@ -51,6 +51,18 @@ ul, ol, dl, figure,
51
51
  margin-bottom: $spacing-unit / 2;
52
52
  }
53
53
 
54
+ h1 {
55
+ margin-top: $spacing-unit * 1.5;
56
+ }
57
+
58
+ h2 {
59
+ margin-top: $spacing-unit * 1.25;
60
+ }
61
+
62
+ h3, h4 {
63
+ margin-top: $spacing-unit;
64
+ }
65
+
54
66
  pre {
55
67
  margin-top: $spacing-unit / 6;
56
68
  }
@@ -164,6 +164,9 @@
164
164
 
165
165
  li:first-child { margin-left: 0; }
166
166
  li:last-child { margin-right: 0; }
167
+ @include media-query($on-palm) {
168
+ li:first-child, li:last-child { margin: 0 7px; }
169
+ }
167
170
 
168
171
 
169
172
  .icon {
@@ -281,6 +284,10 @@
281
284
  .page-content {
282
285
  padding: $spacing-unit 0;
283
286
  min-height: $content-height;
287
+
288
+ & > .wrapper > h1 {
289
+ margin-top: $spacing-unit / 2;
290
+ }
284
291
  }
285
292
 
286
293
  .page-heading {
@@ -290,7 +297,7 @@
290
297
  .blog li:nth-child(#{$i}),
291
298
  .contact .contact-icons li:nth-child(#{$i}),
292
299
  .splash p:nth-child(#{$i}),
293
- .splash .contact-icons li:nth-child(#{$i}), .site-links p:nth-child(#{$i}),
300
+ .splash .contact-icons li:nth-child(#{$i}),
294
301
  .landing-content .about p:nth-child(#{$i}),
295
302
  .pagination span:nth-child(#{$i}) {
296
303
  -webkit-animation: fadein .5s + $i/2; /* Safari, Chrome and Opera > 12.1 */
@@ -324,7 +331,7 @@
324
331
  list-style: none;
325
332
 
326
333
  > li h2 {
327
- // margin-bottom: $spacing-unit;
334
+ margin: 0 0 $spacing-unit / 4 0;
328
335
  line-height: 1em;
329
336
  }
330
337
  }
@@ -345,29 +352,6 @@
345
352
 
346
353
 
347
354
 
348
- /**
349
- * Links page
350
- */
351
-
352
- .site-links {
353
- margin: 20px auto;
354
- max-width: 310px;
355
- a { color: inherit; }
356
-
357
- p {
358
- text-align: center;
359
- list-style: none;
360
- width: 100%;
361
- margin: 5px 0;
362
- .icon {
363
- font-size: 1.5em;
364
- margin-right: 5px;
365
- }
366
- }
367
- }
368
-
369
-
370
-
371
355
  /**
372
356
  * Posts
373
357
  */
@@ -376,7 +360,7 @@
376
360
  }
377
361
 
378
362
  .post-title {
379
- // margin-bottom: 5px;
363
+ margin-top: $spacing-unit / 2;
380
364
  @include relative-font-size(2.625);
381
365
  letter-spacing: -1px;
382
366
  line-height: 1;
@@ -393,17 +377,17 @@
393
377
  @include relative-font-size(2);
394
378
 
395
379
  @include media-query($on-laptop) {
396
- @include relative-font-size(1.75);
380
+ @include relative-font-size(1.8);
397
381
  }
398
382
  display: block;
399
383
  border-bottom: 1px solid #eaecef;
400
384
  }
401
385
 
402
386
  h2 {
403
- @include relative-font-size(2);
387
+ @include relative-font-size(1.85);
404
388
 
405
389
  @include media-query($on-laptop) {
406
- @include relative-font-size(1.75);
390
+ @include relative-font-size(1.7);
407
391
  }
408
392
  }
409
393
 
File without changes
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.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - brettinternet
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-25 00:00:00.000000000 Z
11
+ date: 2018-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -53,7 +53,6 @@ files:
53
53
  - _includes/head.html
54
54
  - _includes/header.html
55
55
  - _includes/icon-keybase.svg
56
- - _includes/site-links.html
57
56
  - _layouts/about.html
58
57
  - _layouts/blog.html
59
58
  - _layouts/contact.html
@@ -1,15 +0,0 @@
1
- <div class="site-links">
2
- {% for link in site.links %}
3
- <p>
4
- <a href="{{ link.url }}" target="_blank">
5
- {% if link.icon != false %}
6
- <i class="icon fa fa-{% if link.icon %}{{ link.icon }}{% else %}globe{% endif %}"></i>
7
- {% endif %}
8
- {% if link.title %}
9
- <span>{{ link.title }}</span>
10
- {% endif %}
11
- </a>
12
- </p>
13
- {% endfor %}
14
- </div>
15
-