Skip to content

Commit b42ec7d

Browse files
New HowTo schema
Added HowTo schema for AEO targeting.
1 parent 6f12b7f commit b42ec7d

1 file changed

Lines changed: 29 additions & 1 deletion

File tree

src/_includes/jsonld.njk

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
}
122122
}
123123
{% endif %}
124-
{% if meta.faq %}
124+
{% if meta.faq %}
125125
,
126126
{
127127
"@type": "FAQPage",
@@ -140,6 +140,34 @@
140140
]
141141
}
142142
{% endif %}
143+
{% if meta.howto %}
144+
,
145+
{
146+
"@type": "HowTo",
147+
"@id": "https://flowfuse.com{{ page.url }}#howto",
148+
"name": "{{ meta.howto.name or title }}",
149+
"description": "{{ meta.howto.description or description }}",
150+
{% if meta.howto.totalTime %}"totalTime": "{{ meta.howto.totalTime }}",{% endif %}
151+
{% if meta.howto.tool %}
152+
"tool": [
153+
{% for t in meta.howto.tool %}
154+
{ "@type": "HowToTool", "name": "{{ t }}" }{% if not loop.last %},{% endif %}
155+
{% endfor %}
156+
],
157+
{% endif %}
158+
"step": [
159+
{% for s in meta.howto.steps %}
160+
{
161+
"@type": "HowToStep",
162+
"position": {{ loop.index }},
163+
"name": "{{ s.name }}",
164+
"text": "{{ s.text }}"
165+
{% if s.url %},"url": "https://flowfuse.com{{ page.url }}#{{ s.url }}"{% endif %}
166+
}{% if not loop.last %},{% endif %}
167+
{% endfor %}
168+
]
169+
}
170+
{% endif %}
143171
]
144172
}
145173
</script>

0 commit comments

Comments
 (0)