You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support arbitrary keys in new featuredLinks frontmatter (#16239)
* Add featuredLinks to frontmatter
* Parse them in featured-links.js
* Remove old raw setup
* Use them
* Missed a couple
* Update translation files
* Fix frontmatter schema
* Loop over the right object
* Also update translations' usage
* Update docs and tests
* Better README comment
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
* Return next()
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
@@ -132,12 +132,22 @@ For a layout named `layouts/article.html`, the value would be `article`.
132
132
- Type: `Boolean`. Default is `false`.
133
133
- Optional.
134
134
135
-
### `gettingStartedLinks` and `popularLinks`
135
+
### `featuredLinks`
136
136
137
-
- Purpose: Renders the linked articles' titles and intros under `Getting started` and `Popular articles` headings, respectively. See site homepage for an example.
138
-
- Type: `Array`.
137
+
- Purpose: Renders the linked articles' titles and intros on product landing pages and the homepage.
138
+
- Type: `Object`.
139
139
- Optional.
140
140
141
+
Example:
142
+
143
+
```yaml
144
+
featuredLinks:
145
+
gettingStarted:
146
+
- /path/to/page
147
+
guides:
148
+
- /guides/example
149
+
```
150
+
141
151
### `showMiniToc`
142
152
143
153
- Purpose: Indicates whether an article should show a mini TOC above the rest of the content. See [Autogenerated mini TOCs](#autogenerated-mini-tocs) for more info.
Copy file name to clipboardExpand all lines: content/insights/index.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,15 @@
2
2
title: GitHub Insights Documentation
3
3
shortTitle: GitHub Insights
4
4
intro: 'Understand and improve your software delivery process through data with {% data variables.product.prodname_insights %}. You can view customized reports based on data from {% data variables.product.prodname_enterprise %}.'
Copy file name to clipboardExpand all lines: content/packages/index.md
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,18 +2,19 @@
2
2
title: GitHub Packages Documentation
3
3
shortTitle: GitHub Packages
4
4
intro: 'Learn to safely publish and consume packages, store your packages alongside your code, and share your packages privately with your team or publicly with the open source community. You can also automate your packages with {% data variables.product.prodname_actions %}.'
0 commit comments