fix(public): minor tweaks
This commit is contained in:
@@ -1,10 +1,11 @@
|
|||||||
import { articleSource, source } from '@/lib/source';
|
import { articleSource, pageSource, source } from '@/lib/source';
|
||||||
import type { MetadataRoute } from 'next';
|
import type { MetadataRoute } from 'next';
|
||||||
import { url } from './layout.config';
|
import { url } from './layout.config';
|
||||||
const articles = await articleSource.getPages();
|
|
||||||
const docs = await source.getPages();
|
|
||||||
|
|
||||||
export default function sitemap(): MetadataRoute.Sitemap {
|
export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
|
||||||
|
const articles = await articleSource.getPages();
|
||||||
|
const docs = await source.getPages();
|
||||||
|
const pages = await pageSource.getPages();
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
url: url('/'),
|
url: url('/'),
|
||||||
@@ -36,5 +37,11 @@ export default function sitemap(): MetadataRoute.Sitemap {
|
|||||||
changeFrequency: 'monthly' as const,
|
changeFrequency: 'monthly' as const,
|
||||||
priority: 0.3,
|
priority: 0.3,
|
||||||
})),
|
})),
|
||||||
|
...pages.map((item) => ({
|
||||||
|
url: url(item.url),
|
||||||
|
lastModified: item.data.lastModified,
|
||||||
|
changeFrequency: 'monthly' as const,
|
||||||
|
priority: 0.3,
|
||||||
|
})),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,17 +14,17 @@ export function Hero() {
|
|||||||
{/* Content */}
|
{/* Content */}
|
||||||
<div className="container relative z-10">
|
<div className="container relative z-10">
|
||||||
<div className="max-w-2xl col gap-4 pt-28 text-center mx-auto ">
|
<div className="max-w-2xl col gap-4 pt-28 text-center mx-auto ">
|
||||||
<h1 className="text-6xl font-bold leading-[1.1] animate-fade-up">
|
<h1 className="text-6xl font-bold leading-[1.1]">
|
||||||
An open-source alternative to <span>Mixpanel</span>
|
An open-source alternative to <span>Mixpanel</span>
|
||||||
</h1>
|
</h1>
|
||||||
<p className="text-xl text-muted-foreground animate-fade-up">
|
<p className="text-xl text-muted-foreground">
|
||||||
The power of Mixpanel, the ease of Plausible and nothing from Google
|
The power of Mixpanel, the ease of Plausible and nothing from Google
|
||||||
Analytics 😉
|
Analytics 😉
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* CTA */}
|
{/* CTA */}
|
||||||
<div className="row gap-4 center-center my-12 animate-fade-up">
|
<div className="row gap-4 center-center my-12">
|
||||||
<Button size="lg" asChild>
|
<Button size="lg" asChild>
|
||||||
<Link href="https://dashboard.openpanel.dev/register">
|
<Link href="https://dashboard.openpanel.dev/register">
|
||||||
Try it for free
|
Try it for free
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ const Navbar = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<nav className="fixed top-4 z-50 w-full animate-fade-down" ref={navbarRef}>
|
<nav className="fixed top-4 z-50 w-full" ref={navbarRef}>
|
||||||
<div className="container">
|
<div className="container">
|
||||||
<div
|
<div
|
||||||
className={cn(
|
className={cn(
|
||||||
|
|||||||
Reference in New Issue
Block a user