2020-09-29 06:54:54 +02:00
|
|
|
{%- if include.params.name -%}
|
|
|
|
{%- assign name = include.params.name -%}
|
2019-09-11 06:19:34 +02:00
|
|
|
{%- endif -%}
|
|
|
|
|
2020-09-29 06:54:54 +02:00
|
|
|
{%- if page[name] != nil -%}
|
2019-09-11 06:19:34 +02:00
|
|
|
{%- assign return = page[name] -%}
|
2020-09-29 06:54:54 +02:00
|
|
|
{%- elsif site[name] != nil -%}
|
2019-09-13 09:52:19 +02:00
|
|
|
{%- assign return = site[name] -%}
|
2020-09-29 06:54:54 +02:00
|
|
|
{%- elsif site.data[name] != nil -%}
|
2019-09-11 06:19:34 +02:00
|
|
|
{%- assign return = site.data[name] -%}
|
2020-09-29 06:54:54 +02:00
|
|
|
{%- elsif site.defaults[page.layout][name] != nil -%}
|
2019-09-11 06:19:34 +02:00
|
|
|
{%- assign return = site.defaults[page.layout][name] -%}
|
2020-09-29 06:54:54 +02:00
|
|
|
{%- elsif site.data.defaults[page.layout][name] != nil -%}
|
2019-09-11 06:19:34 +02:00
|
|
|
{%- assign return = site.data.defaults[page.layout][name] -%}
|
2020-09-29 06:54:54 +02:00
|
|
|
{%- elsif layout[name] != nil -%}
|
2019-09-11 06:19:34 +02:00
|
|
|
{%- assign return = layout[name] -%}
|
2020-09-29 06:54:54 +02:00
|
|
|
{%- else -%}
|
|
|
|
{%- assign return = include.params.default -%}
|
2019-09-11 06:19:34 +02:00
|
|
|
{%- endif -%}
|