Skip to content

Commit ac3f6d5

Browse files
authored
Merge pull request #1155 from hashicorp/new-docs-website/fix-twitter-part2
New docs website / Fix card image fix #2
2 parents 2a7c8db + a35b774 commit ac3f6d5

File tree

2 files changed

+4
-13
lines changed

2 files changed

+4
-13
lines changed

website/app/templates/head.hbs

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,16 @@ We've made some small customizations to simplify this compared to the default te
3838
<meta property="og:description" content={{this.model.description}} />
3939
{{/if}}
4040

41-
{{#if this.model.imgSrc}}
42-
<meta property="og:image" content={{this.model.imgSrc}} />
43-
{{/if}}
41+
<meta property="og:image" content="https://helios.hashicorp.design/assets/logos/share-card.jpg" />
4442

4543
{{! END OPENGRAPH }}
4644

4745
{{! BEGIN TWITTER }}
4846

4947
<meta name="twitter:card" content="summary_large_image" />
50-
51-
{{#if this.model.imgSrc}}
52-
<meta name="twitter:image" content={{this.model.imgSrc}} />
53-
{{/if}}
48+
{{! template-lint-disable no-forbidden-elements no-potential-path-strings }}
49+
<meta name="twitter:site" content="@HashiCorp" />
50+
<meta name="twitter:image" content="https://helios.hashicorp.design/assets/logos/share-card.jpg" />
5451

5552
{{#if this.model.title}}
5653
<meta name="twitter:title" content={{this.model.title}} />
@@ -64,8 +61,4 @@ We've made some small customizations to simplify this compared to the default te
6461
<meta name="twitter:description" content={{this.model.description}} />
6562
{{/if}}
6663

67-
{{#if this.model.twitterUsername}}
68-
<meta name="twitter:site" content={{this.model.twitterUsername}} />
69-
{{/if}}
70-
7164
{{! END TWITTER }}

website/config/environment.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ module.exports = function (environment) {
3434
siteName: 'Helios Design System',
3535
title: 'Helios Design System',
3636
url: 'https://helios.hashicorp.design',
37-
imgSrc: 'https://helios.hashicorp.design/assets/logos/share-card.jpg',
38-
twitterUsername: '@HashiCorp',
3937
},
4038
};
4139

0 commit comments

Comments
 (0)