Skip to content

Commit

Permalink
docs: Subscribe links on blog pages, x link in footer
Browse files Browse the repository at this point in the history
  • Loading branch information
amannn committed Oct 30, 2024
1 parent eef6ab1 commit e1e10a6
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 8 deletions.
4 changes: 4 additions & 0 deletions docs/src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ export default function Footer() {
<FooterLink href="/blog">Blog</FooterLink>
</div>
<div>
<FooterLink href={config.xUrl} target="_blank">
X / Twitter
</FooterLink>
<FooterSeparator />
<FooterLink href={config.githubUrl} target="_blank">
GitHub
</FooterLink>
Expand Down
6 changes: 6 additions & 0 deletions docs/src/components/StayUpdated.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<hr className="my-8" />

**Stay in the loop:**

- [GitHub releases](https://github.com/amannn/next-intl/releases)
- [X (Jan Amann)](https://twitter.com/jamannnnnn)
3 changes: 2 additions & 1 deletion docs/src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ module.exports = {
baseUrl: process.env.VERCEL_PROJECT_PRODUCTION_URL
? 'https://' + process.env.VERCEL_PROJECT_PRODUCTION_URL
: 'http://localhost:3000',
githubUrl: 'https://github.com/amannn/next-intl'
githubUrl: 'https://github.com/amannn/next-intl',
xUrl: 'https://x.com/jamannnnnn'
};
3 changes: 3 additions & 0 deletions docs/src/pages/blog/date-formatting-nextjs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: Reliable date formatting in Next.js
---

import {Tweet} from 'react-tweet';
import StayUpdated from '@/components/StayUpdated.mdx';

# Reliable date formatting in Next.js

Expand Down Expand Up @@ -327,3 +328,5 @@ While the main focus of this post was on date formatting, there are a few relate
1. [API and JavaScript Date Gotcha's](https://www.solberg.is/api-dates) by [Jökull Solberg](https://x.com/jokull)
2. [The Problem with Time & Timezones](https://www.youtube.com/watch?v=-5wpm-gesOY) by [Computerphile](https://www.youtube.com/@Computerphile)
3. [`date-fns`](https://date-fns.org/) by [Sasha Koss](https://x.com/kossnocorp)

<StayUpdated />
2 changes: 1 addition & 1 deletion docs/src/pages/blog/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ import BlogPostLink from '@/components/BlogPostLink';
/>
</div>

Subscribe for updates: [Jan Amann on X](https://x.com/jamannnnnn)
Subscribe for updates: [X (Jan Amann)](https://x.com/jamannnnnn)
5 changes: 3 additions & 2 deletions docs/src/pages/blog/next-intl-3-0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ title: next-intl 3.0
---

import PartnerContentLink from '@/components/PartnerContentLink';
import StayUpdated from '@/components/StayUpdated.mdx';

# next-intl 3.0

Expand Down Expand Up @@ -189,6 +190,6 @@ A special thank you goes to <PartnerContentLink href="https://crowdin.com/">Crow

—Jan

---

(this post has been updated from an initial announcement for the 3.0 release candidate)

<StayUpdated />
7 changes: 3 additions & 4 deletions docs/src/pages/blog/next-intl-3-22.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ title: next-intl 3.22
subtitle: Incrementally moving forward
---

import StayUpdated from '@/components/StayUpdated.mdx';

# next-intl 3.22: Incrementally moving forward

<small>Oct 21, 2024 · by Jan Amann</small>
Expand Down Expand Up @@ -234,7 +236,4 @@ With these changes out of the way, users can upgrade to modern APIs at their own

—Jan

**Stay in the loop:**

- [GitHub releases](https://github.com/amannn/next-intl/releases)
- [X (Jan Amann)](https://twitter.com/jamannnnnn)
<StayUpdated />
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
title: How (not) to use translations outside of React components
---

import StayUpdated from '@/components/StayUpdated.mdx';

# How (not) to use translations outside of React components

<small>Apr 21, 2023 · by Jan Amann</small>
Expand Down Expand Up @@ -135,3 +137,5 @@ If you’ve been working with React for a longer time, you might have experience
By limiting ourselves to only format messages during render, we're in a similar situation: The rendered output of translated messages is always in sync with app state and we can rely on the app being consistent.

Related: ["How can I reuse messages?" in the structuring messages docs](/docs/usage/messages#structuring-messages)

<StayUpdated />

0 comments on commit e1e10a6

Please sign in to comment.