feat(SEO): Fix and improve links for better search engine visibility

This commit is contained in:
EFEELE
2025-04-15 13:22:21 -06:00
parent 48c0de5fec
commit 09dc543837
4 changed files with 11 additions and 7 deletions

View File

@@ -7,7 +7,7 @@ import icon from "astro-icon";
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
site: "https://efeele.dev", site: "https://neonmint.efeele.dev",
integrations: [preact(), icon(), sitemap()], integrations: [preact(), icon(), sitemap()],
vite: { vite: {

View File

@@ -4,8 +4,8 @@ import Header from "../components/layout/Header.astro";
import Footer from "../components/layout/Footer.astro"; import Footer from "../components/layout/Footer.astro";
import SpeedInsights from "@vercel/speed-insights/astro" import SpeedInsights from "@vercel/speed-insights/astro"
const { const {
pageTitle = "EFEELE | Programmer and Web Developer 🚀", pageTitle = "NeonMint by EFEELE 🚀",
description = "Welcome to EFEELE's website, where I develop software and share knowledge.", description = "Welcome to NeonMint by EFEELE, where I develop software and share knowledge.",
ogimage = { ogimage = {
url: "/images/imagedefault.webp", url: "/images/imagedefault.webp",
alt: "Default image of EFEELE", alt: "Default image of EFEELE",
@@ -14,7 +14,7 @@ const {
const siteUrl = new URL(Astro.url).origin; const siteUrl = new URL(Astro.url).origin;
const SEO = { const SEO = {
sitename: "EFEELE | Programmer and Web Developer 🚀", sitename: "NeonMint by EFEELE🚀",
url: siteUrl, url: siteUrl,
locale: "en_US", locale: "en_US",
author: "Fernando Lopez | EFEELE", author: "Fernando Lopez | EFEELE",
@@ -46,7 +46,7 @@ const twitterimage = `${siteUrl}${ogimage.url}`;
<meta name="description" content={description} /> <meta name="description" content={description} />
<meta name="author" content={SEO.author} /> <meta name="author" content={SEO.author} />
<meta name="robots" content="index, follow" /> <meta name="robots" content="index, follow" />
<link rel="canonical" href="https://www.efeele.dev/"> <link rel="canonical" href={`${Astro.site}${Astro.url.pathname}`}>
<!-- Open Graph / Facebook --> <!-- Open Graph / Facebook -->
<meta property="og:title" content={pageTitle} /> <meta property="og:title" content={pageTitle} />
<meta property="og:description" content={description} /> <meta property="og:description" content={description} />
@@ -56,6 +56,7 @@ const twitterimage = `${siteUrl}${ogimage.url}`;
<meta property="og:type" content="website" /> <meta property="og:type" content="website" />
<meta property="og:site_name" content={SEO.sitename} /> <meta property="og:site_name" content={SEO.sitename} />
<meta property="og:locale" content={SEO.locale} /> <meta property="og:locale" content={SEO.locale} />
<!-- Twitter Cards --> <!-- Twitter Cards -->
<meta name="twitter:card" content="summary_large_image" /> <meta name="twitter:card" content="summary_large_image" />
@@ -66,6 +67,9 @@ const twitterimage = `${siteUrl}${ogimage.url}`;
<meta name="twitter:site" content={SEO.twitter} /> <meta name="twitter:site" content={SEO.twitter} />
<meta name="theme-color" content="#0E0E11"/> <meta name="theme-color" content="#0E0E11"/>
<!-- Sitemap -->
<link rel="sitemap" href="/sitemap-index.xml" />
</head> </head>
<body class="overflow-x-hidden"> <body class="overflow-x-hidden">

View File

@@ -9,7 +9,7 @@ import ListPosts from "../components/blog/ListPosts.astro";
import NavigationArticles from "../components/layout/NavigationArticles.astro"; import NavigationArticles from "../components/layout/NavigationArticles.astro";
import Share from "../components/ui/Share.astro"; import Share from "../components/ui/Share.astro";
const { frontmatter } = Astro.props; const { frontmatter } = Astro.props;
const currentUrl = `https://efeele.dev${Astro.url.pathname}`; const currentUrl = `${Astro.site}${Astro.url.pathname}`;
const tweetText = encodeURIComponent( const tweetText = encodeURIComponent(
`"${frontmatter.title}" - by ${frontmatter.author} | EFEELE`, `"${frontmatter.title}" - by ${frontmatter.author} | EFEELE`,
); );

View File

@@ -9,7 +9,7 @@ const ogimage = {
url: "/images/blogimage.webp", url: "/images/blogimage.webp",
alt: "EFEELE.dev logo with green background and light effect. Text: 'Web Development and Technology Blog' and URL 'www.efeele.dev'.", alt: "EFEELE.dev logo with green background and light effect. Text: 'Web Development and Technology Blog' and URL 'www.efeele.dev'.",
}; };
const currentUrl = `https://efeele.dev${Astro.url.pathname}`; const currentUrl = `${Astro.site}${Astro.url.pathname}`;
const tweetText = encodeURIComponent(`"${pageTitle}"`); const tweetText = encodeURIComponent(`"${pageTitle}"`);
import Heading from "../../../components/ui/Heading.astro"; import Heading from "../../../components/ui/Heading.astro";
import Share from "../../../components/ui/Share.astro"; import Share from "../../../components/ui/Share.astro";