Skip to content
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
6 changes: 6 additions & 0 deletions app/[lang]/(main)/blog/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { ArticleJsonLd } from "@/components/JsonLd";
import { Breadcrumb, BreadcrumbJsonLd } from "@/components/Breadcrumb";
import { languages } from "@/lib/i18n";
import { LocalizedMdxLink } from "@/components/LocalizedMdxLink";
import { RelatedPosts } from "@/components/RelatedPosts";
import { getRawMarkdownPath } from "@/lib/rawContent";

export async function generateStaticParams() {
Expand Down Expand Up @@ -87,6 +88,11 @@ export default async function Page(props: {
/>
</div>
</article>
<RelatedPosts
lang={params.lang}
currentSlug={params.slug}
tags={data.tags}
/>
</div>
</div>
);
Expand Down
32 changes: 32 additions & 0 deletions app/[lang]/(main)/features/comparisons/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ const accentColorMap = {
"better-stack": "green",
pushover: "purple",
ifttt: "red",
slack: "violet",
telegram: "sky",
discord: "indigo",
healthchecks: "teal",
} as const;

type AccentColor = (typeof accentColorMap)[keyof typeof accentColorMap];
Expand Down Expand Up @@ -156,6 +160,34 @@ const accentToneMap: Record<
solidBadge: "bg-red-600",
solidButton: "bg-red-600 hover:bg-red-500",
},
violet: {
text: "text-violet-600 dark:text-violet-400",
softBg: "bg-violet-50 dark:bg-violet-950/20",
softBorder: "border-violet-200 dark:border-violet-800",
solidBadge: "bg-violet-600",
solidButton: "bg-violet-600 hover:bg-violet-500",
},
sky: {
text: "text-sky-600 dark:text-sky-400",
softBg: "bg-sky-50 dark:bg-sky-950/20",
softBorder: "border-sky-200 dark:border-sky-800",
solidBadge: "bg-sky-600",
solidButton: "bg-sky-600 hover:bg-sky-500",
},
indigo: {
text: "text-indigo-600 dark:text-indigo-400",
softBg: "bg-indigo-50 dark:bg-indigo-950/20",
softBorder: "border-indigo-200 dark:border-indigo-800",
solidBadge: "bg-indigo-600",
solidButton: "bg-indigo-600 hover:bg-indigo-500",
},
teal: {
text: "text-teal-600 dark:text-teal-400",
softBg: "bg-teal-50 dark:bg-teal-950/20",
softBorder: "border-teal-200 dark:border-teal-800",
solidBadge: "bg-teal-600",
solidButton: "bg-teal-600 hover:bg-teal-500",
},
};

export default async function ComparisonDetailPage({
Expand Down
11 changes: 10 additions & 1 deletion app/api/og/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ const LogoSvg = () => (
</svg>
);

const footerTaglines: Record<Language, string> = {
en: "Instant Webhook & Email Alerts",
zh: "Webhook 与邮件即时警报",
es: "Alertas instantáneas por Webhook y Email",
fr: "Alertes instantanées Webhook & Email",
ja: "Webhookとメールの即時アラート",
de: "Sofortige Webhook- & E-Mail-Benachrichtigungen",
};

function getBadgeText(type: string, lang: Language): string {
const badges: Record<string, Record<Language, string>> = {
blog: {
Expand Down Expand Up @@ -225,7 +234,7 @@ export async function GET(request: NextRequest) {
color: "#94a3b8",
}}
>
Instant Webhook & Email Alerts
{footerTaglines[lang] || footerTaglines.en}
</span>
</div>

Expand Down
94 changes: 94 additions & 0 deletions components/RelatedPosts.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
import Link from "next/link";
import { ArrowRightIcon } from "lucide-react";
import { blog } from "@/lib/source";
import { Language } from "@/lib/i18n";
import { displayDate } from "@/lib/date";

const relatedPostsUi: Record<Language, { heading: string; readMore: string }> = {
en: { heading: "Related articles", readMore: "Read more" },
zh: { heading: "相关文章", readMore: "阅读更多" },
es: { heading: "Artículos relacionados", readMore: "Leer más" },
fr: { heading: "Articles connexes", readMore: "Lire la suite" },
ja: { heading: "関連記事", readMore: "続きを読む" },
de: { heading: "Verwandte Artikel", readMore: "Mehr lesen" },
};

interface RelatedPostsProps {
lang: Language;
currentSlug: string;
tags?: string[];
limit?: number;
}

function normalizeTag(tag: string): string {
return tag.trim().toLowerCase();
}

/**
* Picks the most relevant other blog posts for internal linking.
* Scores by shared-tag overlap first, then falls back to recency so every
* article — even untagged ones — surfaces a useful set of links.
*/
export function RelatedPosts({
lang,
currentSlug,
tags,
limit = 3,
}: RelatedPostsProps) {
const ui = relatedPostsUi[lang] ?? relatedPostsUi.en;
const currentTags = new Set((tags ?? []).map(normalizeTag));

const candidates = [...blog.getPages(lang)]
.filter((page) => page.slugs[0] !== currentSlug)
.map((page) => {
const pageTags = (page.data.tags ?? []).map(normalizeTag);
const shared = pageTags.filter((tag) => currentTags.has(tag)).length;
return {
page,
shared,
time: new Date(page.data.date).getTime(),
};
})
.sort((a, b) => {
// More shared tags wins; otherwise the more recent post wins.
if (b.shared !== a.shared) return b.shared - a.shared;
return b.time - a.time;
})
.slice(0, limit);

if (candidates.length === 0) return null;

return (
<section className="mt-16 border-t border-neutral-200 pt-10 dark:border-neutral-800">
<h2 className="mb-6 text-lg font-semibold opacity-80">{ui.heading}</h2>
<div className="grid gap-4 sm:grid-cols-2 lg:grid-cols-3">
{candidates.map(({ page }) => (
<Link
key={page.url}
href={page.url}
className="group flex flex-col rounded-xl border border-neutral-200 bg-white p-5 transition-colors hover:border-neutral-300 dark:border-neutral-800 dark:bg-neutral-900 dark:hover:border-neutral-700"
>
<time
dateTime={new Date(page.data.date).toISOString()}
className="text-xs opacity-50"
>
{displayDate(new Date(page.data.date), lang)}
</time>
<h3 className="mt-2 line-clamp-2 font-medium opacity-90 group-hover:opacity-70">
{page.data.title}
</h3>
{page.data.description && (
<p className="mt-2 line-clamp-2 text-sm opacity-60">
{page.data.description}
</p>
)}
<span className="mt-4 flex items-center text-sm font-semibold text-orange-600 dark:text-orange-400">
{ui.readMore}
<ArrowRightIcon className="ml-1.5 h-4 w-4 transition-transform group-hover:translate-x-1" />
</span>
</Link>
))}
</div>
</section>
);
}
6 changes: 6 additions & 0 deletions content/blog/echobell-android-release.de.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Echobell für Android ist jetzt verfügbar. Android-Nutzer können
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- Android
- Google Play
- mobile alerts
- app release
---

# Echobell für Android ist jetzt verfügbar
Expand Down
6 changes: 6 additions & 0 deletions content/blog/echobell-android-release.es.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Echobell para Android ya está disponible. Los usuarios de Android
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- Android
- Google Play
- mobile alerts
- app release
---

# Echobell para Android ya está disponible
Expand Down
6 changes: 6 additions & 0 deletions content/blog/echobell-android-release.fr.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Echobell pour Android est disponible. Les utilisateurs Android peu
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- Android
- Google Play
- mobile alerts
- app release
---

# Echobell pour Android est disponible
Expand Down
6 changes: 6 additions & 0 deletions content/blog/echobell-android-release.ja.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Echobell Android 版を公開しました。Android ユーザー
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- Android
- Google Play
- mobile alerts
- app release
---

# Echobell Android 版を公開しました
Expand Down
6 changes: 6 additions & 0 deletions content/blog/echobell-android-release.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Echobell for Android is now available. Android users can download
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- Android
- Google Play
- mobile alerts
- app release
---

# Echobell for Android is now available
Expand Down
6 changes: 6 additions & 0 deletions content/blog/echobell-android-release.zh.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Echobell Android 版已发布。现在 Android 用户可以通过
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- Android
- Google Play
- mobile alerts
- app release
---

# Echobell Android 版已发布
Expand Down
6 changes: 6 additions & 0 deletions content/blog/echobell-is-here.de.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Echobell ist eine datenschutzfreundliche mobile App für sofortige
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- product launch
- instant alerts
- push notifications
- announcement
---

# Echobell vorstellen
Expand Down
6 changes: 6 additions & 0 deletions content/blog/echobell-is-here.es.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Echobell es una app de alertas instantáneas para iOS que prioriza
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- product launch
- instant alerts
- push notifications
- announcement
---

# Presentamos Echobell
Expand Down
6 changes: 6 additions & 0 deletions content/blog/echobell-is-here.fr.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Echobell est une application d'alertes instantanées pour iOS, ax
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- product launch
- instant alerts
- push notifications
- announcement
---

# Présentation d'Echobell
Expand Down
6 changes: 6 additions & 0 deletions content/blog/echobell-is-here.ja.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "EchobellはiOS向けのプライバシー重視の即時アラー
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- product launch
- instant alerts
- push notifications
- announcement
---

# Echobellのご紹介
Expand Down
6 changes: 6 additions & 0 deletions content/blog/echobell-is-here.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Echobell is a privacy-first instant alert app for mobile devices.
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- product launch
- instant alerts
- push notifications
- announcement
---

# Introducing Echobell
Expand Down
6 changes: 6 additions & 0 deletions content/blog/echobell-is-here.zh.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Echobell 是一款注重隐私的移动端即时提醒应用。通
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- product launch
- instant alerts
- push notifications
- announcement
---

# 介绍 Echobell
Expand Down
6 changes: 6 additions & 0 deletions content/blog/email-to-call-notification.de.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Leiten Sie dringende E-Mails an Echobell weiter und empfangen Sie
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- email to call
- email alerts
- phone call notification
- email trigger
---

Manche E-Mails müssen Sie erreichen, egal was Sie gerade tun – Produktionsvorfälle, Abrechnungsfehler, wichtige Absender. Mit Echobell können Sie diese E-Mails an einen Channel weiterleiten und als anrufähnliche Benachrichtigungen empfangen, die auch den Focus-Modus durchdringen.
Expand Down
6 changes: 6 additions & 0 deletions content/blog/email-to-call-notification.es.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Redirige correos urgentes a Echobell y recibe notificaciones en fo
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- email to call
- email alerts
- phone call notification
- email trigger
---

Algunos correos deben llegarte sin importar lo que estés haciendo — incidentes en producción, errores de facturación, remitentes VIP. Echobell te permite reenviar esos correos a un canal y entregarlos como notificaciones de llamada que atraviesan el modo de concentración (Focus).
Expand Down
6 changes: 6 additions & 0 deletions content/blog/email-to-call-notification.fr.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "Redirigez vos emails urgents vers Echobell et recevez des notifica
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- email to call
- email alerts
- phone call notification
- email trigger
---

Certains emails doivent vous parvenir quoi qu'il arrive — incidents de production, échecs de facturation, expéditeurs VIP. Echobell vous permet de transférer ces emails vers un canal et de les recevoir comme des notifications d'appel qui sonnent même en mode Concentration.
Expand Down
6 changes: 6 additions & 0 deletions content/blog/email-to-call-notification.ja.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ description: "緊急メールをEchobellに転送してiOSで着信スタイル
author: Nooc
authorAvatarLink: /images/avatars/nooc.webp
authorLink: https://nooc.me
tags:
- Echobell
- email to call
- email alerts
- phone call notification
- email trigger
---

本番インシデント、請求エラー、VIP送信者からのメールは、何をしていても必ず届く必要があります。Echobellを使えば、それらのメールをチャンネルに転送し、集中モードを突き破って着信スタイルの通知として受け取ることができます。
Expand Down
Loading
Loading