Parcourir la source

Add shortcodes for microformat recipe parts

Bee Hudson il y a 6 mois
Parent
commit
c13bb6cec0

+ 1 - 0
layouts/shortcodes/recipeIngredient.html

@@ -0,0 +1 @@
+<li class="p-ingredient">{{ .Get "text" -}}</li>

+ 4 - 0
layouts/shortcodes/recipeIngredientList.html

@@ -0,0 +1,4 @@
+<h2 id="ingredients">Ingredients</h2>
+<ul>
+    {{ .Inner -}}
+</ul>

+ 2 - 0
layouts/shortcodes/recipeServings.html

@@ -0,0 +1,2 @@
+<h2 id="servings">Servings</h2>
+<p class="p-yield">{{ .Inner | markdownify -}}</p>

+ 4 - 0
layouts/shortcodes/recipeSteps.html

@@ -0,0 +1,4 @@
+<h2 id="steps">Steps</h2>
+<div class="e-instructions">
+    {{ .Inner | markdownify -}}
+</div>