Skip to content
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

フッターの表示年を変更した #124

Merged
merged 2 commits into from
May 23, 2024
Merged

フッターの表示年を変更した #124

merged 2 commits into from
May 23, 2024

Conversation

sh0go07
Copy link
Contributor

@sh0go07 sh0go07 commented May 20, 2024

close #94

@sh0go07 sh0go07 requested a review from mehm8128 May 20, 2024 08:38
Copy link
Member

@mehm8128 mehm8128 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https:/traPtitech/Ghost-Theme-2020/blob/6384c9f4a44ae3c1b326f4d569e296674bf5d97e/assets/js/app.js#L56
trap.jpも同じような感じで入れてるので問題なさそうです
ちょっと調べた感じ、「発行年-更新年」でもいいし、発行年だけでもいいらしいです(発行年って2015になるのか、公開する2024になるのかどっちなんだろ)

Comment on lines 2 to 3
const date = new Date()
const year = date.getFullYear()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nits
分けなくてもよさそうです

Suggested change
const date = new Date()
const year = date.getFullYear()
const updatedYear= new Date().getFullYear()

@mehm8128
Copy link
Member

@sh0go07
Copy link
Contributor Author

sh0go07 commented May 22, 2024

なるほど.....
そしたらフッターのとこの表示年はなくした方が良さそうですかね...?
traPのロゴの下に表示されるので表示してもいいかなって思ってるんですがどうでしょう?

@mehm8128
Copy link
Member

フロントで更新年を計算していいのか微妙だから消しておくのが無難、という話なだけで静的に設定しておくとかなら問題ないとは思います
ロゴに対して書いてるなら、発行年だけ書いておくのが現時点で一番よさそうな気がしています

@sh0go07
Copy link
Contributor Author

sh0go07 commented May 22, 2024

わかりました
2015-で表示する感じでいこうかと思います!

@sh0go07 sh0go07 requested a review from mehm8128 May 23, 2024 08:50
@sh0go07 sh0go07 merged commit 480866e into master May 23, 2024
6 checks passed
@sh0go07 sh0go07 deleted the fix/year branch May 23, 2024 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

フッターの表示年を修正する
2 participants