Skip to content

Commit

Permalink
Add og:image:secure_url (#31)
Browse files Browse the repository at this point in the history
* add og:image:secure_url
  • Loading branch information
cpprian authored Aug 27, 2024
1 parent 2b5aaf2 commit 94f6898
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
4 changes: 3 additions & 1 deletion src/layouts/BaseLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const mainTitle = title.trim() == "" ? titlePrefix : titlePrefix + ": " + title;
<title>{mainTitle}</title>
<meta property="og:title" content={mainTitle} />
<meta property="og:description" content={description} />
<meta property="og:image" content={featuredImage} />
<meta property="og:image" content={"http://" + featuredImage} />
<meta property="og:image:secure_url" content={"https://" + featuredImage} />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content={imageWidth} />
<meta property="og:image:height" content={imageHeight} />
<!-- FIXME: USE LOCAL -->
Expand Down
3 changes: 1 addition & 2 deletions src/pages/client.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ const clientFeatures = (await getCollection("client-features")).sort(
);
const title = "Best Desktop WireGuard Client";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage =
"https://github.com/DefGuard/defguard.github.io/blob/main/public/images/product/client/main-screen.png";
const featuredImage = "github.com/DefGuard/defguard.github.io/raw/main/public/images/product/client/main-screen.png";
const imageWidth = "1920";
const imageHeight = "1080";
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/compare.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Button } from "../components/buttons/Button/Button";
const title = "Comparison of WireGuard VPN solutions";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "https://github.com/DefGuard/defguard/blob/main/docs/header.png";
const featuredImage = "github.com/DefGuard/defguard/raw/main/docs/header.png";
const imageWidth = "1080";
const imageHeight = "256";
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/download-confirm.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import BaseLayout from "../layouts/BaseLayout.astro";
const title = "";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "https://github.com/DefGuard/defguard/blob/main/docs/header.png";
const featuredImage = "github.com/DefGuard/defguard/raw/main/docs/header.png";
const imageWidth = "1080";
const imageHeight = "256";
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/download.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import DownloadVersion from "../components/download/DownloadVersion.astro";
const title = "";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "https://github.com/DefGuard/defguard/blob/main/docs/header.png";
const featuredImage = "github.com/DefGuard/defguard/raw/main/docs/header.png";
const imageWidth = "1080";
const imageHeight = "256";
---
Expand Down
3 changes: 1 addition & 2 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ const coreFeatures = (await getCollection("core-features")).sort(
const title = "";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage =
"https://github.com/DefGuard/defguard.github.io/blob/main/public/images/product/core/hero-image.png";
const featuredImage = "github.com/DefGuard/defguard.github.io/raw/main/public/images/product/core/hero-image.png";
const imageWidth = "1920";
const imageHeight = "1080";
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/newsletter.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import BaseLayout from "../layouts/BaseLayout.astro";
const title = "";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "https://github.com/DefGuard/defguard/blob/main/docs/header.png";
const featuredImage = "github.com/DefGuard/defguard/raw/main/docs/header.png";
const imageWidth = "1080";
const imageHeight = "256";
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/openvpn.astro
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const openvpnFeatures = (await getCollection("openvpn-features")).sort(
);
const title = "Migrate from OpenVPN to WireGuard";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "https://github.com/DefGuard/defguard/blob/main/docs/header.png";
const featuredImage = "github.com/DefGuard/defguard/raw/main/docs/header.png";
const imageWidth = "1080";
const imageHeight = "256";
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/pricing.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const pricing = (await getCollection("pricing")).sort(
);
const title = "Pricing & Support";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "https://github.com/DefGuard/defguard/blob/main/docs/header.png";
const featuredImage = "github.com/DefGuard/defguard/raw/main/docs/header.png";
const imageWidth = "1080";
const imageHeight = "256";
---
Expand Down
2 changes: 1 addition & 1 deletion src/pages/purchase-confirm.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import ProductSection from "../layouts/ProductSection.astro";
const title = "";
const description = "defguard - enterprise open-source SSO&VPN";
const featuredImage = "https://github.com/DefGuard/defguard/blob/main/docs/header.png";
const featuredImage = "github.com/DefGuard/defguard/raw/main/docs/header.png";
const imageWidth = "1080";
const imageHeight = "256";
---
Expand Down

0 comments on commit 94f6898

Please sign in to comment.