appscms-tools-theme 5.7.5 → 5.7.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: f9a5c9a03d53d9e07b8133e0e17bce312236432a9c0e40d77df39cbd550749aa
4
- data.tar.gz: 52769718d50791e0831e62c55e22a9628adc043c49628d3cc083058c9e00a6c1
3
+ metadata.gz: 603f77565f7ca03d9e332a1ffc3e836edbb5e9036f7e6d10d284a5f5e404ce99
4
+ data.tar.gz: 6900bfe337176424f568bde31695c14a4787e4a2a72d21b0711915dfe25ebd3c
5
5
  SHA512:
6
- metadata.gz: 648ce0189e006d1c315d644b5ed8edb8e163705119287bd7b4db451a6f2c435f7c9bae1ce59ed45436a9e4f97c7bc5ed8ab78a17110624fc134d465aaa1a1851
7
- data.tar.gz: dfe6d1aeea0814fa3cf123c96ac68a8e0c55b4b1dd0d0d8ac4d32fb461e712bd656ee532767e07b42956e78a3b18e7cf62fb25c9f59896d196e3d2cd6b99da24
6
+ metadata.gz: d9bb51e505968e549efc5b24fac360f826d0cef8d4f3f13ab95d5135ec71c6d99c74b92eb5b03f41a60986a4d95b52499a14bdfbdb9e39dc7b614f7e10dc6043
7
+ data.tar.gz: 38fe929ab239f1035ea9488b8c268a52104e1bee32a2306ec541a379fe92f869852aca63fdc27c7e785ae5feec1f12d2dbf857c5f723eb11d03ed7e83f0282af
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "internatlionalization_whitelist_urls": [
3
- "http://localhost:4000/hi",
4
- "http://localhost:4000/ar",
5
- "http://localhost:4000/id",
6
- "http://localhost:4000/da",
7
- "http://localhost:4000/de",
8
- "http://localhost:4000/es",
9
- "http://localhost:4000/fr",
10
- "http://localhost:4000/it",
11
- "http://localhost:4000/nl",
12
- "http://localhost:4000/appscms-feature",
13
- "http://localhost:4000/hi/appscms-feature",
14
- "http://localhost:4000/ar/appscms-feature",
15
- "http://localhost:4000/id/appscms-feature",
16
- "http://localhost:4000/da/appscms-feature",
17
- "http://localhost:4000/de/appscms-feature",
18
- "http://localhost:4000/es/appscms-feature",
19
- "http://localhost:4000/fr/appscms-feature",
20
- "http://localhost:4000/it/appscms-feature",
21
- "http://localhost:4000/nl/appscms-feature"
3
+ "/hi",
4
+ "/ar",
5
+ "/id",
6
+ "/da",
7
+ "/de",
8
+ "/es",
9
+ "/fr",
10
+ "/it",
11
+ "/nl",
12
+ "/appscms-feature",
13
+ "/hi/appscms-feature",
14
+ "/ar/appscms-feature",
15
+ "/id/appscms-feature",
16
+ "/da/appscms-feature",
17
+ "/de/appscms-feature",
18
+ "/es/appscms-feature",
19
+ "/fr/appscms-feature",
20
+ "/it/appscms-feature",
21
+ "/nl/appscms-feature"
22
22
  ]
23
23
  }
data/_includes/.DS_Store CHANGED
Binary file
@@ -1,64 +1,69 @@
1
- {%- assign whitelist_urls =
2
- site.data.noindexURLs.internatlionalization_whitelist_urls -%} {%- include
3
- languages/languages.html -%} {%- if page.nointernationalization -%} {%- elsif
4
- site.internationalizationall -%} {%- for item in matchurls -%} {%- if item !=
5
- 'zh-TW' -%} {%- if item == 'en'-%} {%- if dataFile.htmlLangAtt == item -%} {%
6
- assign full_url = site.url | append: page.permalink %} {%- if whitelist_urls
7
- contains full_url -%}
1
+ {%- include languages/languages.html -%}
2
+ {%- assign whitelist_urls = site.data.noindexURLs.internatlionalization_whitelist_urls -%}
3
+ {%- if page.permalink == nil -%}
4
+ <link data-rh="true" rel="alternate" href="{{site.url}}" hreflang="en" />
5
+ {%- for i in matchurls -%} {%- for checklang in site.pages -%} {%- if
6
+ checklang.permalink == i -%} {%- assign languagetext = [i] -%}
7
+ {%- assign check_path = languagetext[0] | append: "@" | replace: "/@", "" | replace: "@", "" -%}
8
+ {%- unless check_path contains "/" -%}{%- assign check_path = check_path | prepend: "/" -%}{%- endunless -%}
9
+ {%- if whitelist_urls == nil or whitelist_urls contains check_path -%}
8
10
  <link
9
11
  data-rh="true"
10
12
  rel="alternate"
11
- class="active-lang internationalization-language-drop-down-item font-weight-bold"
12
- href="{{site.url}}/{{ page.permalink}}"
13
- hreflang="{{item}}"
13
+ href="{{site.url}}/{{languagetext[0]}}"
14
+ hreflang="{{languagetext[0]}}"
14
15
  />
15
- {%- endif -%} {%- else -%} {%- if dataFile.features -%}
16
-
17
- <link data-rh="true" rel="alternate" data-rh="true" rel="alternate" href="/" />
18
- {%- else -%} {% assign full_url = site.url | append: page.permalink %} {% assign
19
- last_segment = page.permalink | split: '/' | last %} {% assign full_url =
20
- site.url | append: '/' | append: last_segment %} {%- if whitelist_urls contains
21
- full_url -%}
16
+ {%- endif -%}
17
+ {%- endif -%} {%- endfor -%} {%- endfor -%} {%- else -%} {%- if matchurls
18
+ contains page.permalink -%} {%- assign languagetext = [i] -%}
19
+ <link data-rh="true" rel="alternate" href="{{site.url}}" hreflang="en" />
20
+ {%- for i in matchurls -%} {%- assign languagetext = [i] -%} {%- if i==
21
+ page.permalink -%}
22
+ {%- assign check_path = page.permalink | append: "@" | replace: "/@", "" | replace: "@", "" -%}
23
+ {%- unless check_path contains "/" -%}{%- assign check_path = check_path | prepend: "/" -%}{%- endunless -%}
24
+ {%- if whitelist_urls == nil or whitelist_urls contains check_path -%}
22
25
  <link
23
26
  data-rh="true"
24
27
  rel="alternate"
25
- href="{{site.url}}/{{ page.permalink | split: '/' | last}}"
26
- hreflang="{{item}}"
28
+ href="{{site.url}}/{{page.permalink}}"
29
+ hreflang="{{languagetext[0]}}"
27
30
  />
28
- {%- endif -%} {%- endif -%} {%- endif -%} {%- else -%} {%- if
29
- dataFile.htmlLangAtt == item -%} {%- if page.permalink | split: '/' | last !=
30
- item -%} {% assign full_url = site.url | append: page.permalink %} {%- if
31
- whitelist_urls contains full_url -%}
32
- <link href="{{site.url}}/{{ page.permalink}}" hreflang="{{item}}" />
33
- {%- endif -%} {%- else -%} {% assign full_url = site.url | append: '/' | append:
34
- item %} {%- if whitelist_urls contains full_url -%}
35
- <link class="active-lang" href="{{site.url}}/{{item}}" hreflang="{{item}}" />
36
- {%- endif -%} {%- endif -%} {%- else -%} {%- if page.permalink | split: '/' |
37
- last != item -%} {%- if dataFile.features -%} {%- if whitelist_urls contains
38
- page.permalink -%}
31
+ {%- endif -%}
32
+ {%- else -%} {%- for checklang in site.pages -%} {%- if checklang.permalink == i
33
+ -%} {%- assign languagetext = [i] -%}
34
+ {%- assign check_path = languagetext[0] | append: "@" | replace: "/@", "" | replace: "@", "" -%}
35
+ {%- unless check_path contains "/" -%}{%- assign check_path = check_path | prepend: "/" -%}{%- endunless -%}
36
+ {%- if whitelist_urls == nil or whitelist_urls contains check_path -%}
39
37
  <link
40
38
  data-rh="true"
41
39
  rel="alternate"
42
- href="{{site.url}}/{{item}}"
43
- hreflang="{{item}}"
40
+ href="{{site.url}}/{{languagetext[0]}}"
41
+ hreflang="{{languagetext[0]}}"
44
42
  />
45
- 5 {%- endif -%} {%- else -%} {% assign last_segment = page.permalink | split:
46
- '/' | last %} {% assign full_url = site.url | append: '/' | append: item |
47
- append: '/' | append: last_segment %} {%- if whitelist_urls contains full_url
48
- -%}
43
+ {%- endif -%}
44
+ {%- endif -%} {%- endfor -%} {%- endif -%} {%- endfor -%} {%- else -%} {%- for
45
+ item in site.pages -%} {%- assign languagetext = [item.lang] -%} {%- assign
46
+ pagelink = page.permalink | split: "/" | last-%} {%- assign itemlink =
47
+ item.permalink | split: "/" | last-%} {%- if pagelink == itemlink and page.lang
48
+ != item.lang and page.permalink != item.permalink -%}
49
+ {%- assign check_path = item.permalink | append: "@" | replace: "/@", "" | replace: "@", "" -%}
50
+ {%- if whitelist_urls == nil or whitelist_urls contains check_path -%}
49
51
  <link
50
52
  data-rh="true"
51
53
  rel="alternate"
52
- href="{{site.url}}/{{item}}/{{ page.permalink | split: '/' | last}}"
53
- hreflang="{{item}}"
54
+ href="{{site.url}}{{item.permalink}}"
55
+ hreflang="{{languagetext[0]}}"
54
56
  />
55
- {%- endif -%} {%- endif -%} {%- else -%} {% assign full_url = site.url | append:
56
- '/' | append: item %} {%- if whitelist_urls contains full_url -%}
57
+ {%- endif -%}
58
+ {%- endif -%} {%- if pagelink == itemlink and page.lang == item.lang -%}
59
+ {%- assign check_path = item.permalink | append: "@" | replace: "/@", "" | replace: "@", "" -%}
60
+ {%- if whitelist_urls == nil or whitelist_urls contains check_path -%}
61
+
57
62
  <link
58
63
  data-rh="true"
59
64
  rel="alternate"
60
- href="{{site.url}}/{{item}}"
61
- hreflang="{{item}}"
65
+ href="{{site.url}}{{item.permalink}}"
66
+ hreflang="{{languagetext[0]}}"
62
67
  />
63
- {%- endif -%} {%- endif -%} {%- endif -%} {%- endif -%} {%- endif -%} {%- endfor
64
- -%} {%- endif -%}
68
+ {%- endif -%}
69
+ {%- endif -%} {%- endfor -%} {%- endif -%} {%- endif -%}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.7.5
4
+ version: 5.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-28 00:00:00.000000000 Z
11
+ date: 2026-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll