insights4you-jekyll-theme 0.5.0 → 0.5.1

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: 4409020af0e3cbe25b0aa6f1563daa55e07a1d96150e85518897ddff5c621d05
4
- data.tar.gz: 99f9c2b937854c1d8425a671f373f1c683dfca6461a771a7393d4bac9c2a93a1
3
+ metadata.gz: c817c97a0d765aface4941b9e4815ff84613b6a6e8c133c24f43c0395b5eaefe
4
+ data.tar.gz: 13b25bc5e92904dab36c7d104d2203f9b9e41859b86b40ba405b49b71ae139e9
5
5
  SHA512:
6
- metadata.gz: e0041ca8bcace71229e8db0e7dd8d4a9ec9df4c30298597e9baf29d77dbaeb4daa6b473c77ed51a13af62294c1c7d808e2e228865d349a21d91c1d060b54cadd
7
- data.tar.gz: a84cca38a95e45848a6acee9c48c4ac129280f7275d1df3c99a6954f78e620d79d8d386901de67ba13cbca2fddeda570d1579e9822fa4c67b4a2fe181ee616e8
6
+ metadata.gz: 9a2548b7ff174ab532882090954a69b767974b111249e658db55403fd403971871f2541780b4d560f77dad269ff44b8f43d57f17e433b203ae4099badad524b1
7
+ data.tar.gz: cddf1f5c5ce17e179e492a1f3c4a052a8ee2876a153cac4055a50aed501900bdd3f568f8ea71659130cafbabed5a75f73c8a1cba3518accfdcd67753ee411e16
data/CHANGELOG.md CHANGED
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.5.1]
9
+
10
+ ### Fixed
11
+ - Giscus comments never rendered on sites whose `lang`/`giscus.lang` used a regional IETF tag (e.g. `pt-BR`) instead of a bare language code: giscus.app 404s on `/pt-BR/widget` (only `/pt/widget` exists), and the resulting error page's own CSP blocks the browser from ever showing it inside the iframe - so the whole widget silently disappeared. Found by actually testing Giscus end-to-end after enabling it on a real site. Added `site.giscus.lang` so a site can pin the exact code giscus expects, independent of its real `lang`.
12
+
8
13
  ## [0.5.0]
9
14
 
10
15
  ### Added
@@ -129,6 +134,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
129
134
  - **N/A**: No files or features were removed in this release.
130
135
 
131
136
 
137
+ [0.5.1]: https://github.com/marciopaiva/insights4you-jekyll-theme/compare/v0.5.0...v0.5.1
132
138
  [0.5.0]: https://github.com/marciopaiva/insights4you-jekyll-theme/compare/v0.4.0...v0.5.0
133
139
  [0.4.0]: https://github.com/marciopaiva/insights4you-jekyll-theme/compare/v0.3.0...v0.4.0
134
140
  [0.3.0]: https://github.com/marciopaiva/insights4you-jekyll-theme/compare/v0.2.3...v0.3.0
@@ -11,7 +11,14 @@
11
11
  data-emit-metadata="0"
12
12
  data-input-position="bottom"
13
13
  data-theme="{% if page.layout-dark or site.layout-dark %}dark{% else %}light{% endif %}"
14
- data-lang="{{ page.lang | default: site.lang | default: 'en' }}"
14
+ {%- comment -%}
15
+ giscus.app only supports a specific, short list of locale codes
16
+ (e.g. "pt", not "pt-BR") - it 404s on anything else. site.lang/
17
+ page.lang are meant for the HTML lang attribute and can be a full
18
+ IETF tag, so let a site pin the exact code giscus expects via
19
+ site.giscus.lang instead of assuming it matches.
20
+ {%- endcomment -%}
21
+ data-lang="{{ site.giscus.lang | default: page.lang | default: site.lang | default: 'en' }}"
15
22
  crossorigin="anonymous"
16
23
  async>
17
24
  </script>
@@ -5,7 +5,7 @@ require 'date'
5
5
  Gem::Specification.new do |spec|
6
6
  # Basic Information
7
7
  spec.name = "insights4you-jekyll-theme"
8
- spec.version = "0.5.0"
8
+ spec.version = "0.5.1"
9
9
  spec.platform = Gem::Platform::RUBY
10
10
  spec.date = Time.now.strftime('%Y-%m-%d')
11
11
  spec.authors = ["Marcio Paiva Barbosa"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: insights4you-jekyll-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcio Paiva Barbosa