質問編集履歴

8

一部修正

2018/04/27 16:10

投稿

Development_mm
Development_mm

スコア6

test CHANGED
@@ -1 +1 @@
1
- 構造化マークアップを実装したい
1
+ Railsで構造化マークアップを実装したい
test CHANGED
@@ -122,7 +122,7 @@
122
122
 
123
123
  ```
124
124
 
125
- div class="XXX-inner #{YYY}" itemscope itemtype=http://schema.org/Hoge #itemscope~を追加時起きる
125
+ div class="XXX-inner #{YYY}" itemscope itemtype="http://schema.org/Hoge" #itemscope~を追加時起きる
126
126
 
127
127
  .XXX-header
128
128
 

7

一部修正

2018/04/27 16:10

投稿

Development_mm
Development_mm

スコア6

test CHANGED
File without changes
test CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
 
28
28
 
29
- Showing /Users/(略)/app/views/XXXs/_XXX_item.html.slim where line #XX raised:
29
+ Showing /Users/(略)/app/views/XXXs/_XXX_item.html.slim where line #XXX raised:
30
30
 
31
31
 
32
32
 
@@ -166,4 +166,4 @@
166
166
 
167
167
 
168
168
 
169
- itemscope itemtype=http://schema.org/Hogeを足すだけでネームエラーが起きます。
169
+ itemscope itemtype="http://schema.org/Hoge"を足すだけでネームエラーが起きます。

6

一部修正

2018/04/27 16:09

投稿

Development_mm
Development_mm

スコア6

test CHANGED
File without changes
test CHANGED
@@ -48,13 +48,13 @@
48
48
 
49
49
 
50
50
 
51
- script type=application/ld+json
51
+ script type="application/ld+json"
52
52
 
53
53
  {
54
54
 
55
- @context: http://schema.org,
55
+ "@context": "http://schema.org",
56
56
 
57
- @type: Hoge,
57
+ "@type": "Hoge",
58
58
 
59
59
  ...
60
60
 

5

一部修正

2018/04/27 16:08

投稿

Development_mm
Development_mm

スコア6

test CHANGED
File without changes
test CHANGED
@@ -156,7 +156,7 @@
156
156
 
157
157
  ### 試したこと(Microdata)
158
158
 
159
- クラスと同時に書いたから起きたエラーと想定し、タグを入れ子にして書いてもダメでした。
159
+ そんなわけないだろ、と思いつつもクラスと同時に書いたから起きたエラーと想定し、タグを入れ子にして書いてもダメでした。
160
160
 
161
161
  あとはなぜ起きたのか想定できず、お手上げ状態です。
162
162
 

4

一部修正

2018/04/27 16:04

投稿

Development_mm
Development_mm

スコア6

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,8 @@
1
1
  ### 前提・実現したいこと
2
2
 
3
3
 
4
+
5
+ こんにちは。初めての投稿です。
4
6
 
5
7
  プログラミング初心者としてとある企業でwebエンジニアをしております。
6
8
 
@@ -62,7 +64,7 @@
62
64
 
63
65
 
64
66
 
65
- ### 試したこと1
67
+ ### 試したこと1(JSON-LD)
66
68
 
67
69
 
68
70
 
@@ -78,7 +80,7 @@
78
80
 
79
81
 
80
82
 
81
- ### 試したこと2
83
+ ### 試したこと2(JSON-LD)
82
84
 
83
85
 
84
86
 
@@ -152,7 +154,7 @@
152
154
 
153
155
 
154
156
 
155
- ### 試したこと
157
+ ### 試したこと(Microdata)
156
158
 
157
159
  クラスと同時に書いたから起きたエラーと想定し、タグを入れ子にして書いてもダメでした。
158
160
 

3

一部変更

2018/04/27 16:00

投稿

Development_mm
Development_mm

スコア6

test CHANGED
File without changes
test CHANGED
@@ -70,7 +70,7 @@
70
70
 
71
71
 
72
72
 
73
- https://qiita.com/tkawa/items/8d8a509858aae03dba84
73
+ [JSON-LDとRails](https://qiita.com/tkawa/items/8d8a509858aae03dba84)
74
74
 
75
75
  こちらのamatsuda/jbとあるものがすごく参考になりそうなのですが、url先にあるGitHubだとviewsフォルダ内にはshow.jsonld.jbしかなく、普通のshow.htmlと並べて置けばいいのか、特別な宣言が必要なのかわかりませんでした。(あと、どう「できているか」確認すれば良いか分からない)
76
76
 
@@ -82,7 +82,7 @@
82
82
 
83
83
 
84
84
 
85
- https://webbu.jp/schemaorg-3290
85
+ [【検索エンジンにあなたのページの「情報」を伝える】リッチスニペット対策にもなる「構造化マークアップ」を実装しよう!](https://webbu.jp/schemaorg-3290)
86
86
 
87
87
  こちらに記載されているテストコードをgoogleの構造化データテストツールで検証してみました。
88
88
 

2

一部修正

2018/04/27 15:57

投稿

Development_mm
Development_mm

スコア6

test CHANGED
File without changes
test CHANGED
@@ -108,7 +108,7 @@
108
108
 
109
109
  NameError in XXXs#index
110
110
 
111
- Showing /Users/(略)/app/views/XXXs/_XXX_item.html.slim where line #XX raised:
111
+ Showing /Users/(略)/app/views/XXXs/_XXX_item.html.slim where line #XXX raised:
112
112
 
113
113
 
114
114
 
@@ -120,7 +120,7 @@
120
120
 
121
121
  ```
122
122
 
123
- div class="XXX-inner #{YYY}" __itemscope itemtype=”http://schema.org/Hoge”__ #斜体部を追加時起きる
123
+ div class="XXX-inner #{YYY}" itemscope itemtype=”http://schema.org/Hoge” #itemscope~を追加時起きる
124
124
 
125
125
  .XXX-header
126
126
 
@@ -140,7 +140,7 @@
140
140
 
141
141
  = link_to search_XXXs_path_by_conditions(feature: feature, AAA: XXX.AAA), class: 'XXXItem-label is-feature' do
142
142
 
143
- **= "#{feature.name}"** #error箇所
143
+ = "#{feature.name}" #error箇所
144
144
 
145
145
 
146
146
 

1

一部修正

2018/04/27 15:43

投稿

Development_mm
Development_mm

スコア6

test CHANGED
File without changes
test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
 
22
22
 
23
- Slim::Parser::SyntaxError in Hoges#index
23
+ Slim::Parser::SyntaxError in XXXs#index
24
24
 
25
25
 
26
26
 
@@ -106,7 +106,7 @@
106
106
 
107
107
  ### 発生している問題・エラーメッセージ(Microdata)
108
108
 
109
- NameError in Hoges#index
109
+ NameError in XXXs#index
110
110
 
111
111
  Showing /Users/(略)/app/views/XXXs/_XXX_item.html.slim where line #XX raised:
112
112