Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

added blog post

Steven Tey095ca6d2b446
diff --git a/app/dub.sh/blog/category/[slug]/page.tsx b/app/dub.sh/blog/category/[slug]/page.tsx
index 4f1e508d46..27b5f86ee9 100644
--- a/app/dub.sh/blog/category/[slug]/page.tsx
+++ b/app/dub.sh/blog/category/[slug]/page.tsx
@@ -51,6 +51,7 @@ export default async function BlogCategory({
const articles = await Promise.all(
allBlogPosts
.filter((post) => post.categories.includes(data.slug))
+ .sort((a, b) => b.publishedAt.localeCompare(a.publishedAt))
.map(async (post) => ({
...post,
blurDataURL: await getBlurDataURL(post.image),
diff --git a/app/ui/content/mdx.tsx b/app/ui/content/mdx.tsx
index d914a6677e..01b61a6b0c 100644
--- a/app/ui/content/mdx.tsx
+++ b/app/ui/content/mdx.tsx
@@ -5,11 +5,16 @@ import MDXTweet from "#/ui/tweet";
import { Tweet as TweetProps } from "react-tweet/api";
import { cn } from "#/lib/utils";
import "react-medium-image-zoom/dist/styles.css";
-import { HELP_CATEGORIES, getPopularArticles } from "#/lib/constants/content";
+import {
+ HELP_CATEGORIES,
+ POPULAR_ARTICLES,
+ getPopularArticles,
+} from "#/lib/constants/content";
import ArticleLink from "./article-link";
import CategoryCard from "./category-card";
import { ListChecks } from "lucide-react";
import ZoomImage from "./zoom-image";
+import { allHelpPosts } from "contentlayer/generated";
const CustomLink = (props: any) => {
const href = props.href;
@@ -66,10 +71,13 @@ const components = {
{props.children}
</div>
),
- PopularArticles: () => (
+ HelpArticles: (props: { articles: string[] }) => (
<div className="not-prose grid gap-2 rounded-xl border border-gray-200 bg-white p-4">
- {getPopularArticles().map((article) => (
- <ArticleLink key={article.slug} article={article} />
+ {(props.articles || POPULAR_ARTICLES).map((slug) => (
+ <ArticleLink
+ key={slug}
+ article={allHelpPosts.find((post) => post.slug === slug)!}
+ />
))}
</div>
),
diff --git a/content/blog/help-center.mdx b/content/blog/help-center.mdx
index 5c4fb10b79..c2102b8ba4 100644
--- a/content/blog/help-center.mdx
+++ b/content/blog/help-center.mdx
@@ -8,6 +8,7 @@ categories:
- company
related:
- introducing-dub
+ - migration-assistants
---
Today, we're excited to launch the [Dub Help Center](/help) – a one-stop shop for all your Dub-related questions.
@@ -22,7 +23,7 @@ The Help Center is a collection of articles that cover the most common questions
Here are some of the popular articles on the Help Center:
-<PopularArticles />
+<HelpArticles />
We've also created categories to help you find the articles you're looking for:
diff --git a/content/blog/introducing-dub.mdx b/content/blog/introducing-dub.mdx
index 7d449d8abb..21cbd98020 100644
--- a/content/blog/introducing-dub.mdx
+++ b/content/blog/introducing-dub.mdx
@@ -8,6 +8,7 @@ categories:
- company
related:
- help-center
+ - migration-assistants
---
Introducing Dub – an open-source link-management tool with built-in analytics and free custom domains.
diff --git a/content/blog/migration-assistants.mdx b/content/blog/migration-assistants.mdx
new file mode 100644
index 0000000000..8cd1f896a5
--- /dev/null
+++ b/content/blog/migration-assistants.mdx
@@ -0,0 +1,73 @@
+---
+title: Dub Migration Assistants
+publishedAt: 2023-08-04
+summary: We've added migration assistants for Bitly and Short.io to help you migrate your links to Dub in a few clicks.
+image: https://d2vwwcvoksz7ty.cloudfront.net/blog/migration-assistants.png
+author: steventey
+categories:
+ - company
+related:
+ - help-center
+ - introducing-dub
+---
+
+Today, we're excited to announce that we've added migration assistants for Bitly and Short.io to help you migrate your links to Dub in a few clicks.
+
+## What is Dub?
+
+Dub is the link management tool for modern marketing teams. With Dub, you can create, share, and track short links using your own custom domain.
+
+<Image
+ alt="Screenshot of a Dub dashboard"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/blog/dub-dashboard.png"
+ width={1359}
+ height={995}
+/>
+
+Ever since our [launch](introducing-dub), we've received countless requests from our users to add migration assistants for other URL shorteners – more notably Bitly and Short.io.
+
+## Why migrate to Dub?
+
+Dub is built with the modern marketer in mind. We've built Dub to be the best link management tool for founders and marketing teams, with a sleek and intuitive interface, and powerful features like:
+
+- **Powerful link builder**: Our [link builder](how-to-create-link) comes with features like UTM builder, device targeting, password protection, expiration dates, and more.
+- **Custom domains** – With Dub, you can create short links with your own [custom domain](how-to-add-custom-domain) – free of charge – for better brand recognition.
+- **Custom social media cards**: Dub is the only link management tool that lets you [customize the social media cards](how-to-create-link#custom-social-media-cards) for your links, so you can have full control over how your links look when shared on social media.
+
+Learn more about Dub by reading some of our help articles below.
+
+<HelpArticles
+ articles={["what-is-dub", "how-to-create-link", "how-to-add-custom-domain"]}
+/>
+
+## Bitly migration assistant
+
+If you're currently using Bitly, you can now migrate your links to Dub in 2-3 clicks using our Bitly migration assistant.
+
+<Image
+ alt="Using the Bitly migration assistant to automatically retrieve and migrate your Bitly links to Dub"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/imported-bitly-groups.png"
+ width={1087}
+ height={718}
+/>
+
+All you need to do is sign in with your Bitly account – behind the scenes, we'll automatically retrieve all your links from Bitly and import them to Dub.
+
+<HelpArticles articles={["migrating-from-bitly"]} />
+
+## Short.io migration assistant
+
+Alternatively, if you're a Short.io user, you can also migrate your links to Dub using our Short.io migration assistant.
+
+<Image
+ alt="Domains found in Short.io and their respective number of links"
+ src="https://d2vwwcvoksz7ty.cloudfront.net/help/imported-short-domains.png"
+ width={956}
+ height={594}
+/>
+
+With the Short.io migration assistant, all you need to do is enter your [Short.io API key](/help/article/migrating-from-short#step-1-get-your-shortio-api-key), choose the domain you want imported, and we'll handle the rest!
+
+<HelpArticles articles={["migrating-from-short"]} />
+
+We're hoping this will make it easier for you to migrate your links to Dub. If you have any questions or run into any issues, feel free to [send us an email](mailto:[email protected]?subject=Question%20about%20migrating%20to%20Dub) or [reach out to us on Twitter](https://twitter.com/dubdotsh) and we'll be happy to help.
diff --git a/content/help/what-is-dub.mdx b/content/help/what-is-dub.mdx
index d3bb3270b4..1c85b3a4b6 100644
--- a/content/help/what-is-dub.mdx
+++ b/content/help/what-is-dub.mdx
@@ -25,10 +25,10 @@ Dub is the link management tool for modern marketing teams. With Dub, you can cr
If you are a marketer or a business owner, Dub has the perfect suite of features for you to better manage your marketing campaigns with short links:
-- **Powerful link builder**: Our [link builder](how-to-create-link) comes with features like UTM builder, device targeting, password protection, expiration dates, and more.
+- **Powerful link builder**: Our [link builder](how-to-create-link) comes with features like [UTM builder](how-to-create-link#utm-builder), [device targeting](how-to-create-link#device-targeting-ios--android), [password protection](how-to-create-link#password-protection), [expiration dates](how-to-create-link#expiration-date), and more.
- **Use your own domain**: With Dub, you can create short links with your own [custom domain](how-to-add-custom-domain) – free of charge – for better brand recognition.
- **Analytics that matter**: We provide you with powerful analytics for your links, including geolocation, device, browser, and referrer information.
-- **Custom social media cards**: Dub is the only link management tool that lets you customize the social media cards for your links, so you can have full control over how your links look when shared on social media.
+- **Custom social media cards**: Dub is the only link management tool that lets you [customize the social media cards](how-to-create-link#custom-social-media-cards) for your links, so you can have full control over how your links look when shared on social media.
- **Free QR code generator**: QR codes and short links are like peas in a pod. That's why we've built a QR code generator right into Dub that lets you generate branded QR codes for your links.
- **Team collaboration**: Dub is built for teams. You can [invite your teammates](how-to-invite-teammates) to your account for free and manage your links together.