summaryrefslogtreecommitdiff
path: root/_includes/functions/get_value.html
blob: 2d90b19e134216098a7b3f5a0529f1fd056c5b33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{%- 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 -%}