mirror of
https://github.com/GamingShitposting/TomoStash.git
synced 2025-07-17 22:35:56 +02:00
20 lines
494 B
Plaintext
20 lines
494 B
Plaintext
{%- assign key = include.field -%}
|
|
{%- assign tome = include.tome -%}
|
|
|
|
{%- assign this-field = tome[key] | strip -%}
|
|
|
|
{%- capture parent-field -%}
|
|
{%- include tome-parent tome=tome key=key -%}
|
|
{%- endcapture -%}
|
|
|
|
{%- if parent-field == '' -%}
|
|
{{- this-field -}}
|
|
{%- elsif key == 'title' -%}
|
|
{{- parent-field }} — {{ this-field -}}
|
|
{%- else -%}
|
|
{%- if this-field != '' -%}
|
|
{{- this-field -}}
|
|
{%- else -%}
|
|
{{- parent-field -}}
|
|
{%- endif -%}
|
|
{%- endif -%} |