Skip to content

Pull request for issue #12 #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
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
7 changes: 7 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,11 @@ export default defineConfig({
},
],
},
i18n: {
defaultLocale: 'en',
locales: ['en', 'es'],
routing: {
prefixDefaultLocale: false, // This means 'en' will not have a prefix, e.g. /about instead of /en/about
}
}
});
10 changes: 10 additions & 0 deletions src/content/jobs/reboot-studio.es.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Título en español: Product Engineer
company: Reboot Studio
location: Mexico City
from: 2022
to: 2022 # Use 'Now' if the job is still active
url: https://reboot.studio
---

<p>Contenido en español.</p>
3 changes: 3 additions & 0 deletions src/content/links/bluesky.es.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
label: Etiqueta en español: Bluesky
name: coderdiaz.com
url: https://bsky.app/profile/coderdiaz.com
3 changes: 3 additions & 0 deletions src/content/links/email.es.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
label: Etiqueta en español: Email
name: [email protected]
url: mailto:[email protected]
3 changes: 3 additions & 0 deletions src/content/links/github.es.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
label: Etiqueta en español: GitHub
name: coderdiaz
url: https://github.com/coderdiaz
3 changes: 3 additions & 0 deletions src/content/links/website.es.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
label: Etiqueta en español: Website
name: coderdiaz.com
url: https://coderdiaz.com
10 changes: 10 additions & 0 deletions src/content/pages/homepage/index.es.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Título en español: Javier Diaz — Software Engineer
seo:
title: Título en español: Javier Diaz — Software Engineer
description: Descripción en español: Hey I'm Javier, a software engineer passionate about interface design and web experiences
type: website
keywords: Palabras clave: keyword, example, demo cv folio
---

<p>Contenido en español.</p>
12 changes: 12 additions & 0 deletions src/content/posts/example-post/index.es.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
title: Título en español: Example Post
date: 2021-01-01
image: ./meta.jpg
seo:
title: Título en español: Example Post with Code
description: Descripción en español: Demo example for write posts
type: article
keywords: Palabras clave: blog code, example shiki
---

<p>Contenido en español.</p>
9 changes: 9 additions & 0 deletions src/content/talks/ccoss.es.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Título en español: Start with open-source
year: 2021
event: CCOSS
location: Mexico City
url: https://www.youtube.com/watch?v=I8kUR9Zwr6s
---

<p>Contenido en español.</p>
3 changes: 2 additions & 1 deletion src/pages/writing/[...slug].astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import BaseLayout from '@/layouts/BaseLayout.astro';
import { DEFAULT_CONFIGURATION } from '@/lib/constants';
import { Image } from 'astro:assets';
import { getCollection, render } from 'astro:content';
import { getRelativeLocaleUrl } from 'astro:i18n';

export async function getStaticPaths() {
const entries = await getCollection('posts');
Expand All @@ -23,7 +24,7 @@ const { Content } = await render(entry);
<Container as='section'>
<article class="flex flex-col gap-6">
<div class="flex flex-col gap-2">
<a href="/writing" class="transition-all text-muted-foreground hover:text-foreground pb-4 text-sm w-max">
<a href={getRelativeLocaleUrl('writing')} class="transition-all text-muted-foreground hover:text-foreground pb-4 text-sm w-max">
Back to writing
</a>
<div class="flex flex-col gap-1.5">
Expand Down