feat: add og image

This commit is contained in:
Alvalen 2023-09-29 13:24:48 +07:00
parent 9b5e7cccbf
commit 68efaf5c86
4 changed files with 8 additions and 2 deletions

View file

@ -4,7 +4,7 @@ import Navbar from "@/components/Navbar";
import { config } from "@fortawesome/fontawesome-svg-core";
import "@fortawesome/fontawesome-svg-core/styles.css";
config.autoAddCss = false;
import Icon from "@/public/img/icon.ico";
import Img from "@/public/og-image.png"
import "./nprogress.css";
export const metadata = {
@ -32,9 +32,15 @@ export const metadata = {
url: "https://www.alvalens.my.id",
title: "Alvalens | Portofolio",
description: "My name is Alvalens, This is my portofolio website.",
image: Icon,
images: "/og-image.png",
siteName: "Alvalens | Portofolio",
},
// for whataspp
whatsapp: {
title: "Alvalens | Portofolio",
description: "My name is Alvalens, This is my portofolio website.",
images: "/og-image.png",
},
alternates: {
canoncial: "https://www.alvalens.my.id",
},

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

BIN
public/og-image-square.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

BIN
public/og-image.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 571 KiB