no-style-please 0.4.0 → 0.4.6

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: 442f43ae145f3cf3f4e0b9f9e8ef851a7b82f08bd339168c0e0b98825e49f732
4
- data.tar.gz: 30e7d6afaea0f459f9942db138035c045d9eee83d44dcf029eed7250c414af67
3
+ metadata.gz: 25566ff00a95e519bc1a75d023f4ed37542a76a2e92d662aad44334abd269365
4
+ data.tar.gz: 4437b0fb4ac2c51fe3d0555777a6c10b82789670b3c7113d41e188f0e8d9ee1e
5
5
  SHA512:
6
- metadata.gz: f575b2d5608c6cc903f6d9b025130430f2bc643712614ddfd12c86bc94b0eb2d5d2cfbe73cb88dd3ff27ab81fa84a84d18779c358510bcf6d263ac1f320db9c7
7
- data.tar.gz: 8ab21365b756381780641d1621a1cb56a85058108147d6cc59e132121237187e2cfe7a8ee7d4aff582fd6dee551f6fe8779b44ba409cb04bf0ef929b70c7a19c
6
+ metadata.gz: 8c1657a7d4fcb80873de3c6244b65282db6a03a121b9e3814544414f72b6702a3040a00dbc687a173157302295840a500fa75fa39a0186f4848e760f672bc991
7
+ data.tar.gz: 658f8b6504b8982867308baf835a1a1174b11f4373a4ea6fd8049f127b11c0fc3115a4626a3c949299e0eb11bdac0ce0838bea47ca180bfd0a4d108cb657e74a
data/_config.yml CHANGED
@@ -24,4 +24,4 @@ sass:
24
24
 
25
25
  plugins:
26
26
  - jekyll-feed
27
- - jekyll-seo-tag
27
+ - jekyll-seo-tag
data/_includes/head.html CHANGED
@@ -11,8 +11,8 @@
11
11
  {%- endif -%}
12
12
  </title>
13
13
 
14
- {% seo title=false %}
15
- {% feed_meta %}
14
+ {%-seo title=false-%}
15
+ {%-feed_meta-%}
16
16
 
17
17
  <link rel="shortcut icon" type="image/x-icon" href="{{ site.favicon | relative_url }}" />
18
18
  <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}" />
@@ -1,5 +1,5 @@
1
1
  <ul>
2
- {% for item in include.collection %}
2
+ {%-for item in include.collection-%}
3
3
  <li>
4
4
  {%- if item.url -%}
5
5
  <a href="{{ item.url }}">{{ item.title }}</a>
@@ -8,7 +8,7 @@
8
8
  {%- endif -%}
9
9
  </li>
10
10
 
11
- {% if item.post_list %}
11
+ {%-if item.post_list-%}
12
12
  {%
13
13
  include post_list.html
14
14
  category=item.post_list.category
@@ -16,11 +16,11 @@
16
16
  show_more=item.post_list.show_more
17
17
  show_more_text=item.post_list.show_more_text
18
18
  show_more_url=item.post_list.show_more_url
19
- %}
20
- {% endif %}
19
+ -%}
20
+ {%-endif-%}
21
21
 
22
- {% if item.entries %}
23
- {% include menu_item.html collection=item.entries %}
24
- {% endif %}
25
- {% endfor %}
22
+ {%-if item.entries-%}
23
+ {%-include menu_item.html collection=item.entries-%}
24
+ {%-endif-%}
25
+ {%-endfor-%}
26
26
  </ul>
@@ -1,14 +1,14 @@
1
- {% if include.category %}
2
- {% assign posts = site.categories[include.category] %}
3
- {% else %}
4
- {% assign posts = site.posts %}
5
- {% endif %}
1
+ {%-if include.category-%}
2
+ {%-assign posts = site.categories[include.category]-%}
3
+ {%-else-%}
4
+ {%-assign posts = site.posts-%}
5
+ {%-endif-%}
6
6
 
7
- {% if include.limit and posts.size > include.limit %}
8
- {% assign limit_exceeded = true %}
9
- {% else %}
10
- {% assign limit_exceeded = false %}
11
- {% endif %}
7
+ {%-if include.limit and posts.size > include.limit-%}
8
+ {%-assign limit_exceeded = true-%}
9
+ {%-else-%}
10
+ {%-assign limit_exceeded = false-%}
11
+ {%-endif-%}
12
12
 
13
13
  {%- if posts.size > 0 -%}
14
14
  <ul>
@@ -2,8 +2,8 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- {% include back_link.html %}
5
+ {%-include back_link.html-%}
6
6
 
7
7
  <h1>{{ page.title }}</h1>
8
8
 
9
- {% include post_list.html category=page.which_category %}
9
+ {%-include post_list.html category=page.which_category-%}
@@ -8,8 +8,14 @@
8
8
  </div>
9
9
  </main>
10
10
 
11
- {% if site.goat_counter and jekyll.environment == "production" %}
12
- {% include goat_counter.html %}
11
+ {%-if site.goat_counter and jekyll.environment == "production"-%}
12
+ {%-include goat_counter.html-%}
13
+ {%-endif-%}
14
+
15
+ {% if page.custom_js %}
16
+ {% for js_file in page.custom_js %}
17
+ <script type="text/javascript" src="{{ site.baseurl }}/assets/js/{{ js_file }}.js"></script>
18
+ {% endfor %}
13
19
  {% endif %}
14
20
  </body>
15
21
  </html>
data/_layouts/home.html CHANGED
@@ -3,11 +3,11 @@ layout: default
3
3
  ---
4
4
  <header>
5
5
  <h1>{{ site.title }}</h1>
6
- {% if site.theme_config.show_description %}
6
+ {%-if site.theme_config.show_description-%}
7
7
  <p>{{ site.description }}</p>
8
- {% endif %}
8
+ {%-endif-%}
9
9
  </header>
10
10
 
11
- {% include menu_item.html collection=site.data.menu.entries %}
11
+ {%-include menu_item.html collection=site.data.menu.entries-%}
12
12
 
13
13
  {{ content }}
data/_layouts/page.html CHANGED
@@ -2,7 +2,7 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- {% include back_link.html %}
5
+ {%-include back_link.html-%}
6
6
 
7
7
  <h1>{{ page.title }}</h1>
8
8
 
data/_layouts/post.html CHANGED
@@ -2,7 +2,7 @@
2
2
  layout: default
3
3
  ---
4
4
 
5
- {% include back_link.html %}
5
+ {%-include back_link.html-%}
6
6
 
7
7
  <article>
8
8
  <p class="post-meta">
@@ -26,8 +26,8 @@ html { height: 100%; }
26
26
  body {
27
27
  color: black;
28
28
  font-family: monospace;
29
- font-size: 1.3rem;
30
- line-height: 1.3;
29
+ font-size: 16px;
30
+ line-height: 1.4;
31
31
  margin: 0;
32
32
  min-height: 100%;
33
33
  }
@@ -59,8 +59,9 @@ hr {
59
59
  &:after { content: attr(data-content) '/////' }
60
60
  }
61
61
 
62
+ table { width: 100%; }
63
+
62
64
  table, th, td {
63
- width: 100%;
64
65
  border: thin solid black;
65
66
  border-collapse: collapse;
66
67
  padding: 0.4rem;
@@ -74,6 +75,7 @@ code {
74
75
  div.highlighter-rouge code {
75
76
  display: block;
76
77
  overflow-x: auto;
78
+ white-space: pre-wrap;
77
79
  padding: 1rem;
78
80
  }
79
81
 
@@ -0,0 +1,9 @@
1
+ const p = document.createElement("p");
2
+ p.style.textAlign = "center";
3
+ p.style.fontSize = "18pt";
4
+ p.innerHTML = "C'mon, move your mouse!"
5
+ document.body.append(p);
6
+
7
+ document.addEventListener("mousemove", e => {
8
+ p.innerHTML = `mouseX: ${e.clientX}, mouseY: ${e.clientY}`;
9
+ });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: no-style-please
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Riccardo Graziosi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-21 00:00:00.000000000 Z
11
+ date: 2021-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.8.7
19
+ version: 3.9.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 3.8.7
26
+ version: 3.9.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: jekyll-feed
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.13.0
33
+ version: 0.15.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.13.0
40
+ version: 0.15.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jekyll-seo-tag
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 2.6.1
47
+ version: 2.7.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 2.6.1
54
+ version: 2.7.1
55
55
  description:
56
56
  email:
57
57
  - riccardo.graziosi97@gmail.com
@@ -74,6 +74,7 @@ files:
74
74
  - _layouts/post.html
75
75
  - _sass/no-style-please.scss
76
76
  - assets/css/main.scss
77
+ - assets/js/mouse_coords.js
77
78
  homepage: https://github.com/riggraz/no-style-please
78
79
  licenses:
79
80
  - MIT