louie 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/post.html +31 -31
  3. data/_sass/post.scss +25 -12
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d78581c04d1a58cb7ae8e93f46c990a7dc1d138b
4
- data.tar.gz: fd95b42be9a59f61c9da3de66c3ff7af4c8bd76c
3
+ metadata.gz: 12ed2e9caa10b0bbcc3882e51a62ab0a106c9118
4
+ data.tar.gz: 6221221f29a4393b1d987b66dcdc6487ca8d84d3
5
5
  SHA512:
6
- metadata.gz: 1237181758fa43d8761492accec10335731f2d94d24ca61c228d3d8be976d5368b5ef87ad5d38773fb62dcbf416cde5db3b8809b8fe15883cf61e5b4663c52a3
7
- data.tar.gz: 0c058cb73ba63a042c4ca8cee788f4992377d84b8e3c42250343fd9510f8058a0605fcb494ff9fb9ffa365b6a38c6694f65462a60e108e0c4a82044e217006a4
6
+ metadata.gz: 0e8602583acae70da535b61d80348eb58eeb3e0494f617ed118fb376e21e4cd8247889b624c808ea4cc264951d6016e34e1ce1a339ab3f51b01186f13138814e
7
+ data.tar.gz: 400f752baebef05ca9453d2a19909a2ab8aaef924542b788579f944c05d49bccae11fcf913588dbffe62bd814c4dccdf98c80786d900c897c0159658189eb7c7
data/_layouts/post.html CHANGED
@@ -3,43 +3,43 @@
3
3
  {% include head.html %}
4
4
 
5
5
  <body>
6
- <div class="post">
7
- <div class="bio__header">
8
- <a href="{{ site.url }}{{ "/" | relative_url }}">
9
- {{ site.header }}
10
- </a>
11
- </div>
6
+ <div class="container">
7
+ <div class="post">
8
+ <div class="bio__header">
9
+ <a href="{{ site.url }}{{ "/" | relative_url }}">
10
+ {{ site.header }}
11
+ </a>
12
+ </div>
12
13
 
13
- <div class="post__meta">
14
- <div class="post__title">{{ page.title }}</div>
15
- <div class="post__date">
16
- {% if site.date_format %}
17
- {{ page.date | date: site.date_format }}
18
- {% else %}
19
- {{ page.date | date: "%b %-d, %Y" }}
20
- {% endif %}
14
+ <div class="post__meta">
15
+ <div class="post__title">{{ page.title }}</div>
16
+ <div class="post__date">
17
+ {% if site.date_format %}
18
+ {{ page.date | date: site.date_format }}
19
+ {% else %}
20
+ {{ page.date | date: "%b %-d, %Y" }}
21
+ {% endif %}
22
+ </div>
23
+ <div class="post__cat">{{ page.category }}</div>
21
24
  </div>
22
- <div class="post__cat">{{ page.category }}</div>
23
- </div>
24
25
 
25
- <div class="post__body">
26
- {{ content }}
27
- </div>
26
+ <div class="post__body">
27
+ {{ content }}
28
+ </div>
28
29
 
29
- {% if site.prev-next %}
30
- <div class="post__paginate">
31
- {% if page.previous.url %}
32
- <a class="post__paginate-left" href="{{ site.url }}{{ page.previous.url | relative_url }}">&xlarr; {{ page.previous.title }}</a>
33
- {% endif %}
30
+ {% if site.prev-next %}
31
+ <div class="post__paginate">
32
+ {% if page.previous.url %}
33
+ <a class="post__paginate-left" href="{{ site.url }}{{ page.previous.url | relative_url }}">{{ page.previous.title }}</a>
34
+ {% endif %}
34
35
 
35
- {% if page.next.url %}
36
- <a class="post__paginate-right" href="{{ site.url }}{{ page.next.url | relative_url }}">{{ page.next.title }} &xrarr;</a>
37
- {% endif %}
38
- </div>
39
- {% endif %}
40
- </div>
36
+ {% if page.next.url %}
37
+ <a class="post__paginate-right" href="{{ site.url }}{{ page.next.url | relative_url }}">{{ page.next.title }}</a>
38
+ {% endif %}
39
+ </div>
40
+ {% endif %}
41
+ </div>
41
42
 
42
- <div class="container">
43
43
  {% include posts_list.html uid=page.id %}
44
44
  </div>
45
45
  </body>
data/_sass/post.scss CHANGED
@@ -1,7 +1,3 @@
1
- .post {
2
- @extend .container;
3
- }
4
-
5
1
  .post__meta {
6
2
  margin: 30px 0 20px;
7
3
  border-bottom: 1px solid $color__black;
@@ -11,20 +7,39 @@
11
7
 
12
8
  .post__paginate {
13
9
  overflow: hidden;
10
+ }
14
11
 
15
- a {
16
- display: block;
17
- width: 50%;
18
- }
12
+ $paginate-padding: 13px;
13
+ .post__paginate-left,
14
+ .post__paginate-right {
15
+ position: relative;
16
+ display: block;
17
+ width: 50%;
19
18
  }
20
19
 
21
20
  .post__paginate-left {
21
+ padding-left: $paginate-padding;
22
22
  float: left;
23
+
24
+ &:before {
25
+ position: absolute;
26
+ top: 0;
27
+ left: 0;
28
+ content: "\21FD";
29
+ }
23
30
  }
24
31
 
25
32
  .post__paginate-right {
26
- float: right;
33
+ padding-right: $paginate-padding;
27
34
  text-align: right;
35
+ float: right;
36
+
37
+ &:after {
38
+ position: absolute;
39
+ top: 0;
40
+ right: 0;
41
+ content: "\21FE";
42
+ }
28
43
  }
29
44
 
30
45
  .post__title {
@@ -46,9 +61,7 @@
46
61
 
47
62
  // media queries
48
63
  @include media-query($on-laptop) {
49
- .post__meta,
50
- .post__body,
51
- .post__paginate {
64
+ .post {
52
65
  min-width: 500px;
53
66
  width: 50%;
54
67
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: louie
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lillian Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-09 00:00:00.000000000 Z
11
+ date: 2017-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  version: '0'
94
94
  requirements: []
95
95
  rubyforge_project:
96
- rubygems_version: 2.4.5.1
96
+ rubygems_version: 2.6.8
97
97
  signing_key:
98
98
  specification_version: 4
99
99
  summary: A Jekyll theme (that looks awesome). Louie is free, lightweight, and customizable