Skip to content

Commit c0d6a76

Browse files
HDS-1383 Change order of meta tags
1 parent 59a2bea commit c0d6a76

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

website/app/templates/head.hbs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -21,46 +21,46 @@ We've made some small customizations to simplify this compared to the default te
2121

2222
{{! END GENERAL }}
2323

24-
{{! BEGIN OPENGRAPH }}
24+
{{! BEGIN TWITTER }}
2525

26-
{{#if this.model.siteName}}
27-
<meta property="og:site_name" content={{this.model.siteName}} />
28-
{{/if}}
26+
<meta name="twitter:card" content="summary" />
27+
<meta name="twitter:site" content="@HashiCorp" />
2928

3029
{{#if this.model.title}}
31-
<meta property="og:title" content={{this.model.title}} />
30+
<meta name="twitter:title" content={{this.model.title}} />
3231
{{/if}}
3332

3433
{{#if this.model.description}}
35-
<meta property="og:description" content={{this.model.description}} />
34+
<meta name="twitter:description" content={{this.model.description}} />
3635
{{/if}}
3736

3837
{{#if this.model.imgSrc}}
39-
<meta property="og:image" content={{this.model.imgSrc}} />
40-
<meta property="og:image:type" content="image/jpg" />
38+
<meta name="twitter:image" content={{this.model.imgSrc}} />
4139
{{/if}}
4240

43-
{{! END OPENGRAPH }}
41+
{{#if this.model.url}}
42+
<meta name="twitter:url" content={{this.model.url}} />
43+
{{/if}}
4444

45-
{{! BEGIN TWITTER }}
45+
{{! END TWITTER }}
4646

47-
<meta name="twitter:card" content="summary" />
48-
<meta name="twitter:site" content="@HashiCorp" />
47+
{{! BEGIN OPENGRAPH }}
4948

5049
{{#if this.model.imgSrc}}
51-
<meta name="twitter:image" content={{this.model.imgSrc}} />
50+
<meta property="og:image" content={{this.model.imgSrc}} />
51+
<meta property="og:image:type" content="image/jpg" />
5252
{{/if}}
5353

5454
{{#if this.model.title}}
55-
<meta name="twitter:title" content={{this.model.title}} />
55+
<meta property="og:title" content={{this.model.title}} />
5656
{{/if}}
5757

58-
{{#if this.model.url}}
59-
<meta name="twitter:url" content={{this.model.url}} />
58+
{{#if this.model.siteName}}
59+
<meta property="og:site_name" content={{this.model.siteName}} />
6060
{{/if}}
6161

6262
{{#if this.model.description}}
63-
<meta name="twitter:description" content={{this.model.description}} />
63+
<meta property="og:description" content={{this.model.description}} />
6464
{{/if}}
6565

66-
{{! END TWITTER }}
66+
{{! END OPENGRAPH }}

0 commit comments

Comments
 (0)