Initial commit
This commit is contained in:
25
_layouts/item/audio.html
Normal file
25
_layouts/item/audio.html
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
# audio item layout with audio player and thumb
|
||||
# Uses <audio> element to embed audio file from object_location as src.
|
||||
layout: item/item-page-base
|
||||
---
|
||||
|
||||
<div class="card mb-4 text-center">
|
||||
<div class="card-body">
|
||||
|
||||
{% include item/audio-player.html %}
|
||||
|
||||
<div class="mt-2">
|
||||
|
||||
{% include item/item-thumb.html %}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="mt-2">
|
||||
|
||||
{% include item/download-buttons.html %}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
18
_layouts/item/compound_object.html
Normal file
18
_layouts/item/compound_object.html
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
# basic layout for compound object items
|
||||
# uses _includes/item/child/ includes to add multiple objects to the item page in a gallery
|
||||
# each object is represented in a modal
|
||||
layout: item/item-page-base
|
||||
gallery: true
|
||||
custom-foot: js/modal-hash-js.html
|
||||
---
|
||||
{% assign children = site.data[site.metadata] | where_exp: 'item','item.parentid == page.objectid' %}
|
||||
|
||||
<div class="mb-4 ">
|
||||
|
||||
{% include item/child/compound-item-modal-gallery.html %}
|
||||
|
||||
<div class="my-2">
|
||||
{% include item/child/compound-item-download-buttons.html %}
|
||||
</div>
|
||||
</div>
|
||||
19
_layouts/item/image.html
Normal file
19
_layouts/item/image.html
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
# basic image item layout
|
||||
# Displays image_small if available, with fall back to object_location.
|
||||
# Adds gallery view to open images full screen using object_location, with fall back to image_small.
|
||||
layout: item/item-page-base
|
||||
gallery: true
|
||||
---
|
||||
|
||||
<div class="card mb-4 text-center">
|
||||
|
||||
{% include item/image-gallery.html %}
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
{% include item/download-buttons.html %}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
46
_layouts/item/item-page-base.html
Normal file
46
_layouts/item/item-page-base.html
Normal file
@@ -0,0 +1,46 @@
|
||||
---
|
||||
# base layout for other item display_template layouts
|
||||
# adds breadcrumbs and title at top; citation box, rights box, and browse buttons at bottom
|
||||
layout: default
|
||||
# item-meta adds rich meta markup to the page on production build
|
||||
item-meta: true
|
||||
---
|
||||
<div class="container py-3">
|
||||
|
||||
{% include item/breadcrumbs.html %}
|
||||
<div class="my-0 h5 small">{{ page.display_template | replace: "_", " " | upcase }} {% if page.display_template == "compound_object" or page.display_template == "multiple" %}{% assign children = site.data[site.metadata] | where_exp: 'item','item.parentid == page.objectid' %} ({{ children | size }} Items){% endif %}</div>
|
||||
<h2 class="mb-3">{{ page.title }}
|
||||
{% unless page.display_template == 'record' %}<a href="#metadata" class="ms-5 btn btn-sm btn-outline-dark small">Item Info
|
||||
<svg class="bi icon-sprite" role="img" aria-label="Jump to Item Info">
|
||||
<use xlink:href="{{ '/assets/css/cb-icons.svg' | relative_url }}#arrow-down"/>
|
||||
</svg>
|
||||
</a>{% endunless %}
|
||||
</h2>
|
||||
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-12 col-md-10">
|
||||
|
||||
{{ content }}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-12 col-md-10" id="metadata">
|
||||
|
||||
{% include item/metadata.html %}
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-5 py-4">
|
||||
{% include item/citation-box.html %}
|
||||
</div>
|
||||
{% if page.rights or page.rightsstatement %}
|
||||
<div class="col-md-5 py-4">
|
||||
{% include item/rights-box.html %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{%- if site.data.theme.browse-buttons == true -%}
|
||||
{% include item/browse-buttons.html %}
|
||||
{%- endif -%}
|
||||
</div>
|
||||
37
_layouts/item/item-page-full-width.html
Normal file
37
_layouts/item/item-page-full-width.html
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
# base layout for full page item display_template layouts
|
||||
# adds breadcrumbs and title at top; citation box, rights box, and browse buttons at bottom
|
||||
layout: default
|
||||
# item-meta adds rich meta markup in HTML <head> element to the page on production build for better SEO
|
||||
item-meta: true
|
||||
---
|
||||
{% if page.display_template == "compound_object" %}{% assign children = site.data[site.metadata] | where_exp: 'item','item.parentid == page.objectid' %}{% endif %}
|
||||
<div class="container-fluid py-3">
|
||||
|
||||
{% include item/breadcrumbs.html %}
|
||||
<div class="my-0 h5 small">{{ page.display_template | replace: "_", " " | upcase }} {% if page.display_template == "compound_object" %} ({{ children | size }} Items){% endif %}</div>
|
||||
<h2 class="mb-3">{{ page.title }}
|
||||
{% unless page.display_template == 'record' %}<a href="#metadata" class="ms-5 btn btn-sm btn-outline-dark small">Item Info
|
||||
<svg class="bi icon-sprite" role="img" aria-label="Jump to Item Info">
|
||||
<use xlink:href="{{ '/assets/css/cb-icons.svg' | relative_url }}#arrow-down"/>
|
||||
</svg>
|
||||
</a>{% endunless %}
|
||||
</h2>
|
||||
|
||||
{{ content }}
|
||||
|
||||
<div class="row justify-content-end mt-4">
|
||||
<div class="col-md-5">
|
||||
{% include item/citation-box.html %}
|
||||
</div>
|
||||
{% if page.rights or page.rightsstatement %}
|
||||
<div class="col-md-5">
|
||||
{% include item/rights-box.html %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{%- if site.data.theme.browse-buttons == true -%}
|
||||
{% include item/browse-buttons.html %}
|
||||
{%- endif -%}
|
||||
</div>
|
||||
20
_layouts/item/item.html
Normal file
20
_layouts/item/item.html
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
# generic fallback item page layout
|
||||
# displays image or icon depending on "image_thumb"
|
||||
layout: item/item-page-base
|
||||
---
|
||||
|
||||
<div class="card mb-4 text-center">
|
||||
<div class="card-body">
|
||||
|
||||
<p>
|
||||
{% include item/item-thumb.html %}
|
||||
</p>
|
||||
<div class="mt-2">
|
||||
|
||||
{% include item/download-buttons.html %}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
26
_layouts/item/multiple.html
Normal file
26
_layouts/item/multiple.html
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
# layout for "multiple" display template
|
||||
# creates large images with a gallery feature
|
||||
layout: item/item-page-base
|
||||
gallery: true
|
||||
---
|
||||
{% assign children = site.data[site.metadata] | where_exp: 'item','item.parentid == page.objectid' %}
|
||||
|
||||
<div class="mb-4 text-center">
|
||||
|
||||
{% for child in children %}
|
||||
<div id="{{ child.objectid }}" class="mb-4">
|
||||
<a class="spotlight gallery-img" {% if child.object_location %}data-download="true"{% endif %} title="{% if page.title != child.title %}{{ child.title | escape }}{% else %}{{ page.title | escape }} [{{ forloop.index }}]{% endif %}" href="{{ child.object_location | default: child.image_small | relative_url }}">
|
||||
<img src="{{ child.image_small | relative_url }}" alt="{{ child.image_alt_text | default: child.description | default: child.title | default: page.title | escape }}" class="img-fluid mb-2">
|
||||
{% if page.title != child.title %}<div><small class="text-dark">{{ child.title }}</small></div>{% endif %}
|
||||
</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
<div class="my-2">
|
||||
|
||||
{% include item/child/compound-item-download-buttons.html %}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
17
_layouts/item/panorama.html
Normal file
17
_layouts/item/panorama.html
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
# panorama item layout
|
||||
# adds panorama viewer using Pannellum
|
||||
layout: item/item-page-base
|
||||
---
|
||||
|
||||
<div class="mb-4 text-center">
|
||||
|
||||
{% include item/panorama.html %}
|
||||
|
||||
<div class="my-2">
|
||||
|
||||
{% include item/download-buttons.html %}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
20
_layouts/item/pdf.html
Normal file
20
_layouts/item/pdf.html
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
# basic layout for PDF documents
|
||||
# Displays image_small if available, with fall back to image_thumb, or a pdf icon.
|
||||
layout: item/item-page-base
|
||||
---
|
||||
|
||||
<div class="card mb-4 text-center">
|
||||
<div class="card-body">
|
||||
<p>
|
||||
{% include item/item-thumb.html %}
|
||||
</p>
|
||||
|
||||
<div class="mt-2">
|
||||
|
||||
{% include item/download-buttons.html %}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
17
_layouts/item/record.html
Normal file
17
_layouts/item/record.html
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
# basic layout intended for metadata only type item, designed for linking to external source
|
||||
layout: item/item-page-base
|
||||
---
|
||||
|
||||
<div class="mb-4 text-center">
|
||||
|
||||
{% if page.image_small or page.image_thumb %}
|
||||
<p>
|
||||
{% include item/item-thumb.html %}
|
||||
</p>
|
||||
{% endif %}
|
||||
<div class="my-2">
|
||||
{% include item/download-buttons.html %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
23
_layouts/item/video.html
Normal file
23
_layouts/item/video.html
Normal file
@@ -0,0 +1,23 @@
|
||||
---
|
||||
# basic video item layout
|
||||
# Displays a video embedded on the page with default support for video files (using <video> element with object_location as src, MP4 is most compatible format), YouTube (from full link in object_location), or Vimeo videos (from full link in object_location).
|
||||
layout: item/item-page-base
|
||||
---
|
||||
|
||||
<div class="card mb-4 text-center">
|
||||
<div class="card-body">
|
||||
|
||||
{% if page.object_location contains 'vimeo' or page.object_location contains 'youtu' %}
|
||||
{% include item/video-embed.html %}
|
||||
{% else %}
|
||||
{% include item/video-player.html %}
|
||||
{% endif %}
|
||||
|
||||
<div class="mt-2">
|
||||
|
||||
{% include item/download-buttons.html %}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user