Aromatherapie
Eucalyptus Oil: Benefits, Uses, and Effects – The Complete Guide
In het kort
{% comment %}
============================================================
PUREOIL® BLOG TEMPLATE
============================================================
EXAMPLE BLOG TAGS:
Carrier oils
Skincare
color-b88a56
product-apricot
OR:
Essential oils
Aromatherapy
color-9382ad
product-frankincense
PRODUCT TAG:
product-apricot
product-frankincense
product-jojoba
BLOG CATEGORY:
Category tags remain available for:
- filtering
- related blogs
They are NOT displayed above the title.
TOPICS:
The "Topics" block is NOT displayed.
PRODUCT RECOMMENDATION:
Under the product title, the following is used first:
product.metafields.custom.short_introduction
If this is empty:
product.description
PRODUCT LINKS IN BLOG:
The template reads real Shopify products.
Product names that match an existing
Shopify product are automatically linked to
the real product.url.
IMPORTANT:
- each product is linked a maximum of 1 time per article
- subsequent mentions remain plain text
- product names in h1 through h6 are never automatically linked
Product links:
- black
- bold
- underlined
- remain black on hover
TABLE OF CONTENTS:
- always visible on desktop
- always visible on mobile
- not collapsible
ALWAYS BLACK:
- PureOil tip
- Good to know
- left line tip/note
- PUREOIL® above product title
- product title
- product title hover
- product links
- related blogs
FOLLOWS BLOG COLOR:
- table of contents
- table of contents arrows
- FAQ plus/minus
- product button
VIEW MORE:
/pages/inspiration-and-blogs
AUTOMATIC FAQ:
- An H2 starting with "Frequently asked questions" is recognized
- "Most asked questions" is also recognized
- All H3 questions below it automatically become expandable
- Answers continue until the next H3 or H2
- Questions are closed by default
AUTHOR:
- Author is not displayed
- Date and reading time remain visible
NO SCHEMA
============================================================
{% endcomment %}
{% liquid
assign words = article.content | strip_html | split: ' ' | size
assign reading_time = words | plus: 199 | divided_by: 200
if reading_time < 1
assign reading_time = 1
endif
assign day_number = article.published_at | date: "%-d"
assign month_number = article.published_at | date: "%-m"
assign year_number = article.published_at | date: "%Y"
case month_number
when '1'
assign month_name = 'January'
when '2'
assign month_name = 'February'
when '3'
assign month_name = 'March'
when '4'
assign month_name = 'April'
when '5'
assign month_name = 'May'
when '6'
assign month_name = 'June'
when '7'
assign month_name = 'July'
when '8'
assign month_name = 'August'
when '9'
assign month_name = 'September'
when '10'
assign month_name = 'October'
when '11'
assign month_name = 'November'
when '12'
assign month_name = 'December'
endcase
assign accent_color = '#e39845'
assign product_search = blank
assign product_handle = blank
assign recommended_product = blank
assign visible_category = blank
for tag in article.tags
assign tag_downcase = tag | downcase
assign tag_prefix_kleur = tag_downcase | slice: 0, 6
assign tag_prefix_product = tag_downcase | slice: 0, 8
if tag_prefix_kleur == 'kleur-'
assign accent_value = tag_downcase | remove_first: 'kleur-' | remove: '#' | strip
assign accent_color = '#' | append: accent_value
elsif tag_prefix_product == 'product-'
assign product_search = tag | slice: 8, 200 | strip
assign product_handle = product_search | handle
else
if visible_category == blank
case tag_downcase
when 'etherische oliën'
assign visible_category = 'Essential oils'
when 'draagoliën'
assign visible_category = 'Carrier oils'
when 'haarverzorging'
assign visible_category = 'Hair care'
when 'huidverzorging'
assign visible_category = 'Skincare'
when 'aromatherapie'
assign visible_category = 'Aromatherapy'
when 'hydrosols'
assign visible_category = 'Hydrosols'
when 'diy oplossingen'
assign visible_category = 'DIY solutions'
when 'vergelijkingen'
assign visible_category = 'Comparisons'
endcase
endif
endif
endfor
comment
PRODUCT FIRST EXACT VIA HANDLE
endcomment
if product_handle != blank
assign recommended_product = all_products[product_handle]
endif
comment
FALLBACK VIA TITEL / HANDLE
endcomment
if recommended_product == blank and product_search != blank
assign product_search_downcase = product_search | downcase
assign product_search_handle = product_search | handle
for po_product in collections.all.products
assign po_title_downcase = po_product.title | downcase
assign po_handle_downcase = po_product.handle | downcase
if po_title_downcase contains product_search_downcase
assign recommended_product = po_product
break
endif
if po_handle_downcase contains product_search_handle
assign recommended_product = po_product
break
endif
endfor
endif
%}
{% if article.image %}
{{ article.content }}
{% if recommended_product != blank %}
{% endif %}
{% if visible_category != blank %}
{% endif %}
{% paginate collections.all.products by 250 %}
{% endpaginate %}
{{ article.title }}
{{
article.image
| image_url: width: 1800
| image_tag:
loading: 'eager',
widths: '600, 900, 1200, 1500, 1800',
sizes: '(min-width: 1200px) 1180px, 100vw',
alt: article.image.alt | default: article.title
}}
{% endif %}
Table of Contents
Shop our favorite {{ recommended_product.title }}
{% if recommended_product.featured_image %}
{{
recommended_product.featured_image
| image_url: width: 900
| image_tag:
loading: 'lazy',
widths: '220, 320, 480, 640, 800, 900',
sizes: '(max-width: 600px) 220px, 280px',
class: 'po-product-block__real-image',
alt: recommended_product.featured_image.alt | default: recommended_product.title
}}
{% endif %}
PureOil®
{{ recommended_product.title }}
{% if recommended_product.metafields.custom.korte_introductie != blank %}
{{
recommended_product.metafields.custom.korte_introductie.value
| strip_html
}}
{% elsif recommended_product.description != blank %}
{{
recommended_product.description
| strip_html
| truncatewords: 42
}}
{% endif %}
View product
PureOil tip
Veelgestelde vragen