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
export default defineConfig({
site: "https://efeele.dev",
site: "https://neonmint.efeele.dev",
integrations: [preact(), icon(), sitemap()],
vite: {

View File

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

View File

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

View File

@@ -9,7 +9,7 @@ const ogimage = {
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'.",
};
const currentUrl = `https://efeele.dev${Astro.url.pathname}`;
const currentUrl = `${Astro.site}${Astro.url.pathname}`;
const tweetText = encodeURIComponent(`"${pageTitle}"`);
import Heading from "../../../components/ui/Heading.astro";
import Share from "../../../components/ui/Share.astro";