{% comment %} Adds button links for compound object parent item page. If item has date to Timeline, if item has lat/long to Map, if item has child objects with object_location it adds Download options for each. Styled as a Bootstrap btn-group. {%- endcomment -%}
{% if page.object_transcript %}{% endif %} {% if page.date %}{%- capture year -%}{% if page.date contains "-" %}{{ page.date | split: "-" | first }}{% elsif page.date contains "/" %}{{ page.date | split: "/" | last }}{% else %}{{ page.date }}{% endif %}{%- endcapture -%} View on Timeline{% endif %} {% if page.latitude and page.longitude %} View on Map{% endif %}
{% if page.object_transcript %}
{% assign transcript_type = page.object_transcript | slice: 0,1 %} {% if transcript_type == '/' %} {% assign transcript_location = page.object_transcript | remove_first: '/' %} {% assign transcript = site.pages | where: 'path', transcript_location | first %} {{ transcript.content | markdownify }} {% else %} {{ page.object_transcript | markdownify }} {% endif %}
{% endif %}