jekyll-theme-centos 2.52.0.beta.57 → 2.52.0.beta.58

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: 29e3de8f157f7b87508708bbdb18de63f8bd44871d0feca1c8f867a299e9aa46
4
- data.tar.gz: 2012b819f38f4ebcf5e3bd300be8a3faea9f0b46916b2a94f289b1ace45b7583
3
+ metadata.gz: 930c947b9435c61c4faf7651b4539eb6eebc82a583b06b1b50e8f9323dfaa27f
4
+ data.tar.gz: 338e6dd2b51a04f554093975d8ed3428a0a7e844a11b3174a6b7cd8b5f55aec4
5
5
  SHA512:
6
- metadata.gz: 0e3fed1004fc6820dac94c797fd5a4cebd99d967a088797e2f59fd328be508c382fee93d30c5dd66a6f17d953204b8ed344d68c300f25289e67c3bb1a90dd1ae
7
- data.tar.gz: 741b4f8ad83b80b1ebc127834e4a19d2051191a21c8af6b074b7f8cf5e7cca028feda26631818bcb923e085835e9908d6f161fac7b3aaad5e82d1a0f9d368faf
6
+ metadata.gz: 7010f156ff38a3d21c3ad228a51562dd23a976b80d4a0548bb8de34de60b62112be5c236390f9c52870537f5973ac0f56f5f3025af24738b28073b1afe0f575b
7
+ data.tar.gz: a837ee46c8ee443fe6ca5276125d1d57027adaedd22980b9b390f03001ab05df29d7ebfe2e8a1afd98540e878176b688b4f800284b1f9515a33fd38f7f923d4b
@@ -11,4 +11,17 @@ properties:
11
11
  description: >-
12
12
  Enables or disables the rendering of the breadcrumb navigation component.
13
13
  Set to `true` (default) to display the breadcrumbs; set to `false` to hide them.
14
+ with_breadcrumb_data:
15
+ type: object
16
+ default: {}
17
+ description: >-
18
+ Configuration object for the breadcrumb navigation component.
19
+ properties:
20
+ arialabel:
21
+ type: string
22
+ default: "breadcrumb"
23
+ description: >-
24
+ The `aria-label` attribute value for the breadcrumb `<nav>` element.
25
+ Screen readers use this label to identify the navigation landmark.
26
+ additionalProperties: false
14
27
  additionalProperties: false
data/_data/base/ogp.yml CHANGED
@@ -5,6 +5,7 @@ og:
5
5
  title: true
6
6
  url: true
7
7
  description: true
8
+ logo: /assets/icons/apple-touch-icon.png
8
9
  image:
9
10
  url: true
10
11
  alt: The CentOS Project
@@ -85,6 +85,20 @@ properties:
85
85
  default: audio/ogg
86
86
  description: The MIME type of the audio file via the `og:audio:type` tag.
87
87
  additionalProperties: false
88
+ site_name:
89
+ type: string
90
+ description: >-
91
+ The name of the overall website for the `og:site_name` tag (e.g.,
92
+ `"CentOS"`). Distinct from the page title. Defaults to `site.title`
93
+ from the Jekyll configuration when not set explicitly.
94
+ logo:
95
+ type: string
96
+ default: "/assets/icons/apple-touch-icon.png"
97
+ description: >-
98
+ Path to the organization logo image for the `og:logo` meta tag.
99
+ Used by Google Knowledge Graph and some OGP validators to identify
100
+ the site's primary logo. Not part of the official OGP specification;
101
+ treated as a path relative to `site.url + site.baseurl`.
88
102
  video:
89
103
  type: object
90
104
  description: Configuration for video media files to accompany the content (`og:video`).
@@ -18,9 +18,12 @@ Required Inputs:
18
18
  - page.original_url: URL without locale prefix (used for breadcrumb structure)
19
19
  - page.title: Display text for active breadcrumb
20
20
 
21
- Data Sources:
22
- - site.baseurl: Base URL prefix
23
- - site.with_link_decorator_data.default_link_classes: CSS classes
21
+ Optional Inputs:
22
+ - with_breadcrumb_data.arialabel: aria-label for the <nav> element (default: "breadcrumb")
23
+
24
+ Data Source Hierarchy:
25
+ - with_breadcrumb: include.with_breadcrumb → page.with_breadcrumb
26
+ - with_breadcrumb_data: include.data → page.with_breadcrumb_data → site.data.breadcrumb → site.data.base.breadcrumb
24
27
  ================================================================================
25
28
  {% endcomment %}
26
29
 
@@ -28,6 +31,14 @@ Data Sources:
28
31
  | default: page.with_breadcrumb
29
32
  %}
30
33
 
34
+ {%- assign with_breadcrumb_data = include.data
35
+ | default: page.with_breadcrumb_data
36
+ | default: site.data.breadcrumb
37
+ | default: site.data.base.breadcrumb
38
+ %}
39
+
40
+ {%- assign with_breadcrumb_schema = site.data.base.breadcrumb_schema.properties.with_breadcrumb_data.properties %}
41
+
31
42
  {%- if with_breadcrumb %}
32
43
 
33
44
  {%- comment %} Use original_url if available (without locale), otherwise use full url {%- endcomment %}
@@ -36,7 +47,7 @@ Data Sources:
36
47
  {%- comment %} Use plugin-provided locale (set for localized pages, defaults to 'en') {%- endcomment %}
37
48
  {%- assign detected_locale = page.locale | default: 'en' %}
38
49
 
39
- <nav aria-label="{{ include.arialabel | default: 'breadcrumb' }}">
50
+ <nav aria-label="{{ with_breadcrumb_data.arialabel | default: with_breadcrumb_schema.arialabel.default | default: 'breadcrumb' }}">
40
51
  <ol class="breadcrumb mb-0">
41
52
  {%- comment %} Home link - adjust for locale {%- endcomment %}
42
53
  {%- if detected_locale == 'en' or detected_locale == '' %}
@@ -25,6 +25,8 @@ Optional Inputs:
25
25
 
26
26
  Data Source Hierarchy:
27
27
  - og:type: with_ogp_data.og.type → schema default → 'website'
28
+ - og:site_name: with_ogp_data.og.site_name → site.title
29
+ - og:logo: with_ogp_data.og.logo → schema default → '/assets/icons/apple-touch-icon.png'
28
30
  - og:locale: page.locale (jekyll-l10n) → with_ogp_data.locale → schema default → 'en_US'
29
31
  - og:image:type: with_ogp_data.og.image.type → schema default → 'image/png'
30
32
  - og:image:width: with_ogp_data.og.image.width → schema default → 1200
@@ -91,9 +93,13 @@ Data Source Hierarchy:
91
93
  <meta {{ meta_attr }}="{{ property }}:title" content="{{ page.title }}" />
92
94
  {%- endif %}
93
95
 
94
- {%- comment %} --- OG type (after title, before url) --- {% endcomment %}
96
+ {%- comment %} --- OG type and logo (after title, before url) --- {% endcomment %}
95
97
  {%- if property == "og" %}
96
98
  <meta property="og:type" content="{{ ogp_og_type }}" />
99
+ {%- assign ogp_logo = with_ogp_data.og.logo | default: with_ogp_schema.og.properties.logo.default %}
100
+ {%- if ogp_logo %}
101
+ <meta property="og:logo" content="{{ site.url }}{{ site.baseurl }}{{ ogp_logo }}" />
102
+ {%- endif %}
97
103
  {%- endif %}
98
104
 
99
105
  {%- comment %} --- URL --- {% endcomment %}
@@ -124,8 +130,12 @@ Data Source Hierarchy:
124
130
  <meta {{ meta_attr }}="{{ property }}:image:alt" content="{{ with_ogp_data[property].image.alt | default: with_ogp_og_image_schema.alt.default | default: 'The CentOS Project' }}" />
125
131
  {%- endif %}
126
132
 
127
- {%- comment %} --- OG locale (after image) --- {% endcomment %}
133
+ {%- comment %} --- OG site_name and locale (after image) --- {% endcomment %}
128
134
  {%- if property == "og" %}
135
+ {%- assign ogp_site_name = with_ogp_data.og.site_name | default: site.title %}
136
+ {%- if ogp_site_name %}
137
+ <meta property="og:site_name" content="{{ ogp_site_name }}" />
138
+ {%- endif %}
129
139
  <meta property="og:locale" content="{{ ogp_locale }}" />
130
140
  {%- endif %}
131
141
 
@@ -33,30 +33,32 @@ Optional Inputs (from include):
33
33
  - data: TOC configuration object
34
34
 
35
35
  Data Source Hierarchy (in priority order):
36
- 1. include.data - Explicitly passed configuration
37
- 2. page.with_toc_data - Page front matter
38
- 3. site.data.toc - Site configuration
39
- 4. site.data.base.toc - Theme defaults
36
+ - with_toc: include.with_toc page.with_toc
37
+ - with_toc_data: include.data page.with_toc_data site.data.toc site.data.base.toc
40
38
  ================================================================================
41
39
  {% endcomment %}
42
40
 
43
- {%- if page.with_toc -%}
44
- {%- assign toc = include.data | default: page.with_toc_data | default: site.data.toc | default: site.data.base.toc %}
45
- {%- assign toc_schema = site.data.base.toc_schema.properties["with_toc_data"].properties %}
41
+ {%- assign with_toc = include.with_toc
42
+ | default: page.with_toc
43
+ %}
44
+
45
+ {%- if with_toc -%}
46
+ {%- assign with_toc_data = include.data | default: page.with_toc_data | default: site.data.toc | default: site.data.base.toc %}
47
+ {%- assign with_toc_schema = site.data.base.toc_schema.properties["with_toc_data"].properties %}
46
48
 
47
49
  {%- comment %} === Configuration properties === {% endcomment %}
48
- {%- assign class = toc.class | default: toc_schema["class"].default %}
49
- {%- assign id = toc.id | default: toc_schema["id"].default | default: "page-toc" %}
50
- {%- assign item_class = toc.item_class | default: toc_schema["item_class"].default | default: "my-2" %}
51
- {%- assign anchor_class = toc.anchor_class | default: toc_schema["anchor_class"].default | default: site.with_link_decorator_data.default_link_classes %}
52
- {%- assign h_min = toc.h_min | default: toc_schema["h_min"].default %}
53
- {%- assign h_max = toc.h_max | default: toc_schema["h_max"].default %}
54
- {%- assign ordered = toc.ordered | default: toc_schema["ordered"].default %}
55
- {%- assign submenu_class = toc.submenu_class | default: toc_schema["submenu_class"].default %}
56
- {%- assign base_url = toc.base_url | default: toc_schema["base_url"].default %}
57
- {%- assign sanitize = toc.sanitize | default: toc_schema["sanitize"].default %}
58
- {%- assign skip_no_ids = toc.skip_no_ids | default: toc_schema["skip_no_ids"].default %}
59
- {%- assign flat_toc = toc.flat_toc | default: toc_schema["flat_toc"].default %}
50
+ {%- assign class = with_toc_data.class | default: with_toc_schema["class"].default %}
51
+ {%- assign id = with_toc_data.id | default: with_toc_schema["id"].default | default: "page-toc" %}
52
+ {%- assign item_class = with_toc_data.item_class | default: with_toc_schema["item_class"].default | default: "my-2" %}
53
+ {%- assign anchor_class = with_toc_data.anchor_class | default: with_toc_schema["anchor_class"].default | default: site.with_link_decorator_data.default_link_classes %}
54
+ {%- assign h_min = with_toc_data.h_min | default: with_toc_schema["h_min"].default %}
55
+ {%- assign h_max = with_toc_data.h_max | default: with_toc_schema["h_max"].default %}
56
+ {%- assign ordered = with_toc_data.ordered | default: with_toc_schema["ordered"].default %}
57
+ {%- assign submenu_class = with_toc_data.submenu_class | default: with_toc_schema["submenu_class"].default %}
58
+ {%- assign base_url = with_toc_data.base_url | default: with_toc_schema["base_url"].default %}
59
+ {%- assign sanitize = with_toc_data.sanitize | default: with_toc_schema["sanitize"].default %}
60
+ {%- assign skip_no_ids = with_toc_data.skip_no_ids | default: with_toc_schema["skip_no_ids"].default %}
61
+ {%- assign flat_toc = with_toc_data.flat_toc | default: with_toc_schema["flat_toc"].default %}
60
62
 
61
63
  {%- comment %} === Presentation === {% endcomment %}
62
64
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-theme-centos
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.52.0.beta.57
4
+ version: 2.52.0.beta.58
5
5
  platform: ruby
6
6
  authors:
7
7
  - ReleaseBot