Browse Source

recipe: Markup with h-recipe microformat2

master
Chimo 9 months ago
parent
commit
122351258a
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      _layouts/recipe.html

+ 4
- 4
_layouts/recipe.html View File

@ -17,11 +17,11 @@ layout: default
</div>
{% endfor %}
<article class="post-content px2">
<article class="h-recipe post-content px2">
<!-- call up the main recipe title and content -->
<header class="post-header">
<h1 class="post-title center m1 sm-mt3" itemprop="name">{{ page.title }}</h1>
<h1 class="p-name post-title center m1 sm-mt3" itemprop="name">{{ page.title }}</h1>
</header>
<div class="px2 mt3 clearfix">
@ -54,7 +54,7 @@ layout: default
<ul itemprop="ingredients">
<!-- list ingredients that make up recipe -->
{% for ingredient in page.ingredients %}
<li itemprop="recipeIngredient">{{ ingredient | markdownify }}</li>
<li class="p-ingredient" itemprop="recipeIngredient">{{ ingredient | markdownify }}</li>
{% endfor %}
</ul>
{% endif %}
@ -63,7 +63,7 @@ layout: default
<div class="sm-col sm-col-6 lg-col-6">
<h4 class="blue mt0 mb2 xs-center">{{ site.translation[site.language].directions }}</h4>
<ul itemprop="recipeInstructions">
<ul class="e-instructions" itemprop="recipeInstructions">
{% for direction in page.directions %}
<li>{{ direction | markdownify }}</li>
{% endfor %}


Loading…
Cancel
Save