Skip to content

Commit

Permalink
Make timelinejs specific to highlight videos and add to home page
Browse files Browse the repository at this point in the history
  • Loading branch information
dcnb committed Jan 19, 2024
1 parent 694db2b commit 41f5764
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion _layouts/home-infographic.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
---
{%- assign items = site.data[site.metadata] | where_exp: 'item','item.objectid' -%}
<div class="row">

<div class="col-md-12">
{% include feature/timelinejs.html%}
</div>
<div class="col-md-8">

{% include index/description.html %}
Expand Down
12 changes: 6 additions & 6 deletions assets/data/timelinejs.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 41f5764

Please sign in to comment.