jekyll-dash 1.0.3 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8ec4da2829c58bb0a59f72965ae0ba179f88d05c2f3e83aa84b5e2b601a40f47
4
- data.tar.gz: 9a6f7b95ef41188f952300a2c6848445cc2992c4f522d7b39c675cb140b52a6e
3
+ metadata.gz: 44dc8750ef6cb7fde0700145a2bfdff10b660ace6d36a9a25b407e1b6c766320
4
+ data.tar.gz: 1a8896e049bd22a068ffcba6be786620d1abeba8636d0c98c152f250655a8155
5
5
  SHA512:
6
- metadata.gz: b779055a02829df098b863b357b7aa4eb21af5d5537478fe9a20a2bd038d293be00e923b343c08a74e727a46db04a5c819709b0b46e7cd8f7f22446660689ce0
7
- data.tar.gz: 2647ffe7168c743e0d147e80505a15a723ee8bf4e3a6814ca5ef265761ef40a13efa488c25a36897d3d920865dd33490c60d95c15768a5785175caaf1acbe3b5
6
+ metadata.gz: 3e41763dcbe0f362af5ccce1f32f14eb7d652e23807cdbf1995c4bb0586c13fd4a77a6139cc02795732ef3b13a7a5b26f203bdd5e70a57feeaa3aa3d6ce4ebf1
7
+ data.tar.gz: 8a31adb86982cd218012a03ee0c6abb0138efe14def4fe82f278060267b7b9d9e43fffc3fa367fb3f39e433a21a1be57bf159cb8274e639a42a36c8925ce7799
@@ -1,4 +1,6 @@
1
1
  <div class="author-box">
2
+ {% if site.plugins contains "liquid-md5" %}
2
3
  <img src="https://gravatar.com/avatar/{{ site.email | downcase | md5 }}?s=72" class="author-avatar" />
4
+ {% endif %}
3
5
  {{ site.description }}
4
6
  </div>
@@ -0,0 +1,7 @@
1
+
2
+ {% if site.plugins contains "jekyll/tagging" %}
3
+ <h2>All tags</h2>
4
+ <div class="tag-cloud">
5
+ {{ site | tag_cloud }}
6
+ </div>
7
+ {% endif %}
data/_layouts/home.html CHANGED
@@ -11,11 +11,13 @@ layout: default
11
11
  <a href="{{ post.url | relative_url }}" class="post-link">{{ post.title }}</a>
12
12
  <div class="post-meta">
13
13
 
14
+ {% if site.plugins contains "jekyll/tagging" %}
14
15
  <div class="post-tags">
15
16
  {% for tag in post.tags %}
16
17
  <a class="tag" href="/tag/{{ tag }}/">{{ tag }}</a>
17
18
  {% endfor %}
18
19
  </div>
20
+ {% endif %}
19
21
  {% if site.date_format %}
20
22
  {{ post.date | date: site.date_format }}
21
23
  {% else %}
@@ -27,6 +29,8 @@ layout: default
27
29
  </div>
28
30
 
29
31
  {% include pagination.html %}
32
+
33
+ {% include tagcloud.html %}
30
34
  {% else %}
31
35
  <div>No posts yet.</div>
32
36
  {% endif %}
data/_layouts/post.html CHANGED
@@ -4,11 +4,13 @@ layout: default
4
4
  {% include author.html %}
5
5
  <div class="post">
6
6
  <h1 class="post-title">{{ page.title }}</h1>
7
+ {% if site.plugins contains "jekyll/tagging" %}
7
8
  <div class="post-tags">
8
9
  {% for tag in page.tags %}
9
10
  <a class="tag" href="/tag/{{ tag }}/">{{ tag }}</a>
10
11
  {% endfor %}
11
12
  </div>
13
+ {% endif %}
12
14
  <div class="post-date">Published on {{ page.date | date_to_string }}</div>
13
15
  {% if page.description != null %}
14
16
  <div class="post-description"><span class="color-blue">> </span>{{ page.description }}</div>
@@ -1,33 +1,34 @@
1
- ---
2
- layout: default
3
- ---
4
- {% include author.html %}
5
- <h1 class="post-title">Articles tagged with <a class="tag" href="/tag/{{ tag }}/">{{ page.tag }}</a></h1>
6
- <div class="post-links">
7
- {% for post in site.posts %}
8
- {% for tag in post.tags %}
9
- {% if tag == page.tag %}
10
-
11
-
12
- <div class="post-link-wrapper">
13
- <a href="{{ post.url | relative_url }}" class="post-link">{{ post.title }}</a>
14
- <div class="post-meta">
15
-
16
- <div class="post-tags">
17
- {% for tag in post.tags %}
18
- <a class="tag" href="/tag/{{ tag }}/">{{ tag }}</a>
19
- {% endfor %}
20
- </div>
21
- {% if site.date_format %}
22
- {{ post.date | date: site.date_format }}
23
- {% else %}
24
- {{ post.date | date: "%b %-d, %Y" }}
25
- {% endif %}
26
- </div>
27
-
28
- </div>
29
- {% endif %}
30
- {% endfor %}
31
- {% endfor %}
32
-
33
- </div>
1
+ ---
2
+ layout: default
3
+ ---
4
+ {% include author.html %}
5
+ <h1 class="post-title">Articles tagged with <a class="tag" href="/tag/{{ page.tag }}/">{{ page.tag }}</a></h1>
6
+ <div class="post-links">
7
+ {% for post in site.posts %}
8
+ {% for tag in post.tags %}
9
+ {% if tag == page.tag %}
10
+
11
+
12
+ <div class="post-link-wrapper">
13
+ <a href="{{ post.url | relative_url }}" class="post-link">{{ post.title }}</a>
14
+ <div class="post-meta">
15
+
16
+ <div class="post-tags">
17
+ {% for tag in post.tags %}
18
+ <a class="tag" href="/tag/{{ tag }}/">{{ tag }}</a>
19
+ {% endfor %}
20
+ </div>
21
+ {% if site.date_format %}
22
+ {{ post.date | date: site.date_format }}
23
+ {% else %}
24
+ {{ post.date | date: "%b %-d, %Y" }}
25
+ {% endif %}
26
+ </div>
27
+
28
+ </div>
29
+ {% endif %}
30
+ {% endfor %}
31
+ {% endfor %}
32
+
33
+ </div>
34
+ {% include tagcloud.html %}
@@ -1,175 +1,183 @@
1
- .site-header {
2
- min-height: $spacing-unit * 1.865;
3
- line-height: $base-line-height * $base-font-size * 2.25;
4
-
5
- // Positioning context for the mobile navigation icon
6
- position: relative;
7
-
8
- .blinking_cursor {
9
- animation: blinker 1s none infinite;
10
- font-size: $base-font-size;
11
- }
12
-
13
- .command_prompt {
14
- color: $color-blue;
15
- font-size: $base-font-size;
16
- }
17
- }
18
-
19
- .site-title {
20
- @include relative-font-size(1.625);
21
- font-weight: 300;
22
- margin-bottom: 0;
23
- float: left;
24
-
25
- @include media-query($on-palm) {
26
- padding-right: 45px;
27
- }
28
-
29
- &,
30
- &:visited,
31
- &:hover {
32
- color: $color-foreground;
33
- text-decoration: none;
34
- }
35
- }
36
-
37
- .wrapper {
38
- text-align: justify;
39
- }
40
-
41
- /**
42
- * Author box
43
- */
44
-
45
- .author-box {
46
- margin-bottom: 1em;
47
- text-align: left;
48
- min-height: 72px;
49
- font-style: italic;
50
- & > .author-avatar {
51
- float: left;
52
- white-space: pre-line;
53
- margin-right: 1em;
54
- width: 72px;
55
- height: 72px;
56
- border-radius: 0.3em;
57
- }
58
- }
59
-
60
- .site-header {
61
- margin-bottom: 1em;
62
- }
63
-
64
-
65
- .post-title {
66
- color: $color-foreground;
67
- text-align: left;
68
- }
69
-
70
- .post-description {
71
- margin-top: 1em;
72
- color: $color-pink;
73
- font-style: italic;
74
- }
75
-
76
- .post {
77
- .post-date {
78
- margin-top: 1em;
79
- color: $color-foreground-dark;
80
- font-size: 12px;
81
- margin-top: 1em;
82
- margin-left: 0.5em;
83
- }
84
-
85
- img {
86
- border-radius: 0.3em;
87
- width: 100%;
88
- }
89
- }
90
-
91
- .post-link-wrapper {
92
- margin-bottom: 1.5em;
93
- & > .post-link {
94
- font-size: $base-font-size;
95
- font-size: $post-link-font-size;
96
- }
97
-
98
- & > .post-meta {
99
- color: $color-foreground-dark;
100
- font-size: $small-font-size;
101
- }
102
- }
103
-
104
- .tag {
105
- color: $color-green;
106
- background-color: $color-background-dark;
107
- padding: 0.3em 0.6em;
108
- border-radius: 0.3em;
109
- &:hover {
110
- text-decoration: none;
111
- color: lighten($color-green, 20%);
112
- background-color: lighten($color-background-dark, 5%);
113
- }
114
- }
115
-
116
- .post-tags {
117
- margin-top: 0.3em;
118
- margin-bottom: 0.5em;
119
- }
120
-
121
- .credits {
122
- font-size: 10px;
123
- color: lighten($color-background-dark, 5%);
124
-
125
- & > a {
126
- color: lighten($color-background-dark, 10%);
127
- text-decoration: underline;
128
- }
129
- }
130
-
131
- .pagination {
132
- font-size: $post-link-font-size;
133
- margin: 2em 0;
134
- & > a, & > span {
135
- font-weight: normal;
136
- display: inline-block;
137
- min-width: 1em;
138
-
139
- padding: 0.3em 0.6em;
140
- border-radius: 0.3em;
141
- text-align: center;
142
-
143
- &:hover {
144
- text-decoration: none;
145
- }
146
- }
147
-
148
- & > a {
149
- color: $color-green;
150
- background-color: $color-background-dark;
151
- &:hover {
152
- color: lighten($color-green, 20%);
153
- background-color: lighten($color-background-dark, 5%);
154
- }
155
- }
156
-
157
- & > span {
158
- color: darken($color-foreground, 20%);
159
- background-color: darken($color-background-dark, 3%);
160
- }
161
- }
162
-
163
- .social_links {
164
- float: right;
165
- & > a {
166
- color: darken($color-foreground, 20%);
167
- display: inline-block;
168
- margin-left: 0.2em;
169
- font-size: $post-link-font-size * 1.25;
170
- }
171
- }
172
-
173
- blockquote {
174
- color: $color-orange;
175
- }
1
+ .site-header {
2
+ min-height: $spacing-unit * 1.865;
3
+ line-height: $base-line-height * $base-font-size * 2.25;
4
+
5
+ // Positioning context for the mobile navigation icon
6
+ position: relative;
7
+
8
+ .blinking_cursor {
9
+ animation: blinker 1s none infinite;
10
+ font-size: $base-font-size;
11
+ }
12
+
13
+ .command_prompt {
14
+ color: $color-blue;
15
+ font-size: $base-font-size;
16
+ }
17
+ }
18
+
19
+ .site-title {
20
+ @include relative-font-size(1.625);
21
+ font-weight: 300;
22
+ margin-bottom: 0;
23
+ float: left;
24
+
25
+ @include media-query($on-palm) {
26
+ padding-right: 45px;
27
+ }
28
+
29
+ &,
30
+ &:visited,
31
+ &:hover {
32
+ color: $color-foreground;
33
+ text-decoration: none;
34
+ }
35
+ }
36
+
37
+ .wrapper {
38
+ text-align: justify;
39
+ }
40
+
41
+ /**
42
+ * Author box
43
+ */
44
+
45
+ .author-box {
46
+ margin-bottom: 1em;
47
+ text-align: left;
48
+ min-height: 72px;
49
+ font-style: italic;
50
+ & > .author-avatar {
51
+ float: left;
52
+ white-space: pre-line;
53
+ margin-right: 1em;
54
+ width: 72px;
55
+ height: 72px;
56
+ border-radius: 0.3em;
57
+ }
58
+ }
59
+
60
+ .site-header {
61
+ margin-bottom: 1em;
62
+ }
63
+
64
+
65
+ .post-title {
66
+ color: $color-foreground;
67
+ text-align: left;
68
+ }
69
+
70
+ .post-description {
71
+ margin-top: 1em;
72
+ color: $color-pink;
73
+ font-style: italic;
74
+ }
75
+
76
+ .post {
77
+ .post-date {
78
+ margin-top: 1em;
79
+ color: $color-foreground-dark;
80
+ font-size: 12px;
81
+ margin-top: 1em;
82
+ margin-left: 0.5em;
83
+ }
84
+
85
+ img {
86
+ border-radius: 0.3em;
87
+ width: 100%;
88
+ }
89
+ }
90
+
91
+ .post-link-wrapper {
92
+ margin-bottom: 1.5em;
93
+ & > .post-link {
94
+ font-size: $base-font-size;
95
+ font-size: $post-link-font-size;
96
+ }
97
+
98
+ & > .post-meta {
99
+ color: $color-foreground-dark;
100
+ font-size: $small-font-size;
101
+ }
102
+ }
103
+
104
+ .tag-cloud {
105
+ margin-bottom: 2em;
106
+ & > a {
107
+ display: inline-block;
108
+ margin-bottom: 1em;
109
+ }
110
+ }
111
+
112
+ .tag, .tag-cloud > a {
113
+ color: $color-green;
114
+ background-color: $color-background-dark;
115
+ padding: 0.3em 0.6em;
116
+ border-radius: 0.3em;
117
+ &:hover {
118
+ text-decoration: none;
119
+ color: lighten($color-green, 20%);
120
+ background-color: lighten($color-background-dark, 5%);
121
+ }
122
+ }
123
+
124
+ .post-tags {
125
+ margin-top: 0.3em;
126
+ margin-bottom: 0.5em;
127
+ }
128
+
129
+ .credits {
130
+ font-size: 10px;
131
+ color: lighten($color-background-dark, 5%);
132
+
133
+ & > a {
134
+ color: lighten($color-background-dark, 10%);
135
+ text-decoration: underline;
136
+ }
137
+ }
138
+
139
+ .pagination {
140
+ font-size: $post-link-font-size;
141
+ margin: 2em 0;
142
+ & > a, & > span {
143
+ font-weight: normal;
144
+ display: inline-block;
145
+ min-width: 1em;
146
+
147
+ padding: 0.3em 0.6em;
148
+ border-radius: 0.3em;
149
+ text-align: center;
150
+
151
+ &:hover {
152
+ text-decoration: none;
153
+ }
154
+ }
155
+
156
+ & > a {
157
+ color: $color-green;
158
+ background-color: $color-background-dark;
159
+ &:hover {
160
+ color: lighten($color-green, 20%);
161
+ background-color: lighten($color-background-dark, 5%);
162
+ }
163
+ }
164
+
165
+ & > span {
166
+ color: darken($color-foreground, 20%);
167
+ background-color: darken($color-background-dark, 3%);
168
+ }
169
+ }
170
+
171
+ .social_links {
172
+ float: right;
173
+ & > a {
174
+ color: darken($color-foreground, 20%);
175
+ display: inline-block;
176
+ margin-left: 0.2em;
177
+ font-size: $post-link-font-size * 1.25;
178
+ }
179
+ }
180
+
181
+ blockquote {
182
+ color: $color-orange;
183
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-dash
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Gonzalez Sanchez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-04 00:00:00.000000000 Z
11
+ date: 2019-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -66,20 +66,6 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: liquid-md5
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 0.0.3
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 0.0.3
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: bundler
85
71
  requirement: !ruby/object:Gem::Requirement
@@ -124,12 +110,12 @@ files:
124
110
  - _includes/head.html
125
111
  - _includes/header.html
126
112
  - _includes/pagination.html
113
+ - _includes/tagcloud.html
127
114
  - _layouts/default.html
128
115
  - _layouts/home.html
129
116
  - _layouts/page.html
130
117
  - _layouts/post.html
131
- - _layouts/tag_index.html
132
- - _plugins/_tag_gen.rb
118
+ - _layouts/tag_page.html
133
119
  - _sass/dash.scss
134
120
  - _sass/dash/_animations.scss
135
121
  - _sass/dash/_base.scss
data/_plugins/_tag_gen.rb DELETED
@@ -1,33 +0,0 @@
1
- module Jekyll
2
- class TagIndex < Page
3
- def initialize(site, base, dir, tag)
4
- @site = site
5
- @base = base
6
- @dir = dir
7
- @name = 'index.html'
8
- self.process(@name)
9
- self.read_yaml(File.join(base, '_layouts'), 'tag_index.html')
10
- self.data['tag'] = tag
11
- tag_title_prefix = site.config['tag_title_prefix'] || 'Posts Tagged &ldquo;'
12
- tag_title_suffix = site.config['tag_title_suffix'] || '&rdquo;'
13
- self.data['title'] = "#{tag_title_prefix}#{tag}#{tag_title_suffix}"
14
- end
15
- end
16
- class TagGenerator < Generator
17
- safe true
18
- def generate(site)
19
- if site.layouts.key? 'tag_index'
20
- dir = site.config['tag_dir'] || 'tag'
21
- site.tags.keys.each do |tag|
22
- write_tag_index(site, File.join(dir, tag), tag)
23
- end
24
- end
25
- end
26
- def write_tag_index(site, dir, tag)
27
- index = TagIndex.new(site, site.source, dir, tag)
28
- index.render(site.layouts, site.site_payload)
29
- index.write(site.dest)
30
- site.pages << index
31
- end
32
- end
33
- end