shine-on-you-crazy-diamond-theme 0.5.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/_includes/article.html +9 -33
- data/_includes/article_header.html +38 -0
- data/_includes/disqus_comments.html +21 -17
- data/_includes/head.html +4 -1
- data/_layouts/archive.html +8 -30
- data/_layouts/blog.html +8 -30
- data/_layouts/home.html +9 -31
- data/_sass/_content.scss +9 -1
- data/_sass/_monokai.scss +72 -0
- data/_sass/_post.scss +11 -9
- data/assets/main.scss +1 -0
- metadata +9 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71f26742c1e103afbaeb0726c06564d6564213a30ed1143707c0a894469b0c46
|
4
|
+
data.tar.gz: 6a5d8d9f14ccff3ca647ce924d3a0c84aa4b54e267f5e7cfe45472ddaff53026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cda523d6edb1c9d02ead4d8a54d62c8d7ce58ec7e712ceca1e2a7129a2252881dbcf4c2636fb7368248e9c282acab21facd3c0583c031e01b0f0261e34b9c39
|
7
|
+
data.tar.gz: 626e5bcdcc48fac13c5e09aaf19eb4a387d1cd83b056441cf6f6a2752ff03997bec054ad3927ede91efdc3b3f89779b7bc4dd0d737497fcdb947d83074699b17
|
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
|
|
data/_includes/article.html
CHANGED
@@ -1,42 +1,18 @@
|
|
1
1
|
<article>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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
|
-
|
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
|
-
<
|
2
|
+
<br>
|
3
3
|
|
4
|
-
<
|
5
|
-
|
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
|
-
|
11
|
-
var
|
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
|
-
|
13
|
+
(function() {
|
14
|
+
var d = document, s = d.createElement('script');
|
14
15
|
|
15
|
-
|
16
|
-
(d.head || d.body).appendChild(s);
|
17
|
-
})();
|
18
|
-
</script>
|
16
|
+
s.src = 'https://{{ site.disqus.shortname }}.disqus.com/embed.js';
|
19
17
|
|
20
|
-
|
18
|
+
s.setAttribute('data-timestamp', +new Date());
|
19
|
+
(d.head || d.body).appendChild(s);
|
20
|
+
})();
|
21
|
+
</script>
|
21
22
|
|
22
|
-
|
23
|
-
|
24
|
-
|
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 -%}
|
data/_includes/head.html
CHANGED
@@ -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,7 @@
|
|
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
|
+
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/highlight.min.js"></script>
|
20
|
+
<script>hljs.initHighlightingOnLoad();</script>
|
21
|
+
|
19
22
|
{% seo title=false %}
|
data/_layouts/archive.html
CHANGED
@@ -6,36 +6,14 @@ layout: default
|
|
6
6
|
{%- if page.posts.size > 0 -%}
|
7
7
|
{%- for post in page.posts -%}
|
8
8
|
<article>
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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">
|
data/_layouts/blog.html
CHANGED
@@ -6,36 +6,14 @@ layout: default
|
|
6
6
|
{%- if site.posts.size > 0 -%}
|
7
7
|
{%- for post in site.posts -%}
|
8
8
|
<article>
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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">
|
data/_layouts/home.html
CHANGED
@@ -7,36 +7,14 @@ pagination:
|
|
7
7
|
<main class="main-section">
|
8
8
|
{% for post in paginator.posts %}
|
9
9
|
<article>
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
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
|
38
|
+
<a class="page-number" href="{{ trail.path }}">{{ trail.num }}</a>
|
61
39
|
{% endif %}
|
62
40
|
{% endfor %}
|
63
41
|
|
data/_sass/_content.scss
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
}
|
28
28
|
|
29
29
|
ul {
|
30
|
-
display: inline
|
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;
|
data/_sass/_monokai.scss
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
/*
|
2
|
+
Monokai style - ported by Luigi Maselli - http://grigio.org
|
3
|
+
*/
|
4
|
+
|
5
|
+
.hljs {
|
6
|
+
display: block;
|
7
|
+
overflow-x: auto;
|
8
|
+
padding: 0.5em;
|
9
|
+
background: #272822;
|
10
|
+
color: #ddd;
|
11
|
+
padding-bottom: 24px;
|
12
|
+
}
|
13
|
+
|
14
|
+
.hljs-tag,
|
15
|
+
.hljs-keyword,
|
16
|
+
.hljs-selector-tag,
|
17
|
+
.hljs-literal,
|
18
|
+
.hljs-strong,
|
19
|
+
.hljs-name {
|
20
|
+
color: #f92672;
|
21
|
+
}
|
22
|
+
|
23
|
+
.hljs-code {
|
24
|
+
color: #66d9ef;
|
25
|
+
}
|
26
|
+
|
27
|
+
.hljs-class .hljs-title {
|
28
|
+
color: white;
|
29
|
+
}
|
30
|
+
|
31
|
+
.hljs-attribute,
|
32
|
+
.hljs-symbol,
|
33
|
+
.hljs-regexp,
|
34
|
+
.hljs-link {
|
35
|
+
color: #bf79db;
|
36
|
+
}
|
37
|
+
|
38
|
+
.hljs-string,
|
39
|
+
.hljs-bullet,
|
40
|
+
.hljs-subst,
|
41
|
+
.hljs-title,
|
42
|
+
.hljs-section,
|
43
|
+
.hljs-emphasis,
|
44
|
+
.hljs-type,
|
45
|
+
.hljs-built_in,
|
46
|
+
.hljs-builtin-name,
|
47
|
+
.hljs-selector-attr,
|
48
|
+
.hljs-selector-pseudo,
|
49
|
+
.hljs-addition,
|
50
|
+
.hljs-variable,
|
51
|
+
.hljs-template-tag,
|
52
|
+
.hljs-template-variable {
|
53
|
+
color: #a6e22e;
|
54
|
+
}
|
55
|
+
|
56
|
+
.hljs-comment,
|
57
|
+
.hljs-quote,
|
58
|
+
.hljs-deletion,
|
59
|
+
.hljs-meta {
|
60
|
+
color: #75715e;
|
61
|
+
}
|
62
|
+
|
63
|
+
.hljs-keyword,
|
64
|
+
.hljs-selector-tag,
|
65
|
+
.hljs-literal,
|
66
|
+
.hljs-doctag,
|
67
|
+
.hljs-title,
|
68
|
+
.hljs-section,
|
69
|
+
.hljs-type,
|
70
|
+
.hljs-selector-id {
|
71
|
+
font-weight: bold;
|
72
|
+
}
|
data/_sass/_post.scss
CHANGED
@@ -30,15 +30,6 @@
|
|
30
30
|
}
|
31
31
|
}
|
32
32
|
|
33
|
-
.terminal {
|
34
|
-
background-color: #222222;
|
35
|
-
border-radius: 6px;
|
36
|
-
color: #00ff00;
|
37
|
-
font-size: 1em;
|
38
|
-
margin-bottom: .8rem;
|
39
|
-
padding: 16px;
|
40
|
-
}
|
41
|
-
|
42
33
|
.img {
|
43
34
|
margin-bottom: 20px;
|
44
35
|
text-align: center;
|
@@ -47,3 +38,14 @@
|
|
47
38
|
max-width: 100%;
|
48
39
|
}
|
49
40
|
}
|
41
|
+
|
42
|
+
pre {
|
43
|
+
code {
|
44
|
+
font-size: .9rem;
|
45
|
+
margin-bottom: .8rem;
|
46
|
+
}
|
47
|
+
|
48
|
+
.terminal {
|
49
|
+
color: #00ff00;
|
50
|
+
}
|
51
|
+
}
|
data/assets/main.scss
CHANGED
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.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ramonsantos
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
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
|
@@ -151,6 +138,7 @@ files:
|
|
151
138
|
- _sass/_header.scss
|
152
139
|
- _sass/_mixin.scss
|
153
140
|
- _sass/_mobile_menu.scss
|
141
|
+
- _sass/_monokai.scss
|
154
142
|
- _sass/_post.scss
|
155
143
|
- _sass/_reset.scss
|
156
144
|
- _sass/_sidebar.scss
|
@@ -162,7 +150,7 @@ licenses:
|
|
162
150
|
- MIT
|
163
151
|
metadata:
|
164
152
|
plugin_type: theme
|
165
|
-
post_install_message:
|
153
|
+
post_install_message:
|
166
154
|
rdoc_options: []
|
167
155
|
require_paths:
|
168
156
|
- lib
|
@@ -177,8 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
177
165
|
- !ruby/object:Gem::Version
|
178
166
|
version: '0'
|
179
167
|
requirements: []
|
180
|
-
rubygems_version: 3.1.
|
181
|
-
signing_key:
|
168
|
+
rubygems_version: 3.1.4
|
169
|
+
signing_key:
|
182
170
|
specification_version: 4
|
183
171
|
summary: Theme from website https://ramonsantos.github.io/
|
184
172
|
test_files: []
|