Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update page titles #220

Merged
merged 5 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/layouts/BaseHtml.astro
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ const baseUrl = getSiteUrl();
/>
<meta name="generator" content={Astro.generator} />
<!-- HTML Meta Tags -->
<title>{ogMeta?.title || settings.site.metadata.default.title}</title>
<title>
{`Fleek | ${ogMeta?.title || settings.site.metadata.default.title}`}
</title>
<meta
name="description"
content={ogMeta?.description ||
Expand Down
12 changes: 6 additions & 6 deletions src/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
},
"metadata": {
"default": {
"title": "Fleek | Build lightning-fast apps",
"title": "Build lightning-fast apps",
"slug": "",
"description": "Fleek is an edge-optimized cloud platform. Effortlessly build, ship and scale highly performant apps. Try for free and deploy an app in 5 minutes.",
"image": "/images/fleek-meta.png?202406061658"
},
"blog": {
"title": "Fleek Blog",
"title": "Blog",
"slug": "blog",
"description": "Stay updated with blog posts from the Fleek team and community. Explore articles and insights on the latest trends and advancements in web development.",
"image": "/images/fleek-meta.png?202406061658",
Expand Down Expand Up @@ -45,19 +45,19 @@
}
},
"changelog": {
"title": "Fleek Changelog",
"title": "Changelog",
"slug": "changelog",
"description": "Stay updated with our changelog.",
"image": "/images/fleek-meta.png?202406061658"
},
"docs": {
"title": "Fleek Docs",
"title": "Docs",
"slug": "docs",
"description": "Kickstart your Fleek journey with our documentation, detailed guides and references. Browse our platform resources for a deep dive into our features.",
"image": "/images/fleek-meta.png?202406061658"
},
"guides": {
"title": "Fleek Guides",
"title": "Guides",
"slug": "guides",
"description": "Discover step-by-step guides and tutorials on Fleek to streamline your app and web development. Leverage our resources to build smarter, faster, and stress free.",
"image": "/images/fleek-meta.png?202406061658"
Expand All @@ -75,7 +75,7 @@
"image": "/images/fleek-meta.png?202406061658"
},
"references": {
"title": "Fleek References",
"title": "References",
"slug": "references",
"description": "Explore the Fleek References page for troubleshooting guides designed to address common errors when using Fleek.",
"image": "/images/fleek-meta.png?202406061658"
Expand Down
5 changes: 4 additions & 1 deletion src/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ export const hasSecondaryMenuItem = (pathname: string): boolean => {
(item) => item.path.split('/')[1],
);
const uniqueMenuItems = [...new Set(supportMenuItems)];
return uniqueMenuItems.some((item) => pathname.includes(item));

const pathSegments = pathname.split('/');

return uniqueMenuItems.some((item) => pathSegments.includes(item));
};

export const removeProtocolFromUrl = (userUrl: string) => {
Expand Down