зеркало из https://github.com/github/docs.git
33c05d81ce
* Add cta button to frontmatter and context * Add cta to Page * Render cta button in product landing hero * Handle external links * Add simple unit test for cta link * Address feedback Co-authored-by: Peter Bengtsson <mail@peterbe.com> * Actually push condition update * Show it's an external link * Refactor FullLink so we use Link once Co-authored-by: Peter Bengtsson <mail@peterbe.com> * Custom link can also be null * Rename 'cta' to 'custom' and make it the last introLink * Update tests with 'cta' to 'custom' change * Filter once * Revert "Filter once" This reverts commit a3f9a8a06b505d77fed47ca96a66c187c86c3c91. * Update introLinks to a map of titles and URLs * No more custom introLink in LandingHero * Simplify introLinks processing * introLinks can also be null Co-authored-by: Peter Bengtsson <mail@peterbe.com> * more concise Co-authored-by: Peter Bengtsson <mail@peterbe.com> * No longer necessary with the a plain introLinks map Co-authored-by: Peter Bengtsson <mail@peterbe.com> * '.entries()` is simpler Co-authored-by: Peter Bengtsson <mail@peterbe.com> * 'link' could be false depending on what version you're on * Update test for new introLinks Co-authored-by: Peter Bengtsson <mail@peterbe.com> |
||
---|---|---|
.. | ||
liquid-tags | ||
products | ||
remove-liquid-statements | ||
article-with-broken-links-and-images.md | ||
article-with-includeGuides.md | ||
article-with-introLinks.md | ||
article-with-learning-tracks.md | ||
article-with-mislocalized-frontmatter.md | ||
article-with-redirect-from-string.md | ||
article-with-videos.md | ||
changelog-entry.json | ||
changelog-feed.json | ||
default-tool.md | ||
developer-redirects.json | ||
feature-versions-frontmatter.md | ||
github-blog-feed-packages-2021.xml | ||
graphql-redirects.json | ||
page-that-does-not-exist-in-translations-dir.md | ||
page-versioned-for-all-enterprise-releases.md | ||
page-versioned-for-ghae-next.md | ||
page-versioned-for-next-enterprise-release.md | ||
page-with-deprecated-enterprise-links.md | ||
page-with-frontmatter-error.md | ||
page-with-missing-product-versions.md | ||
page-with-optional-attributes.md | ||
page-with-redirects.md | ||
rest-redirects.json | ||
rss-feed.xml | ||
sample-article.md | ||
sample-toc-index.md | ||
short-versions.md | ||
translated-toc-with-no-links-index.md | ||
updated-changelog-file.json |