Skip to content

Commit b32df3d

Browse files
author
Peter Bengtsson
authored
display title if no shortTitle on product landing pages (#24657)
* display 'title' if no 'shortTitle' on product landing pages * remove pointless shortTitles * Revert "Fix search sync (#24620)" This reverts commit 16c9fc3. * undo * undo sample changes
1 parent 2a6347a commit b32df3d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

components/landing/LandingHero.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import { Lead } from 'components/ui/Lead'
1111

1212
export const LandingHero = () => {
1313
const { airGap } = useMainContext()
14-
const { product_video, shortTitle, beta_product, intro, introLinks } = useProductLandingContext()
14+
const { product_video, shortTitle, title, beta_product, intro, introLinks } =
15+
useProductLandingContext()
1516
const { t } = useTranslation('product_landing')
1617
const [renderIFrame, setRenderIFrame] = useState(false)
1718

@@ -24,7 +25,7 @@ export const LandingHero = () => {
2425
<header className="d-lg-flex gutter-lg mb-6">
2526
<div className={cx('col-12 mb-3 mb-lg-0', product_video && 'col-lg-6')}>
2627
<h1>
27-
{shortTitle}{' '}
28+
{shortTitle || title}{' '}
2829
{beta_product && <span className="Label Label--success v-align-middle">Beta</span>}
2930
</h1>
3031

content/repositories/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Repositories
3-
intro: "Learn to use and manage the repositories that allow you to store and collaborate on your project's code."
3+
intro: Learn to use and manage the repositories that allow you to store and collaborate on your project's code.
44
introLinks:
55
quickstart: /get-started/quickstart/create-a-repo
66
overview: /repositories/creating-and-managing-repositories/about-repositories

0 commit comments

Comments
 (0)