mirror of
https://github.com/yude-jp/yude.jp
synced 2025-10-12 11:18:36 +09:00
Add hcunews
This commit is contained in:
22
pages/hcunews.js
Normal file
22
pages/hcunews.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import Layout from "./components/Layout"
|
||||
import useTranslation from 'next-translate/useTranslation'
|
||||
import { useRouter } from 'next/router'
|
||||
import React from "react"
|
||||
import ReactMarkdown from "react-markdown"
|
||||
import gfm from 'remark-gfm';
|
||||
import input from '../docs/hcunews.md'
|
||||
|
||||
export default function Tos(props) {
|
||||
const router = useRouter()
|
||||
const { locale, locales, defaultLocale, pathname } = router
|
||||
const { t, lang } = useTranslation("hcunews")
|
||||
const hcunews = t('hcunews')
|
||||
return(
|
||||
<Layout title={hcunews}>
|
||||
<div>
|
||||
<h1>{hcunews}</h1>
|
||||
<ReactMarkdown plugins={[gfm]} children={input} />
|
||||
</div>
|
||||
</Layout>
|
||||
)
|
||||
}
|
Reference in New Issue
Block a user