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 +4 -4
- data/CHANGELOG.md +6 -0
- data/_includes/utils/comments.html +8 -1
- data/insights4you-jekyll-theme.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c817c97a0d765aface4941b9e4815ff84613b6a6e8c133c24f43c0395b5eaefe
|
|
4
|
+
data.tar.gz: 13b25bc5e92904dab36c7d104d2203f9b9e41859b86b40ba405b49b71ae139e9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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.
|
|
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"]
|