blog/_includes/functions/get_value.html

18 lines
549 B
HTML
Raw Normal View History

2019-09-11 06:19:34 +02:00
{%- if include.name -%}
{%- assign name = include.name -%}
{%- endif -%}
{%- assign return = include.return -%}
{%- if page[name] -%}
{%- assign return = page[name] -%}
{%- elsif site.data[name] -%}
{%- assign return = site.data[name] -%}
{%- elsif site.defaults[page.layout][name] -%}
{%- assign return = site.defaults[page.layout][name] -%}
{%- elsif site.data.defaults[page.layout][name] -%}
{%- assign return = site.data.defaults[page.layout][name] -%}
{%- elsif layout[name] -%}
{%- assign return = layout[name] -%}
{%- endif -%}