shine-on-you-crazy-diamond-theme 0.5.0 → 1.0.1

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: 87455a6109a4c6574864ab571c5a4727508e36fa724f86632f763c704648027f
4
- data.tar.gz: 79bee09b5de40127f8d57779387ccd024b830f10828f03f8e68a6015c567fb10
3
+ metadata.gz: 8797253486d39f32076133a1bd437f086b7cce260754c746e43efcd496060c3b
4
+ data.tar.gz: 01f5dafe8dc7840c52009fa34704acef1c82056ec8912548f142554f0533e93f
5
5
  SHA512:
6
- metadata.gz: 3ef2e1fe4f729993e230bd4a783739d1e4fb3571ac815b4deba07860d8aef43deaab9a89450afb4fe6531273237a861444e86bea1e61adf6e368f360dfd8c4b3
7
- data.tar.gz: 70fd241e942629c82cb2b315788afc8f0c2ffe3ff392b50081a4465722025ae7db48dcc6b9d50171da2ce649eeeab43148bdafc80c4a79a6362225a5202fa042
6
+ metadata.gz: 9e8ee527a308691f3ed5689ff7d79b3352fcbd7946da3027c9f074713b224c7962466ab3360525647b62b31c6f78dbb8bdf533dc4e20c530d9d150582489cda8
7
+ data.tar.gz: 3d65c41da14f86a12564e3e3747391dac59c528212c1067b345ded588c0071a7cdbbf83bb175dcd9b74a51edf7d611f3ba3135a09472b5db7a418eb6f6bc9f79
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2017 Ramon Santos
3
+ Copyright (c) 2020 Ramon Santos
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,11 +1,10 @@
1
- # shine-on-you-crazy-diamond-theme
1
+ # Shine on You Crazy Diamond Theme
2
2
 
3
- Welcome to your new Jekyll theme! In this directory, you'll find the files you need to be able to package up your theme into a gem. Put your layouts in `_layouts`, your includes in `_includes`, your sass files in `_sass` and any other assets in `assets`.
4
-
5
- To experiment with this code, add some sample content and run `bundle exec jekyll serve` – this directory is setup just like a Jekyll site!
6
-
7
- TODO: Delete this and the text above, and describe your gem
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
+ [![Maintainability](https://api.codeclimate.com/v1/badges/77053aa36e97ac9b72dc/maintainability)](https://codeclimate.com/github/ramonsantos/shine-on-you-crazy-diamond-theme/maintainability)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
8
6
 
7
+ Jekyll theme for [my website](https://ramonsantos.github.io/).
9
8
 
10
9
  ## Installation
11
10
 
@@ -23,19 +22,15 @@ theme: shine-on-you-crazy-diamond-theme
23
22
 
24
23
  And then execute:
25
24
 
26
- $ bundle
25
+ ```bash
26
+ $ bundle
27
+ ```
27
28
 
28
29
  Or install it yourself as:
29
30
 
30
- $ gem install shine-on-you-crazy-diamond-theme
31
-
32
- ## Usage
33
-
34
- TODO: Write usage instructions here. Describe your available layouts, includes, sass and/or assets.
35
-
36
- ## Contributing
37
-
38
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/hello. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
31
+ ```bash
32
+ $ gem install shine-on-you-crazy-diamond-theme
33
+ ```
39
34
 
40
35
  ## Development
41
36
 
@@ -49,4 +44,3 @@ To add a custom directory to your theme-gem, please edit the regexp in `shine-on
49
44
  ## License
50
45
 
51
46
  The theme is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
52
-
@@ -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,20 +1,29 @@
1
1
  {%- if page.comments != false and page.layout == 'post' -%}
2
- <div id="disqus_thread"></div>
3
- <script>
4
- var disqus_config = function () {
5
- this.page.url = '{{ page.url | absolute_url }}';
6
- this.page.identifier = '{{ page.url | absolute_url }}';
7
- };
2
+ <br>
8
3
 
9
- (function() {
10
- var d = document, s = d.createElement('script');
4
+ <footer id="comments">
5
+ <div id="disqus_thread"></div>
11
6
 
12
- s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
7
+ <script>
8
+ var disqus_config = function () {
9
+ this.page.url = '{{ page.url | absolute_url }}';
10
+ this.page.identifier = '{{ page.url | absolute_url }}';
11
+ };
13
12
 
14
- s.setAttribute('data-timestamp', +new Date());
15
- (d.head || d.body).appendChild(s);
16
- })();
17
- </script>
13
+ (function() {
14
+ var d = document, s = d.createElement('script');
18
15
 
19
- <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
16
+ s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
17
+
18
+ s.setAttribute('data-timestamp', +new Date());
19
+ (d.head || d.body).appendChild(s);
20
+ })();
21
+ </script>
22
+
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>
20
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 %}
@@ -11,7 +11,7 @@
11
11
  <meta name="viewport" content="width=device-width, initial-scale=1">
12
12
 
13
13
  <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
14
- <link rel="icon" href="/favicon.ico">
14
+ <link rel="icon" href="/favicon.svg">
15
15
 
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">
@@ -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
 
@@ -7,4 +7,3 @@ layout: default
7
7
  </main>
8
8
 
9
9
  {%- include sidebar.html -%}
10
-
@@ -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,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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ramonsantos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-11 00:00:00.000000000 Z
11
+ date: 2020-10-03 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
@@ -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