Chirpy theme 警告「apple-mobile-web-app-capable is deprecated」
なんか警告が出てる
違うところのデバッグのためにF12を押したら、consoleに知らん警告がいた。
<meta name="apple-mobile-web-app-capable" content="yes"> is deprecated. Please include <meta name="mobile-web-app-capable" content="yes">
これを直すだけ。
言うとおりにすればいいんだろうけどどこに書いてあるの問題
<meta>タグってことは<head>に入ってるんだろうなと読む。
テーマのレイアウトが基本的に/_layouts/default.htmlから作られていくようなのと、どのページでも出るので/_layouts/default.htmlが怪しい。
/_layouts/default.htmlを見ると<html>の後{% include head.html %} とか言った後すぐ<body>が始まっているので<head>とその中身はもろもろ /_includes/head.htmlに入っていそう。
/_includes/head.htmlを開くと本当に<head>タグとその子供たちだったので、ここでapple-mobile-web-app-capableを検索。5行目がヒット。
1
<meta name="apple-mobile-web-app-capable" content="yes">
ここを「こっち使えよな」って言われてるほうに書き換える。
1
2
- <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="mobile-web-app-capable" content="yes">
jekyll sして確認。警告がなくなった。
This post is licensed under
CC BY 4.0
by the author.