blog/_includes/functions/get_value.html

19 lines
611 B
HTML

{%- if include.name -%}
{%- assign name = include.name -%}
{%- endif -%}
{%- assign return = include.return -%}
{%- if page[name] -%}
{%- assign return = page[name] -%}
{%- elsif site[name] -%}
{%- assign return = site[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 -%}