learnshopify.dev/Workspace
code reading

Sarah's implementation, both surfaces. Trace it, then answer.

{% comment %} sections/origin-story.liquid {% endcomment %}
{% assign story = product.metafields.custom.origin_story %}
{% if story %}
  <section class="origin-story">
    <h2 class="origin-story__heading">From the farm</h2>
    <div class="origin-story__body">
      {{ story | metafield_tag }}
    </div>
  </section>
{% endif %}

{% comment %} snippets/meta-tags.liquid {% endcomment %}
{% if product.metafields.custom.origin_story %}
  <meta
    name="description"
    content="{{ product.metafields.custom.origin_story | metafield_text | truncate: 155 | escape }}"
  >
{% endif %}
1. What does `custom.origin_story` actually store?
2. What does `{{ story | metafield_tag }}` output?
3. Why `metafield_text` in the meta description?
4. A teammate proposes `{{ story.value | strip_html }}` for the description. Why is that wrong?
5. A product has no origin story set. What renders?
0 / 1 task solved