Update website domain
This commit is contained in:
@@ -71,10 +71,10 @@ There are many options:
|
||||
### Adding Feeds
|
||||
|
||||
Now you need to search for the RSS URL on your favorite website, like
|
||||
[this one](https://juancman.dev/rss.xml)!
|
||||
[this one](https://juanmanzanero.com/feed.xml)!
|
||||
|
||||
```
|
||||
https://juancman.dev/rss.xml
|
||||
https://juanmanzanero.com/rss.xml
|
||||
```
|
||||
|
||||
If you open it, you'll get a weird page with code similar to HTML.
|
||||
@@ -108,7 +108,7 @@ https://youtube.com/feeds/videos.xml?channel_id=[CHANNEL ID]
|
||||
|
||||
### My Favorite Feeds
|
||||
|
||||
- [juancman.dev (obviously!)](https://www.juancman.dev/rss.xml)
|
||||
- [juanmanzanero.com (obviously!)](https://juanmanzanero.com/feed.xml)
|
||||
- [Astronomic Picture of the Day (apod)](https://apod.com/feed.rss)
|
||||
- [Earth Science Picture of the Day (epod)](https://feeds2.feedburner.com/EarthSciencePictureoftheDay)
|
||||
- [Erick Murphy (cool guy)](https://ericmurphy.xyz/index.xml)
|
||||
|
@@ -12,7 +12,7 @@ rss: true
|
||||

|
||||
_Tech stack used in this tutorial_
|
||||
|
||||
[GitHub repo](https://github.com/juancmandev/fullstack-app)
|
||||
[GitHub repo](https://github.com/juanmanzanerod/fullstack-app)
|
||||
|
||||
## Content
|
||||
|
||||
|
@@ -12,7 +12,7 @@ rss: true
|
||||

|
||||
_Next Intl Blog Template banner_
|
||||
|
||||
[GitHub](https://github.com/juancmandev/next-intl-blog-template)
|
||||
[GitHub](https://github.com/juanmanzanerod/next-intl-blog-template)
|
||||
|
||||
[Website](https://next-intl-blog-template.vercel.app/en)
|
||||
|
||||
@@ -145,4 +145,4 @@ export default async function Page(props: TPage) {
|
||||
}
|
||||
```
|
||||
|
||||
[You can fork this template here](https://github.com/juancmandev/next-intl-blog-template)
|
||||
[You can fork this template here](https://github.com/juanmanzanerod/next-intl-blog-template)
|
||||
|
@@ -12,7 +12,7 @@ rss: true
|
||||

|
||||
_Tech stack usado en este tutorial_
|
||||
|
||||
[GitHub repo](https://github.com/juancmandev/fullstack-app)
|
||||
[GitHub repo](https://github.com/juanmanzanerod/fullstack-app)
|
||||
|
||||
# Contenido
|
||||
|
||||
@@ -1198,4 +1198,3 @@ Como puedes ver, crear una app fullstack con Next.js es muy fácil.
|
||||
|
||||
Por supuesto, se puede mejorar, agregando validación del lado del servidor para los inputs, agregando paginación para los posts en el home, etc.
|
||||
|
||||
Si quieres que trabajemos juntos, envíame un correo a [contact@juancman.dev](mailto:contact@juancman.dev).
|
||||
|
@@ -12,7 +12,7 @@ rss: true
|
||||

|
||||
_Next Intl Blog Template banner_
|
||||
|
||||
[GitHub](https://github.com/juancmandev/next-intl-blog-template)
|
||||
[GitHub](https://github.com/juanmanzanerod/next-intl-blog-template)
|
||||
|
||||
[Website](https://next-intl-blog-template.vercel.app/en)
|
||||
|
||||
@@ -35,9 +35,9 @@ Este template es una extensión de [next-intl](https://next-intl-docs.vercel.app
|
||||
Puedes agregar o remover locales en el archivo `src/lang/locales.ts`.
|
||||
|
||||
```ts title="src/lang/locales.ts"
|
||||
export type locales = "en" | "es";
|
||||
export type locales = 'en' | 'es';
|
||||
|
||||
export const localesList: locales[] = ["en", "es"];
|
||||
export const localesList: locales[] = ['en', 'es'];
|
||||
```
|
||||
|
||||
Solo agrega o remueve un locale de la constante `locales`, y agrega o remueve el locale de la lista.
|
||||
@@ -48,7 +48,7 @@ La lista es usada para la generación de rutas estáticas en
|
||||
`src/app/[locale]/layout.tsx`.
|
||||
|
||||
```ts title="src/app/[locale]/layout.tsx"
|
||||
import { localesList } from "@/lang/locales";
|
||||
import { localesList } from '@/lang/locales';
|
||||
|
||||
export function generateStaticParams() {
|
||||
return localesList.map((locale) => ({ locale }));
|
||||
@@ -61,7 +61,7 @@ Recuerda actualizar el matcher en `src/middleware.ts`.
|
||||
//...
|
||||
|
||||
export const config = {
|
||||
matcher: ["/", "/(en|es)/:path*"],
|
||||
matcher: ['/', '/(en|es)/:path*'],
|
||||
};
|
||||
```
|
||||
|
||||
@@ -76,15 +76,15 @@ Dentro crea el archivo .mdx con un nombre único, el nombre será usado como slu
|
||||
Para crear una sección de blog, usarás la función _getAllContent_ en tu ruta, por ejemplo: `src/app/[locale]/blog/[slug]/page.tsx`.
|
||||
|
||||
```tsx title="src/app/[locale]/blog/[slug]/page.tsx"
|
||||
import { Mdx } from "@/components";
|
||||
import { TParamsLocale, TPage, TSlugLang } from "@/types";
|
||||
import { Metadata } from "next";
|
||||
import { getAllContent, getContent } from "@/utils/getContent";
|
||||
import { Mdx } from '@/components';
|
||||
import { TParamsLocale, TPage, TSlugLang } from '@/types';
|
||||
import { Metadata } from 'next';
|
||||
import { getAllContent, getContent } from '@/utils/getContent';
|
||||
|
||||
export async function generateStaticParams(
|
||||
props: TParamsLocale,
|
||||
props: TParamsLocale
|
||||
): Promise<TSlugLang[]> {
|
||||
const blogs = await getAllContent(props.params.locale, "blog");
|
||||
const blogs = await getAllContent(props.params.locale, 'blog');
|
||||
|
||||
if (!blogs) return [];
|
||||
|
||||
@@ -105,7 +105,7 @@ Puedes obtener la metadata del archivo `.mdx` también.
|
||||
//...
|
||||
|
||||
export async function generateMetadata(props: TPage): Promise<Metadata> {
|
||||
const blog = await getContent(props.params.locale, "blog", props.params.slug);
|
||||
const blog = await getContent(props.params.locale, 'blog', props.params.slug);
|
||||
|
||||
if (!blog) return {};
|
||||
|
||||
@@ -124,7 +124,7 @@ Entonces, renderiza el contenido usando el componente _Mdx_.
|
||||
//...
|
||||
|
||||
export default async function Page(props: TPage) {
|
||||
const post = await getContent(props.params.locale, "blog", props.params.slug);
|
||||
const post = await getContent(props.params.locale, 'blog', props.params.slug);
|
||||
|
||||
if (!post) return null;
|
||||
|
||||
@@ -132,8 +132,4 @@ export default async function Page(props: TPage) {
|
||||
}
|
||||
```
|
||||
|
||||
[Puedes hacer un fork de este template aquí](https://github.com/juancmandev/next-intl-blog-template)
|
||||
|
||||
## Contacto
|
||||
|
||||
Si te interesa **trabajar juntos** en un website con internacionalización con Next.js, envíame un correo a [contact@juancman.dev](mailto:contact@juancman.dev)
|
||||
[Puedes hacer un fork de este template aquí](https://github.com/juanmanzanerod/next-intl-blog-template)
|
||||
|
@@ -67,10 +67,10 @@ mi opción favorita como ~~Pecador~~ usuario de Apple
|
||||
|
||||
### Agregando Feeds
|
||||
|
||||
Ahora debes buscar por el link RSS de tu website favorito, ¡[como este](https://juancman.dev/es/rss.xml)!
|
||||
Ahora debes buscar por el link RSS de tu website favorito, ¡[como este](https://juanmanzanero.com/es/feed.xml)!
|
||||
|
||||
```
|
||||
https://juancman.dev/es/rss.xml
|
||||
https://juanmanzanero.com/es/feed.xml
|
||||
```
|
||||
|
||||
Si lo abres, verás una página rara con código similar a HTML.
|
||||
@@ -102,7 +102,7 @@ https://youtube.com/feeds/videos.xml?channel_id=[CHANNEL ID]
|
||||
|
||||
### Mis Feeds Favoritos
|
||||
|
||||
- [juancman.dev (¡obviamente!)](https://www.juancman.dev/es/rss.xml)
|
||||
- [juanmanzanero.com (¡obviamente!)](https://juanmanzanero.com/es/feed.xml)
|
||||
- [Astronomic Picture of the Day (apod)](https://apod.com/feed.rss)
|
||||
- [Earth Science Picture of the Day (epod)](https://feeds2.feedburner.com/EarthSciencePictureoftheDay)
|
||||
- [Erick Murphy](https://ericmurphy.xyz/index.xml)
|
||||
|
@@ -13,10 +13,10 @@ Just change `[at]` for `@` and `[dot]` for `.`. This is for preventing web
|
||||
crawlers from getting my email:
|
||||
|
||||
```
|
||||
contact[at]juancman[dot]dev
|
||||
contact[at]juanmanzanero[dot]com
|
||||
```
|
||||
|
||||
You may [download my PGP key](/publickey.contact@juancman.dev-80e0fe0b452a2fb48511be1b9fb094f3c57bae57.asc) to validate my emails.
|
||||
You may [download my PGP key](/publickey.contact@juanmanzanero.com-bc93bba27f657fc49730741013ec4a1443f077a9.asc) to validate my emails.
|
||||
|
||||
## Social media
|
||||
|
||||
@@ -26,5 +26,5 @@ If you want to talk about contracting me, you may check my career:
|
||||
|
||||
You may check my GitHub, but I have also my own Gitea instance:
|
||||
|
||||
- [GitHub](https://github.com/juancmandev)
|
||||
- [Gitea](https://git.juancman.dev/juancmandev)
|
||||
- [GitHub](https://github.com/juanmanzanerod)
|
||||
- [Gitea](https://git.juanmanzanero.com/juanmanzanero)
|
||||
|
@@ -13,18 +13,18 @@ Solo cambia `[at]` por `@` y `[dot]` por `.`. Esto es para evitar que web
|
||||
crawlers obtengan mi email.
|
||||
|
||||
```
|
||||
contact[at]juancman[dot]dev
|
||||
contact[at]juanmanzanero[dot]com
|
||||
```
|
||||
|
||||
Puedes [descargar mi PGP key](/publickey.contact@juancman.dev-80e0fe0b452a2fb48511be1b9fb094f3c57bae57.asc) para validar mis emails.
|
||||
Puedes [descargar mi PGP key](/publickey.contact@juanmanzanero.com-bc93bba27f657fc49730741013ec4a1443f077a9.asc) para validar mis emails.
|
||||
|
||||
## Redes sociales
|
||||
|
||||
Si quieres hablar sobre contratarme, puedes revisar mi carrera:
|
||||
|
||||
- [LinkedIn](https://www.linkedin.com/in/juancmandev)
|
||||
- [LinkedIn](https://www.linkedin.com/in/juanmanzanerod)
|
||||
|
||||
Puedes revisar mi GitHub, aunque igual tengo mi propia instancia de Gitea:
|
||||
|
||||
- [GitHub](https://github.com/juancmandev)
|
||||
- [Gitea](https://git.juancman.dev/juancmandev)
|
||||
- [GitHub](https://github.com/juanmanzanerod)
|
||||
- [Gitea](https://git.juanmanzanero.com/juanmanzanero)
|
||||
|
Reference in New Issue
Block a user