Skip to content

Commit 43687b1

Browse files
committed
move up to minimize changes
1 parent 5487b44 commit 43687b1

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed

src/components/overrides/Head.astro

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,35 @@ if (currentSection) {
8787
ogImage = images[group];
8888
}
8989
90+
const tags = [
91+
{
92+
tag: "meta",
93+
attrs: {
94+
name: "image",
95+
content: ogImage,
96+
},
97+
content: "",
98+
},
99+
{
100+
tag: "meta",
101+
attrs: {
102+
name: "og:image",
103+
content: ogImage,
104+
},
105+
content: "",
106+
},
107+
{
108+
tag: "meta",
109+
attrs: {
110+
name: "twitter:image",
111+
content: ogImage,
112+
},
113+
content: "",
114+
},
115+
] as const;
116+
117+
Astro.props.entry.data.head.push(...tags);
118+
90119
Astro.props.entry.data.head.push({
91120
tag: "meta",
92121
attrs: {
@@ -96,35 +125,6 @@ if (currentSection) {
96125
content: "",
97126
});
98127
}
99-
100-
const tags = [
101-
{
102-
tag: "meta",
103-
attrs: {
104-
name: "image",
105-
content: ogImage,
106-
},
107-
content: "",
108-
},
109-
{
110-
tag: "meta",
111-
attrs: {
112-
name: "og:image",
113-
content: ogImage,
114-
},
115-
content: "",
116-
},
117-
{
118-
tag: "meta",
119-
attrs: {
120-
name: "twitter:image",
121-
content: ogImage,
122-
},
123-
content: "",
124-
},
125-
] as const;
126-
127-
Astro.props.entry.data.head.push(...tags);
128128
}
129129
130130
if (currentSection === "style-guide") {

0 commit comments

Comments
 (0)