jekyll-theme-ascii 0.2.3 → 0.3.0

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: 9e741149b35fbfb914c078b9a28ebc728b475412628885220ce95e9bdd0bde83
4
- data.tar.gz: d61846b6f5bf45ef1059e65d7a8e0f197949d172e939107ce77d1ee72fb71917
3
+ metadata.gz: 7b9893cc503e525b3bf7667603d3b85acaa8c021c5d05cc547fde815c0048814
4
+ data.tar.gz: 282fa6a7aa70b471d1a6e5130402fb176d47f3301d304a9c5a1021fc0aba8203
5
5
  SHA512:
6
- metadata.gz: d08c35b69967797172fdcc1a9e9a6bb5e1addccccfa7051354a75cfafaf328d894992c5aa3eaa4f422c4d1b84304d055dc16f09a2e7ebbb38cda791b4d0769a4
7
- data.tar.gz: c459bab04ee8299b60e0bfc5a52e7d452afe5c8bf0c6be43f831fb8af5c2dd7da51851d5c4f96f4c622e2c45de582f01e3a968a21a16a01421883e1c7d0f84d4
6
+ metadata.gz: 74aef6694539f7181927fcd2e0c78ac2844a6f65dabc7f9a3e729f41ff249be1ac3f93eea938f53b90ad74f9c24f5d0ad64127242b4e63fad1e8794ed1210030
7
+ data.tar.gz: ee416c68d8e168f87204d92370427b8c89d178d407a02f2b5aeaac6dc3a3d756cf57cf1b7f51c8ba18fab1936023fa07ce0233c94f34387711756a7d06f16bec
data/_config.yml CHANGED
@@ -1,20 +1,14 @@
1
- title: Your awesome title
1
+ title: Jekyll theme ASCII
2
2
  author:
3
- name: GitHub User
4
- email: your-email@domain.com
5
- description: >
6
- Write an awesome description for your new site here. You can edit this
7
- line in _config.yml. It will appear in your document head meta (for
8
- Google search results) and in your feed.xml site description.
9
-
10
- show_excerpts: false
11
-
12
- external_theme: antoniovazquezblanco/jekyll-theme-ascii
3
+ name: Antonio Vázquez Blanco
4
+ description: This is a simple Jekyll theme that relies mostly on ASCII characters. And maybe emojis :).
13
5
 
14
6
  plugins:
15
7
  - jekyll-feed
16
8
  - jekyll-seo-tag
17
9
 
18
- header_pages:
19
- - index.md
20
- - about.md
10
+ exclude:
11
+ - LICENSE.txt
12
+ - README.md
13
+ - '*.gemspec'
14
+ - '*.gem'
@@ -1,3 +1,4 @@
1
+ {%- if jekyll.environment == 'production' and site.google_analytics -%}
1
2
  <script async src="https://www.googletagmanager.com/gtag/js?id={{ site.google_analytics }}"></script>
2
3
  <script>
3
4
  window['ga-disable-{{ site.google_analytics }}'] = window.doNotTrack === "1" || navigator.doNotTrack === "1" || navigator.doNotTrack === "yes" || navigator.msDoNotTrack === "1";
@@ -6,4 +7,5 @@
6
7
  gtag('js', new Date());
7
8
 
8
9
  gtag('config', '{{ site.google_analytics }}');
9
- </script>
10
+ </script>
11
+ {%- endif -%}
@@ -1,3 +1,4 @@
1
+ {%- if site.disqus.shortname -%}
1
2
  {%- if page.comments != false and jekyll.environment == "production" -%}
2
3
  <div id="disqus_thread"></div>
3
4
  <script>
@@ -12,6 +13,6 @@
12
13
  (d.head || d.body).appendChild(s);
13
14
  })();
14
15
  </script>
15
- <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments
16
- powered by Disqus.</a></noscript>
16
+ <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
17
+ {%- endif -%}
17
18
  {%- endif -%}
@@ -1,3 +1,5 @@
1
+ {%- if page.mastodon_comments.toot_id -%}
2
+ {%- if page.mastodon_comments.host or site.mastodon_comments.host -%}
1
3
  {%- assign mastodon_host = page.mastodon_comments.host | default: site.mastodon_comments.host -%}
2
4
  <div style="border-top: dashed 1px rgba(219, 219, 219, 0.9)">
3
5
  <h2>Comments in Mastodon</h2>
@@ -7,4 +9,6 @@
7
9
  <script src="/assets/js/mastodon_comments.js"></script>
8
10
  <script>
9
11
  window.onload = mastodon_comments_load('{{ mastodon_host }}', '{{ page.mastodon_comments.toot_id }}', 'mastodon_comments_list')
10
- </script>
12
+ </script>
13
+ {%- endif -%}
14
+ {%- endif -%}
data/_includes/head.html CHANGED
@@ -3,10 +3,8 @@
3
3
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
5
5
  {%- seo -%}
6
- <link rel="stylesheet" href="{{ "/assets/css/style.css" | relative_url }}">
6
+ <link rel="stylesheet" href="{{ '/assets/css/style.css' | relative_url }}">
7
7
  {%- feed_meta -%}
8
- {%- if jekyll.environment == 'production' and site.google_analytics -%}
9
- {%- include google-analytics.html -%}
10
- {%- endif -%}
8
+ {%- include analytics/google.html -%}
11
9
  {%- include custom-head.html -%}
12
10
  </head>
@@ -1,14 +1,10 @@
1
+ {%- assign nav_pages = site.pages | where_exp: 'item', 'item.nav_exclude != true' | sort: 'nav_order' -%}
1
2
  <header>
2
- {%- assign default_paths = site.pages | map: "path" | sort -%}
3
- {%- assign page_paths = site.header_pages | default: default_paths -%}
4
3
  <div class="menu">
5
4
  <ul>
6
5
  <li class="site-title"><a href="/">{{ site.title | escape }}</a></li>
7
- {%- for path in page_paths -%}
8
- {%- assign my_page = site.pages | where: "path", path | first -%}
9
- {%- if my_page.title -%}
10
- <li><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
11
- {%- endif -%}
6
+ {%- for entry in nav_pages -%}
7
+ <li><a href="{{ entry.url | relative_url }}">{{ entry.title | escape }}</a></li>
12
8
  {%- endfor -%}
13
9
  </ul>
14
10
  </div>
data/_layouts/post.html CHANGED
@@ -8,12 +8,5 @@ layout: default
8
8
 
9
9
  {{ content }}
10
10
 
11
- {%- if page.mastodon_comments.toot_id -%}
12
- {%- if page.mastodon_comments.host or site.mastodon_comments.host -%}
13
- {%- include mastodon_comments.html -%}
14
- {%- endif -%}
15
- {%- endif -%}
16
-
17
- {%- if site.disqus.shortname -%}
18
- {%- include disqus.html -%}
19
- {%- endif -%}
11
+ {%- include comments/mastodon.html -%}
12
+ {%- include comments/disqus.html -%}
@@ -1,5 +1,5 @@
1
1
  ---
2
- # This file need the front matter
2
+ # This file needs the front matter
3
3
  # The three dashes are enough...
4
4
  ---
5
5
  @import
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-ascii
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antonio Vázquez Blanco
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-08 00:00:00.000000000 Z
11
+ date: 2023-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -90,13 +90,13 @@ files:
90
90
  - LICENSE.txt
91
91
  - README.md
92
92
  - _config.yml
93
+ - _includes/analytics/google.html
94
+ - _includes/comments/disqus.html
95
+ - _includes/comments/mastodon.html
93
96
  - _includes/custom-head.html
94
- - _includes/disqus.html
95
97
  - _includes/footer.html
96
- - _includes/google-analytics.html
97
98
  - _includes/head.html
98
99
  - _includes/header.html
99
- - _includes/mastodon_comments.html
100
100
  - _layouts/default.html
101
101
  - _layouts/home.html
102
102
  - _layouts/page.html