shine-on-you-crazy-diamond-theme 0.5.2 → 0.5.3

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
  SHA256:
3
- metadata.gz: ae4392ee160681ef914db7a255fd1bd6e98f2e6447e6d9e3106d845cf74318b1
4
- data.tar.gz: 4d57a1ca602de7f31352406f83288f14f5e4d096d55d43491583e5ee8f64450a
3
+ metadata.gz: 61bab3a1bdbf4b330b9e46f080e809fd36ba6e6c959cb6e85e5b1a60d911d074
4
+ data.tar.gz: 1951590a6704eb1a0266f0bf8d4a8ba82c74cdf57d6110856006198fdc83cace
5
5
  SHA512:
6
- metadata.gz: 50c73e40c8ee351babb6f2523c0946a03977b9a1fc361814cdf9fd1f65244b82ca9de40171f8ebb46a344c2d91f33961ac4d9e2d39018504a6a2df8507713692
7
- data.tar.gz: 196865f65bf25b419006470589487d9025d27fd03fdb8fcb79605f4dd59e8cf033e5033ed0cf8ef58745eeda7086dcfb0047687b2b29263f651a79ffcba7f9ca
6
+ metadata.gz: b36234b9ee9b4eb56ec7ea5ff45c67b6c618af9686cbe5d2ff8369e07c25934def49af73b508e5c2ae35cb5323c6745c3ce9b8c48ba2a2256712a150c520e70a
7
+ data.tar.gz: 6fe8133eb8eab79abbf1771950f688f08ba64cb123ee0e5ac703d87cf92f0fad8bca080e7bf8c8aa43de9700c6125acd2a921432e6d554f0c2ae1a740c7c8a6f
@@ -1,34 +1,12 @@
1
1
  <article>
2
- <header class="header-post">
3
- <h1>
4
- <a href="{{ page.link | escape }}">{{ page.title | escape }}</a>
5
- </h1>
6
-
7
- <ul>
8
- <li>
9
- <i></i>
10
- <i class="fa fa-calendar"></i>
11
- <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%d/%m/%Y" }}</time>
12
- </li>
13
-
14
- {% if page.tags.size > 0 %}
15
- <li>
16
- <i></i>
17
- <i class="fa fa-tags"></i>
18
-
19
- {% assign tag_names = page.tags %}
20
- {% assign tag_array = "" | split: "/" %}
21
-
22
- {% for tag_name in tag_names %}
23
- {% capture link %}<a href="/tags/{{ tag_name | slugify }}/" title="{{ tag_name }}">{{ tag_name }}</a>{% endcapture %}
24
- {% assign tag_array = tag_array | push: link %}
25
- {% endfor %}
26
-
27
- {{ tag_array | join: ', ' }}
28
- </li>
29
- {% endif %}
30
- </ul>
31
- </header>
2
+ {%- include
3
+ article_header.html
4
+ post_url=page.url
5
+ post_title=page.title
6
+ post_date=page.date
7
+ post_tags=page.tags
8
+ post_categories=page.categories
9
+ -%}
32
10
 
33
11
  <div class="content-post">
34
12
  {{ content }}
@@ -0,0 +1,38 @@
1
+ <header class="header-post">
2
+ <h1>
3
+ <a href="{{ include.post_url | escape }}">{{ include.post_title | escape }}</a>
4
+ </h1>
5
+
6
+ <ul>
7
+ <li>
8
+ <i></i>
9
+ <i class="fa fa-calendar"></i>
10
+ <time datetime="{{ include.post_date | date_to_xmlschema }}">{{ include.post_date | date: "%d/%m/%Y" }}</time>
11
+ </li>
12
+
13
+ <li>
14
+ <i></i>
15
+ <i class="fa fa-archive"></i>
16
+ {% assign category_name = include.post_categories[0] %}
17
+ <a href="/categories/{{ category_name | slugify }}/" title="{{ category_name }}">{{ category_name }}</a>
18
+ </li>
19
+
20
+ {% if include.post_tags.size > 0 %}
21
+ <li>
22
+ <i></i>
23
+ <i class="fa fa-tags"></i>
24
+
25
+ {% assign tag_names = include.post_tags %}
26
+ {% assign tag_array = "" | split: "/" %}
27
+
28
+ {% for tag_name in tag_names %}
29
+ {% capture link %}<a href="/tags/{{ tag_name | slugify }}/" title="{{ tag_name }}">{{ tag_name }}</a>{% endcapture %}
30
+
31
+ {% assign tag_array = tag_array | push: link %}
32
+ {% endfor %}
33
+
34
+ {{ tag_array | join: ', ' }}
35
+ </li>
36
+ {% endif %}
37
+ </ul>
38
+ </header>
@@ -1,6 +1,6 @@
1
1
  <title>
2
2
  {% if page.layout == 'post' %}
3
- {{ page.title }} | {{ site.title }}
3
+ {{ page.title }} | {{ site.title }}
4
4
  {% else %}
5
5
  {{ site.title }}
6
6
  {% endif %}
@@ -6,36 +6,14 @@ layout: default
6
6
  {%- if page.posts.size > 0 -%}
7
7
  {%- for post in page.posts -%}
8
8
  <article>
9
- <header class="header-post">
10
- <h1>
11
- <a href="{{ post.url | escape }}">{{ post.title | escape }}</a>
12
- </h1>
13
-
14
- <ul>
15
- <li>
16
- <i></i>
17
- <i class="fa fa-calendar"></i>
18
- <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%d/%m/%Y" }}</time>
19
- </li>
20
-
21
- {% if post.tags.size > 0 %}
22
- <li>
23
- <i></i>
24
- <i class="fa fa-tags"></i>
25
-
26
- {% assign tag_names = post.tags %}
27
- {% assign tag_array = "" | split: "/" %}
28
-
29
- {% for tag_name in tag_names %}
30
- {% capture link %}<a href="/tags/{{ tag_name | slugify }}/" title="{{ tag_name }}">{{ tag_name }}</a>{% endcapture %}
31
- {% assign tag_array = tag_array | push: link %}
32
- {% endfor %}
33
-
34
- {{ tag_array | join: ', ' }}
35
- </li>
36
- {% endif %}
37
- </ul>
38
- </header>
9
+ {%- include
10
+ article_header.html
11
+ post_url=post.url
12
+ post_title=post.title
13
+ post_date=post.date
14
+ post_tags=post.tags
15
+ post_categories=post.categories
16
+ -%}
39
17
  </article>
40
18
 
41
19
  <hr class="post-separator">
@@ -6,36 +6,14 @@ layout: default
6
6
  {%- if site.posts.size > 0 -%}
7
7
  {%- for post in site.posts -%}
8
8
  <article>
9
- <header class="header-post">
10
- <h1>
11
- <a href="{{ post.url | escape }}">{{ post.title | escape }}</a>
12
- </h1>
13
-
14
- <ul>
15
- <li>
16
- <i></i>
17
- <i class="fa fa-calendar"></i>
18
- <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%d/%m/%Y" }}</time>
19
- </li>
20
-
21
- {% if post.tags.size > 0 %}
22
- <li>
23
- <i></i>
24
- <i class="fa fa-tags"></i>
25
-
26
- {% assign tag_names = post.tags %}
27
- {% assign tag_array = "" | split: "/" %}
28
-
29
- {% for tag_name in tag_names %}
30
- {% capture link %}<a href="/tags/{{ tag_name | slugify }}/" title="{{ tag_name }}">{{ tag_name }}</a>{% endcapture %}
31
- {% assign tag_array = tag_array | push: link %}
32
- {% endfor %}
33
-
34
- {{ tag_array | join: ', ' }}
35
- </li>
36
- {% endif %}
37
- </ul>
38
- </header>
9
+ {%- include
10
+ article_header.html
11
+ post_url=post.url
12
+ post_title=post.title
13
+ post_date=post.date
14
+ post_tags=post.tags
15
+ post_categories=post.categories
16
+ -%}
39
17
  </article>
40
18
 
41
19
  <hr class="post-separator">
@@ -7,36 +7,14 @@ pagination:
7
7
  <main class="main-section">
8
8
  {% for post in paginator.posts %}
9
9
  <article>
10
- <header class="header-post">
11
- <h1>
12
- <a href="{{ post.url | escape }}">{{ post.title | escape }}</a>
13
- </h1>
14
-
15
- <ul>
16
- <li>
17
- <i></i>
18
- <i class="fa fa-calendar"></i>
19
- <time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: "%d/%m/%Y" }}</time>
20
- </li>
21
-
22
- {% if post.tags.size > 0 %}
23
- <li>
24
- <i></i>
25
- <i class="fa fa-tags"></i>
26
-
27
- {% assign tag_names = post.tags %}
28
- {% assign tag_array = "" | split: "/" %}
29
-
30
- {% for tag_name in tag_names %}
31
- {% capture link %}<a href="/tags/{{ tag_name | slugify }}/" title="{{ tag_name }}">{{ tag_name }}</a>{% endcapture %}
32
- {% assign tag_array = tag_array | push: link %}
33
- {% endfor %}
34
-
35
- {{ tag_array | join: ', ' }}
36
- </li>
37
- {% endif %}
38
- </ul>
39
- </header>
10
+ {%- include
11
+ article_header.html
12
+ post_url=post.url
13
+ post_title=post.title
14
+ post_date=post.date
15
+ post_tags=post.tags
16
+ post_categories=post.categories
17
+ -%}
40
18
 
41
19
  <div class="content-post">
42
20
  {{ post.content }}
@@ -57,7 +35,7 @@ pagination:
57
35
  {% if page.url == trail.path %}
58
36
  <span class="page-number current">{{ paginator.page }}</span>
59
37
  {% else %}
60
- <a class="page-number" href="{{ trail.path }}">{{ trail.num }}</a>
38
+ <a class="page-number" href="{{ trail.path }}">{{ trail.num }}</a>
61
39
  {% endif %}
62
40
  {% endfor %}
63
41
 
@@ -27,7 +27,7 @@
27
27
  }
28
28
 
29
29
  ul {
30
- display: inline-flex;
30
+ display: inline;
31
31
  }
32
32
 
33
33
  li {
@@ -39,6 +39,14 @@
39
39
  }
40
40
  }
41
41
 
42
+ @media (min-width: $breakpoint-content-section) {
43
+ .header-post {
44
+ ul {
45
+ display: inline-flex;
46
+ }
47
+ }
48
+ }
49
+
42
50
  .pagination {
43
51
  font-size: 1rem;
44
52
  margin-bottom: 20px;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shine-on-you-crazy-diamond-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - ramonsantos
@@ -92,20 +92,6 @@ dependencies:
92
92
  - - ">="
93
93
  - !ruby/object:Gem::Version
94
94
  version: 2.6.1
95
- - !ruby/object:Gem::Dependency
96
- name: jekyll-target-blank
97
- requirement: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - "~>"
100
- - !ruby/object:Gem::Version
101
- version: '2.0'
102
- type: :runtime
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- requirements:
106
- - - "~>"
107
- - !ruby/object:Gem::Version
108
- version: '2.0'
109
95
  - !ruby/object:Gem::Dependency
110
96
  name: bundler
111
97
  requirement: !ruby/object:Gem::Requirement
@@ -130,6 +116,7 @@ files:
130
116
  - LICENSE.md
131
117
  - README.md
132
118
  - _includes/article.html
119
+ - _includes/article_header.html
133
120
  - _includes/disqus_comments.html
134
121
  - _includes/footer.html
135
122
  - _includes/google_analytics.html