seo - 架构 hRecipe fn/name 不起作用?

标签 seo markup schema.org microformats recipe

我在一个使用 hRecipe 模式包装我的元素的网站上发布了各种食谱。除了 name/fn 之外,我可以让所有架构元素都正常工作吗?我不确定为什么这是我在代码中所说的名称所在。

如你所见,我写了:

<article class="twelve columns hrecipe" itemscope="" itemtype="http://schema.org/Recipe">
<h1 itemprop="name">Crispy Sussex fish goujons</h1>

这应该意味着它可以很好地命名这个名字。你也可以在google的结构化数据测试工具中看到,但仍然找不到它?

http://www.google.com/webmasters/tools/richsnippets?q=http%3A%2F%2Flocalfoodbritain.com%2Frecipes%2Fcrispy-sussex-fish-goujons%2F

另外我想知道是否有人可以建议我为什么图像没有在预览中显示?

这是实时网页/代码,有人有什么想法吗?

http://localfoodbritain.com/recipes/crispy-sussex-fish-goujons/

<article class="twelve columns hrecipe" itemscope="" itemtype="http://schema.org/Recipe">
<h1 itemprop="name">Crispy Sussex fish goujons</h1>
<p>Our recipe uses the freshest fish; locally-caught Sussex pollock brought into <a title="Veasey and Sons" href="/sussex/shops/fishmongers/veasey-and-sons/">Veasey and Sons fishmongers</a>&nbsp;by their boat that fishes between Eastbourne and Poole Bay. To serve, why not try a dollop of Sussex Gold Award winning Sussex Valley Classic Mayonnaise&nbsp;from&nbsp;<a title="The Condiment Company" href="/sussex/food/condiments/the-condiment-company/">The Condiment Company of Chichester</a>?</p><div id="recipe" class="sollos_recipe">
<div class="row">
<div class="recipe-main"><img itemprop="image" src="http://localfoodbritain.com/files/9713/9816/6500/Fish_goujons_small.jpg" width="550" height="416" alt="Crispy Sussex fish goujons"><p class="intro" itemprop="description">Freshly made fish goujons dipped in creamy mayonnaise make a tasty change from sandwiches for picnics. You could nip to the shops and buy them, but there really is nothing like making your own. It guarantees beautifully succulent fish and the crispiest batter.</p>
<hr>
<br>
   <h3 class="sollos_recipe_secion-header">Ingredients</h3>
  <ul class="ingredients sollos_recipe_ingredients" itemprop="ingredients">
                <li class="ingredient sollos_recipe_ingredient"><i class="fa fa-square-o"></i>
              <span class="amount">
                  <span class="value">450</span> 
                  <span class="type">g</span>              </span> 
              <span class="name">firm white fish fillet, skinned and boned </span>
          </li>
                <li class="ingredient sollos_recipe_ingredient"><i class="fa fa-square-o"></i>
              <span class="amount">
                  <span class="value">Juice</span> 
                  <span class="type">of</span>              </span> 
              <span class="name">1 large lemon</span>
          </li>
                <li class="ingredient sollos_recipe_ingredient"><i class="fa fa-square-o"></i>
              <span class="amount">
                  <span class="value">3</span> 
                  <span class="type">tbsp</span>              </span> 
              <span class="name">plain flour</span>
          </li>
                <li class="ingredient sollos_recipe_ingredient"><i class="fa fa-square-o"></i>
              <span class="amount">
                  <span class="value">1</span> 
                  <span class="type">dessertspoon</span>              </span> 
              <span class="name">chopped fresh parsley</span>
          </li>
                <li class="ingredient sollos_recipe_ingredient"><i class="fa fa-square-o"></i>
              <span class="amount">
                  <span class="value">1</span> 
                                </span> 
              <span class="name">large free-range egg</span>
          </li>
                <li class="ingredient sollos_recipe_ingredient"><i class="fa fa-square-o"></i>
              <span class="amount">
                  <span class="value">80</span> 
                  <span class="type">g</span>              </span> 
              <span class="name">fresh white breadcrumbs</span>
          </li>
                <li class="ingredient sollos_recipe_ingredient"><i class="fa fa-square-o"></i>
              <span class="amount">
                  <span class="value">Pinch</span> 
                                </span> 
              <span class="name">salt and freshly ground black pepper</span>
          </li>
                <li class="ingredient sollos_recipe_ingredient"><i class="fa fa-square-o"></i>
              <span class="amount">
                  <span class="value">25</span> 
                  <span class="type">g</span>              </span> 
              <span class="name">melted butter</span>
          </li>
        </ul>
<hr>
<br>

        <h3 class="sollos_recipe_secion-header">Preparation</h3>
        <ol class="instructions sollos_recipe_instructions" itemprop="recipeInstructions">
                            <li class="instruction sollos_recipe_instruction">Slice the fish fillets into strips, fairly thick and about 2cm wide then put them in a shallow dish with the lemon juice. Pop in the fridge and leave for at least half an hour.</li> 
                            <li class="instruction sollos_recipe_instruction">When you’re ready to make the goujons, preheat the oven to 220°C (gas 7).</li> 
                            <li class="instruction sollos_recipe_instruction">Put the flour in a shallow bowl and season with salt and pepper.</li> 
                            <li class="instruction sollos_recipe_instruction">Place the egg in another bowl and beat it lightly.</li> 
                            <li class="instruction sollos_recipe_instruction">Mix the parsley with the breadcrumbs and spread onto a plate.</li> 
                            <li class="instruction sollos_recipe_instruction">Gently roll the fish in the seasoned flour mixture. Next, dip each piece in the beaten egg and then into the breadcrumbs until it is nicely coated. Place the goujons on a lightly oiled, non-stick, baking tray. </li> 
                            <li class="instruction sollos_recipe_instruction">Pop in the oven for 10 minutes, turning halfway through cooking. Brush with the melted butter and return to the oven until golden, which will take about another 5 minutes.</li> 
                            <li class="instruction sollos_recipe_instruction">Cool and then carefully pack into a sealed container ready for your picnic!</li> 
                    </ol>
         </div>    
<div class="recipe-side">
                <div class="retailer-block">
                                              <h4>Serves <span class="yield">4-6</span></h4> <hr>                   

                            <h4><span class="prepTime"><meta itemprop="prepTime" content="PT45M">
                        <span class="value-title" title="PT45M"></span>
                    </span>
                    45 minutes.
                </h4>
                <p><small>Preparation time</small></p>
                <hr>   



                            <h4><span class="cookTime"><meta itemprop="cookTime" content="PT15M">
                        <span class="value-title" title="PT15M"></span>
                    </span>
                    15 minutes.
                </h4>
                <p><small>Cooking time</small></p>
                <hr> 


                                     <h4><span itemprop="recipeCuisine">British</span></h4>
            <p><small>Cuisine</small></p> <hr>

                            <h4><span itemprop="recipeCategory">Main Course</span></h4>
                <p><small>Type of dish</small></p> 

                </div>        
                <a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=300&amp;pubid=xa-515e95777e2ce970">
                 <div class="btn btn-medium btn-full-width btn-category align-center"><i class="fa fa-share"></i> Share</div>
                 </a>


<p class="mb-none"><small>Recipe Contributed by</small></p>
<h5><span class="author" itemprop="author">Tracy Carroll</span></h5>

        <p class="sollos_recipe_publish-date">Published 
    <span class="published" itemprop="datePublished" content="2014-04-23T10:22:29-01:00">
    <span class="value-title" title="2014-04-23T10:22:29-01:00"> </span>2014-04-23T10:22:29-01:00</span></p>    
<div class="tags"><hr><h5>Tags</h5><a href="http://localfoodbritain.com/blogsearch/Fish/">Fish</a></div></div></div></div>                  </article><!doctype html>

最佳答案

您正在使用微格式(利用 hRecipe Microformat )和微数据(利用 schema.org 词汇表,特别是 its Recipe type )(以及 RDFa 使用 Open Graph 词汇表,但这不相关到你的食谱)。

article 元素上,您指定以下两者:

  • class="hrecipe"(= 微格式)
  • itemscope itemtype="http://schema.org/Recipe"(= 微数据)

但在 h1 上,您仅添加一个名称:

  • itemprop="name"(= 微数据)

因此,如果您也想在微格式中添加此名称,则必须将 fn 类添加到 h1 中:

<h1 itemprop="name" class="fn">Crispy Sussex fish goujons</h1>

Google 结构化数据测试工具中,解析后的微格式位于标题为“hrecipe”的框中,解析后的 RDFa 位于标题为“rdfa-node”的框中,解析后的微数据位于标题为“Item”的框。

关于seo - 架构 hRecipe fn/name 不起作用?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26406695/

相关文章:

php - 如何从列表中获取最不同的字符串

html - 当您有多个级别的文件夹时,如何最好地包含 css 和 javascript 等文件?

search - 优化谷歌搜索结果

continuous-integration - Selenium 中集成的 xHTML 标记检查器

regex - 替换GO中以 "#"开头的特定新行

html - 将我的网站转移到 html5

html - 不同的 div,相同的 itemscope

microdata - 我使用什么 Schema.org 类型来定义服务?

javascript - Meteor - 模型继承

php - 多语言网站的 SEO 友好网址