blog/_includes/functions/get_value.html
2019-09-11 12:21:17 +08:00

17 lines
549 B
HTML

{%- 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 -%}