mirror of
https://github.com/yude-jp/yude.jp
synced 2024-12-22 20:20:09 +09:00
Multilingual suport (hcunews/)
This commit is contained in:
parent
2e4456cb91
commit
9ad748affa
17
docs/hcunews/en.md
Normal file
17
docs/hcunews/en.md
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
This is **unofficial** account and there's no guarantee of accuracy.
|
||||||
|
|
||||||
|
# Administrator
|
||||||
|
Run by [yude](https://yude.jp/profile), a student of Faculty of Information Science, Hiroshima City University, 2nd grade.
|
||||||
|
## Contact
|
||||||
|
* E-mail: [admin@yude.jp](mailto:admin@yude.jp)
|
||||||
|
* Twitter: [@yude_jp](https://twitter.com/yude_jp)
|
||||||
|
|
||||||
|
# How it works
|
||||||
|
Microsoft Power Automate get the RSS feed from Hiroshima City University Website and tweet when a new article is available. \
|
||||||
|
We are monitoring the following URLs:
|
||||||
|
* [お知らせ|広島市立大学](https://www.hiroshima-cu.ac.jp/news/)
|
||||||
|
* [お知らせ(在学生・保護者の方へ)|広島市立大学](https://www.hiroshima-cu.ac.jp/news_student/)
|
||||||
|
* [在学生・保護者の方へ|広島市立大学](https://www.hiroshima-cu.ac.jp/student/)
|
||||||
|
|
||||||
|
# Related links
|
||||||
|
* [広島市立大学](https://www.hiroshima-cu.ac.jp/)
|
@ -4,7 +4,8 @@ import { useRouter } from 'next/router'
|
|||||||
import React from "react"
|
import React from "react"
|
||||||
import ReactMarkdown from "react-markdown"
|
import ReactMarkdown from "react-markdown"
|
||||||
import gfm from 'remark-gfm';
|
import gfm from 'remark-gfm';
|
||||||
import input from '../docs/hcunews.md'
|
import ja from '../docs/hcunews/ja.md'
|
||||||
|
import en from '../docs/hcunews/en.md'
|
||||||
|
|
||||||
export default function Tos(props) {
|
export default function Tos(props) {
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
@ -15,7 +16,11 @@ export default function Tos(props) {
|
|||||||
<Layout title={hcunews}>
|
<Layout title={hcunews}>
|
||||||
<div>
|
<div>
|
||||||
<h1>{hcunews}</h1>
|
<h1>{hcunews}</h1>
|
||||||
<ReactMarkdown plugins={[gfm]} children={input} />
|
{lang === 'ja' ? (
|
||||||
|
<ReactMarkdown plugins={[gfm]} children={ja} />
|
||||||
|
) : (
|
||||||
|
<ReactMarkdown plugins={[gfm]} children={en} />
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user