Skip to content

Commit 0fb1b7b

Browse files
Merge pull request #2 from underground0930/issue-1
#1 robots, canonical の項目を追加
2 parents 6628de8 + 23b34cd commit 0fb1b7b

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

public/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "metaCheckMan",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"manifest_version": 3,
55
"description": "metaデータのチェック",
66
"host_permissions": ["<all_urls>"],

src/variables.ts

+13
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ export const defaultMetaKeys: { [key: string]: string } = {
44
charset: "1",
55
keywords: "1",
66
description: "1",
7+
robots: "1",
78
shortcut: "1",
89
icon: "1",
10+
canonical: "1",
911
"apple-touch-icon": "1",
1012
"og:site_name": "1",
1113
"og:title": "1",
@@ -53,6 +55,11 @@ export const metaList: {
5355
attribute: "content",
5456
group: "",
5557
},
58+
robots: {
59+
selector: "meta[name='robots']",
60+
attribute: "content",
61+
group: "",
62+
},
5663
shortcut: {
5764
selector: "link[rel*='shortcut']",
5865
attribute: "href",
@@ -71,6 +78,12 @@ export const metaList: {
7178
type: "link",
7279
group: "",
7380
},
81+
canonical: {
82+
selector: "link[rel*='canonical']",
83+
attribute: "href",
84+
type: "link",
85+
group: "",
86+
},
7487
"og:site_name": {
7588
selector: "meta[property='og:site_name']",
7689
attribute: "content",

0 commit comments

Comments
 (0)