diff --git a/src/components/Sidebar.astro b/src/components/Sidebar.astro index bf55ab5..e8c20ce 100644 --- a/src/components/Sidebar.astro +++ b/src/components/Sidebar.astro @@ -12,6 +12,7 @@ love building things and learning new stuff.

- Blog + Blog (en) + Blog (es)
diff --git a/src/layouts/BlogLayout.astro b/src/layouts/BlogLayout.astro index f25bfcb..eb9b6f7 100644 --- a/src/layouts/BlogLayout.astro +++ b/src/layouts/BlogLayout.astro @@ -1,9 +1,9 @@ --- -const { frontmatter } = Astro.props; +const { frontmatter, lang } = Astro.props; --- - + @@ -15,7 +15,7 @@ const { frontmatter } = Astro.props; - - + + -
- - Fernando Araoz: le ブログ - - -
- { - frontmatter?.title && ( -

- {frontmatter.title} -

- ) - } - { - frontmatter?.pubDate && ( -

- Published: {frontmatter.pubDate} -

- ) - } - { - frontmatter?.image && ( -
- {frontmatter.image.alt} -
- {frontmatter.image.caption} -
-
- ) - } +
+ +
+
+ { + frontmatter?.title && ( +

+ {frontmatter.title} +

+ ) + } + { + frontmatter?.pubDate && ( +

+ Published: {frontmatter.pubDate} +

+ ) + } + { + frontmatter?.image && ( +
+ {frontmatter.image.alt} +
+ {frontmatter.image.caption} +
+
+ ) + } +
-
- +
+ +
+ +
- -
diff --git a/src/pages/blog/go-1.md b/src/pages/blog/en/go-1.md similarity index 99% rename from src/pages/blog/go-1.md rename to src/pages/blog/en/go-1.md index 1e2233d..506f223 100644 --- a/src/pages/blog/go-1.md +++ b/src/pages/blog/en/go-1.md @@ -1,5 +1,5 @@ --- -layout: ../../layouts/BlogLayout.astro +layout: ../../../layouts/BlogLayout.astro title: Golang first impressions description: First thoughts after using a little bit of Golang pubDate: "2024-05-25" diff --git a/src/pages/blog/index.astro b/src/pages/blog/en/index.astro similarity index 66% rename from src/pages/blog/index.astro rename to src/pages/blog/en/index.astro index 9fb5f67..b9bbce7 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/en/index.astro @@ -1,5 +1,5 @@ --- -import BlogLayout from "../../layouts/BlogLayout.astro"; +import BlogLayout from "../../../layouts/BlogLayout.astro"; --- @@ -13,12 +13,12 @@ import BlogLayout from "../../layouts/BlogLayout.astro";
  • - + The responsible stack
  • - + Golang first impressions
  • diff --git a/src/pages/blog/responsible-stack.md b/src/pages/blog/en/responsible-stack.md similarity index 99% rename from src/pages/blog/responsible-stack.md rename to src/pages/blog/en/responsible-stack.md index f4b7069..8e9c1c7 100644 --- a/src/pages/blog/responsible-stack.md +++ b/src/pages/blog/en/responsible-stack.md @@ -1,5 +1,5 @@ --- -layout: ../../layouts/BlogLayout.astro +layout: ../../../layouts/BlogLayout.astro title: The responsible tech stack description: tech stack pubDate: "2024-05-20" diff --git a/src/pages/blog/es/index.astro b/src/pages/blog/es/index.astro new file mode 100644 index 0000000..4b0f676 --- /dev/null +++ b/src/pages/blog/es/index.astro @@ -0,0 +1,24 @@ +--- +import BlogLayout from "../../../layouts/BlogLayout.astro"; +--- + + +

    Blog en Español

    + +

    Carita feliz :D

    + +

    Posts:

    + + +
    \ No newline at end of file diff --git a/tailwind.config.mjs b/tailwind.config.mjs index 224c46b..b08173c 100644 --- a/tailwind.config.mjs +++ b/tailwind.config.mjs @@ -10,6 +10,7 @@ export default { }, fontFamily: { "etoile": ["'Iosevka Etoile Web'", "serif"], + "display": ["'Outfit'", "sans-serif"], } }, },