shine-on-you-crazy-diamond-theme 0.5.1 → 1.0.2

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: 5888c3d615bed7042e28fb2d20b8e562e5dbf3c2a5597bfbaa80347ad063e307
4
- data.tar.gz: 756b9e7924eceaf99c1045651880d0abc490a123e9bb6dff07903391835d41dc
3
+ metadata.gz: 5dc5cc1f18da5b2ed18ae614f8b74a4a690c0beaf0218fd30b9f0cb147b4367c
4
+ data.tar.gz: 97695721005f4633f00b862f4f4b3093a09187f3a432b0004af5c25a062b9d03
5
5
  SHA512:
6
- metadata.gz: 8b29c76dc98f45d2f5827831825432a53675cc4d94ff909d17cb3cb2ac24571e448b2f0ad8d1b285f8e16baf5648cdf8f7e175d51081166c616b861a3a253999
7
- data.tar.gz: f9e60443b927ab93aac2066a7be6aabcc68c8953af21eef58a366c3fd97ebbd4b325ccc0fba781457a369e941fc8f229a5b2ef2c52ac3329ef85f9c0f271fb75
6
+ metadata.gz: b3d1f381693ec0ebab87c3b981e716bbf2d138442b688a55e57a1eee158153cb0c8d55d47d2a0df928eddc15287460010797aa05eba5a8d90decc37e95b12d68
7
+ data.tar.gz: 7370c82b614fd8cafe0599cd9959d74ab784ea40334521e6c844dfaf048eadad5dae68b7fc92eb656ff4c6453769061aa7d7ebecc61a340bf441bf908db9c8e7
data/README.md CHANGED
@@ -3,9 +3,8 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/shine-on-you-crazy-diamond-theme.svg)](http://badge.fury.io/rb/shine-on-you-crazy-diamond-theme)
4
4
  [![Maintainability](https://api.codeclimate.com/v1/badges/77053aa36e97ac9b72dc/maintainability)](https://codeclimate.com/github/ramonsantos/shine-on-you-crazy-diamond-theme/maintainability)
5
5
  [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
6
- ![Code Climate technical debt](https://img.shields.io/codeclimate/tech-debt/ramonsantos/shine-on-you-crazy-diamond-theme)
7
6
 
8
- Jekyll theme for my website
7
+ Jekyll theme for [my website](https://ramonsantos.github.io/).
9
8
 
10
9
  ## Installation
11
10
 
@@ -1,42 +1,18 @@
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 }}
35
13
  </div>
36
14
 
37
15
  {%- if site.disqus.shortname -%}
38
- <footer id="comments">
39
- {%- include disqus_comments.html -%}
40
- </footer>
16
+ {%- include disqus_comments.html -%}
41
17
  {%- endif -%}
42
18
  </article>
@@ -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,25 +1,29 @@
1
1
  {%- if page.comments != false and page.layout == 'post' -%}
2
- <div id="disqus_thread"></div>
2
+ <br>
3
3
 
4
- <script>
5
- var disqus_config = function () {
6
- this.page.url = '{{ page.url | absolute_url }}';
7
- this.page.identifier = '{{ page.url | absolute_url }}';
8
- };
4
+ <footer id="comments">
5
+ <div id="disqus_thread"></div>
9
6
 
10
- (function() {
11
- var d = document, s = d.createElement('script');
7
+ <script>
8
+ var disqus_config = function () {
9
+ this.page.url = '{{ page.url | absolute_url }}';
10
+ this.page.identifier = '{{ page.url | absolute_url }}';
11
+ };
12
12
 
13
- s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
13
+ (function() {
14
+ var d = document, s = d.createElement('script');
14
15
 
15
- s.setAttribute('data-timestamp', +new Date());
16
- (d.head || d.body).appendChild(s);
17
- })();
18
- </script>
16
+ s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
19
17
 
20
- <script id="dsq-count-scr" src="//{{ site.disqus.shortname }}.disqus.com/count.js" async></script>
18
+ s.setAttribute('data-timestamp', +new Date());
19
+ (d.head || d.body).appendChild(s);
20
+ })();
21
+ </script>
21
22
 
22
- <noscript>Please enable JavaScript to view the
23
- <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
24
- </noscript>
23
+ <script id="dsq-count-scr" src="//{{ site.disqus.shortname }}.disqus.com/count.js" async></script>
24
+
25
+ <noscript>Please enable JavaScript to view the
26
+ <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a>
27
+ </noscript>
28
+ </footer>
25
29
  {%- endif -%}
@@ -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 %}
@@ -16,4 +16,8 @@
16
16
  <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css" rel="stylesheet">
17
17
  <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
18
18
 
19
+ <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/styles/monokai.min.css">
20
+ <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/highlight.min.js"></script>
21
+ <script>hljs.initHighlightingOnLoad();</script>
22
+
19
23
  {% seo title=false %}
@@ -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;
@@ -68,3 +76,9 @@
68
76
  border-top: 1px solid $border-bottom-color;
69
77
  margin: 50px 0 40px;
70
78
  }
79
+
80
+ pre {
81
+ code {
82
+ font-size: .9rem;
83
+ }
84
+ }
@@ -1,3 +1,6 @@
1
+ ---
2
+ ---
3
+
1
4
  @import 'variables';
2
5
  @import 'mixin';
3
6
  @import 'reset';
metadata CHANGED
@@ -1,14 +1,14 @@
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.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ramonsantos
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-12 00:00:00.000000000 Z
11
+ date: 2021-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -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
@@ -120,7 +106,7 @@ dependencies:
120
106
  - - ">="
121
107
  - !ruby/object:Gem::Version
122
108
  version: '0'
123
- description:
109
+ description:
124
110
  email:
125
111
  - ramonsantos.pe@gmail.com
126
112
  executables: []
@@ -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
@@ -162,7 +149,7 @@ licenses:
162
149
  - MIT
163
150
  metadata:
164
151
  plugin_type: theme
165
- post_install_message:
152
+ post_install_message:
166
153
  rdoc_options: []
167
154
  require_paths:
168
155
  - lib
@@ -177,8 +164,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
177
164
  - !ruby/object:Gem::Version
178
165
  version: '0'
179
166
  requirements: []
180
- rubygems_version: 3.1.2
181
- signing_key:
167
+ rubygems_version: 3.1.4
168
+ signing_key:
182
169
  specification_version: 4
183
170
  summary: Theme from website https://ramonsantos.github.io/
184
171
  test_files: []