From 41f5764b67df4b712134541cc33b182b48c48eed Mon Sep 17 00:00:00 2001 From: Devin Becker Date: Thu, 18 Jan 2024 17:41:01 -0800 Subject: [PATCH] Make timelinejs specific to highlight videos and add to home page --- _layouts/home-infographic.html | 4 +++- assets/data/timelinejs.json | 12 ++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/_layouts/home-infographic.html b/_layouts/home-infographic.html index 150582a..1da308c 100644 --- a/_layouts/home-infographic.html +++ b/_layouts/home-infographic.html @@ -4,7 +4,9 @@ --- {%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid' -%}
- +
+ {% include feature/timelinejs.html%} +
{% include index/description.html %} diff --git a/assets/data/timelinejs.json b/assets/data/timelinejs.json index 62aae0c..be3f13b 100644 --- a/assets/data/timelinejs.json +++ b/assets/data/timelinejs.json @@ -4,17 +4,17 @@ # current using relative_url due to jekyll bug, should be absolute_url in production! # to just feature parent objects of compound objects, you will want to change the where_exp below to "where_exp: 'item','item.parentid == nil'" --- -{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid' | where_exp: 'item', 'item.date' -%} +{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid' | where_exp: 'item', 'item.date' | where_exp: 'item','item.objectid contains "highlight" ' -%} { "title": { "media": { - "url": "{{ site.data.featured_item.src | relative_url }}", - "caption": {{ site.data.featured_item.title | jsonify }}, - "credit": {{ site.title | jsonify }} + "url": "https://img.youtube.com/vi/0tsUM5qGgA4/hqdefault.jpg", + "caption": "Frame from Maurice Hornocker Interview", + "credit": "Jack Kredell" }, "text": { - "headline": {{ site.title | append: ' Timeline' | jsonify }}, - "text": {{ site.description | jsonify }} + "headline": "Human Geographies of Taylor", + "text": "A series of interviews with individuals who made Taylor what it is today." } }, "events": [