Skip to content

Commit

Permalink
multilang support
Browse files Browse the repository at this point in the history
  • Loading branch information
Obscuretone committed Dec 20, 2024
1 parent f0d046d commit ec51761
Show file tree
Hide file tree
Showing 49 changed files with 247 additions and 1,162 deletions.
19 changes: 19 additions & 0 deletions components/PostsList.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
// components/PostsList.js
import Link from 'next/link';

export default function PostsList({ title, posts }) {
return (
<section>
<h3>{title}</h3>
<ul>
{posts.map((post) => (
<li key={post.slug}>
<Link href={`/posts/${post.slug}`}>
{post.title}
</Link>
</li>
))}
</ul>
</section>
);
}
2 changes: 1 addition & 1 deletion out/404.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML" async=""></script><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js" async=""></script><title data-next-head="">404: This page could not be found</title><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com"/><link rel="preload" href="/_next/static/css/a4ddbd453f7c7890.css" as="style"/><link href="https://fonts.googleapis.com/css2?family=IM+Fell+DW+Pica+SC&amp;family=Inconsolata:[email protected]&amp;family=Overlock:ital,wght@0,400;0,700;1,400;1,700&amp;display=swap" rel="stylesheet"/><link href="https://fonts.googleapis.com/css2?family=Special+Elite&amp;display=swap" rel="stylesheet"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/default.min.css"/><link rel="stylesheet" href="/_next/static/css/a4ddbd453f7c7890.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-8cac0b4b405cede1.js" defer=""></script><script src="/_next/static/chunks/framework-e78c0713ba93908d.js" defer=""></script><script src="/_next/static/chunks/main-a91b4584597b0ba0.js" defer=""></script><script src="/_next/static/chunks/pages/_app-49d90b06ab33f322.js" defer=""></script><script src="/_next/static/chunks/pages/_error-fde50cb7f1ab27e0.js" defer=""></script><script src="/_next/static/GWQz3B_g-2ruySEoHcE3e/_buildManifest.js" defer=""></script><script src="/_next/static/GWQz3B_g-2ruySEoHcE3e/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">This page could not be found<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"GWQz3B_g-2ruySEoHcE3e","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8" data-next-head=""/><meta name="viewport" content="width=device-width" data-next-head=""/><script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/highlight.min.js" async=""></script><title data-next-head="">404: This page could not be found</title><link rel="preconnect" href="https://fonts.googleapis.com"/><link rel="preconnect" href="https://fonts.gstatic.com"/><link rel="preload" href="/_next/static/css/54a85384f8b3bc15.css" as="style"/><link href="https://fonts.googleapis.com/css2?family=IM+Fell+DW+Pica+SC&amp;family=Inconsolata:[email protected]&amp;family=Overlock:ital,wght@0,400;0,700;1,400;1,700&amp;display=swap" rel="stylesheet"/><link href="https://fonts.googleapis.com/css2?family=Special+Elite&amp;display=swap" rel="stylesheet"/><link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.8.0/styles/default.min.css"/><script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/3.2.2/es5/mml-chtml.min.js" integrity="sha512-4JUXEJCjFmGygcGTR/doRQ1Kw7uEYn+kBpiGWyVBzUQHtFSPQNm08E/lqo2/XJqiWKKV0nTpv1q8bHPPDL4n4Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script><link rel="stylesheet" href="/_next/static/css/54a85384f8b3bc15.css" data-n-g=""/><noscript data-n-css=""></noscript><script defer="" noModule="" src="/_next/static/chunks/polyfills-42372ed130431b0a.js"></script><script src="/_next/static/chunks/webpack-8cac0b4b405cede1.js" defer=""></script><script src="/_next/static/chunks/framework-e78c0713ba93908d.js" defer=""></script><script src="/_next/static/chunks/main-a91b4584597b0ba0.js" defer=""></script><script src="/_next/static/chunks/pages/_app-49d90b06ab33f322.js" defer=""></script><script src="/_next/static/chunks/pages/_error-fde50cb7f1ab27e0.js" defer=""></script><script src="/_next/static/4-cxEAuwNyIafUYHtKYZJ/_buildManifest.js" defer=""></script><script src="/_next/static/4-cxEAuwNyIafUYHtKYZJ/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">This page could not be found<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"4-cxEAuwNyIafUYHtKYZJ","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
1 change: 0 additions & 1 deletion out/_next/static/chunks/570-a2e8e1cdfbaa0b8d.js

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/chunks/pages/index-38cc8cfbb58badf6.js

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion out/_next/static/css/a4ddbd453f7c7890.css

This file was deleted.

2 changes: 1 addition & 1 deletion out/index.html

Large diffs are not rendered by default.

Loading

0 comments on commit ec51761

Please sign in to comment.