diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-10-26 09:02:40 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-10-26 09:02:40 +0900 |
| commit | 58af4365e95dc1a86bbabdf46c9e4bd833f943fa (patch) | |
| tree | a4fc2d25e86fc58c7345a91032f3fb960ecba6d7 | |
| parent | v2747 (diff) | |
| download | misskey-58af4365e95dc1a86bbabdf46c9e4bd833f943fa.tar.gz misskey-58af4365e95dc1a86bbabdf46c9e4bd833f943fa.tar.bz2 misskey-58af4365e95dc1a86bbabdf46c9e4bd833f943fa.zip | |
[Client] Set description meta tag
| -rw-r--r-- | locales/en.yml | 2 | ||||
| -rw-r--r-- | locales/ja.yml | 2 | ||||
| -rw-r--r-- | src/web/app/init.js | 10 |
3 files changed, 13 insertions, 1 deletions
diff --git a/locales/en.yml b/locales/en.yml index 0d66c5c548..03d5306d3e 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -1,4 +1,6 @@ common: + misskey: "Note everything and share it others using Misskey." + time: unknown: "unknown" future: "future" diff --git a/locales/ja.yml b/locales/ja.yml index 023bac4d47..b640f0f248 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -1,4 +1,6 @@ common: + misskey: "Misskeyに何でも投稿して皆と共有しましょう。" + time: unknown: "なぞのじかん" future: "未来" diff --git a/src/web/app/init.js b/src/web/app/init.js index 2ddb66b3e7..cb661c2595 100644 --- a/src/web/app/init.js +++ b/src/web/app/init.js @@ -2,7 +2,7 @@ * App initializer */ -"use strict"; +'use strict'; import * as riot from 'riot'; import api from './common/scripts/api'; @@ -21,6 +21,14 @@ require('./common/tags'); console.info(`Misskey v${VERSION} (葵 aoi)`); +{ // Set description meta tag + const head = document.getElementsByTagName('head')[0]; + const meta = document.createElement('meta'); + meta.setAttribute('name', 'description'); + meta.setAttribute('content', '%i18n:common.misskey%'); + head.appendChild(meta); +} + document.domain = CONFIG.host; // Set global configuration |