diff --git a/_data/people/alperen_bakirci.yml b/_data/people/alperen_bakirci.yml index 51f19c30f..430c4c657 100644 --- a/_data/people/alperen_bakirci.yml +++ b/_data/people/alperen_bakirci.yml @@ -4,5 +4,4 @@ title: Student Web Developer active: green institution: Morgridge Institute for Research website: -image: images/team/alperen-bakirci.jpg -presentations: \ No newline at end of file +image: images/team/alperen-bakirci.jpg \ No newline at end of file diff --git a/_includes/get/hero_data.liquid b/_includes/get/hero_data.liquid index 0aee5ad2b..a4b2826e7 100644 --- a/_includes/get/hero_data.liquid +++ b/_includes/get/hero_data.liquid @@ -1,3 +1,19 @@ {% include get/spotlights.liquid %} -{% assign story_in_array = spotlights | where: "id", "/spotlights/EHT" %} -{% assign hero_data = story_in_array[0] %} + +{% assign 3_months_ago = "now" | date: "%s" | minus: 15768000 %} +{% assign features = "" | split : "" %} +{% for feature in spotlights %} + {% assign feature_date = feature.date | date: "%s" | plus: 0 %} + {% if feature_date > 3_months_ago and feature.banner_src != nil %} + {% assign features = features | push: feature %} + {% endif %} +{% endfor %} + +{% if features.size == 0 %} + {% assign features = spotlights %} +{% endif %} + +{% assign day = "now" | date: "%e" | plus: 1 %} +{% assign index = day | modulo: features.size %} + +{% assign hero_data = features[index] %} \ No newline at end of file diff --git a/_includes/get/site-specific-articles.liquid b/_includes/get/site-specific-articles.liquid new file mode 100644 index 000000000..a3ac2dd88 --- /dev/null +++ b/_includes/get/site-specific-articles.liquid @@ -0,0 +1 @@ +{% assign site-specific-articles = site.spotlights | where_exp: "featured-user", "featured-user.publish_on contains site.key" | sort: "date" | reverse %} \ No newline at end of file diff --git a/index.html b/index.html index f69dc352e..46537d1d1 100644 --- a/index.html +++ b/index.html @@ -3,12 +3,16 @@ css_extension: - href: "/assets/css/homepage.css" --- - +{% include /get/hero_data.liquid %}
+ {% if hero_data.additional_image %} +
+ {{ hero_data.additional_image.alt }} +
+ {% endif %}
- {% include /get/hero_data.liquid %}

{{ hero_data.title }}


diff --git a/osg-htc.github.io b/osg-htc.github.io new file mode 160000 index 000000000..b0cba6a04 --- /dev/null +++ b/osg-htc.github.io @@ -0,0 +1 @@ +Subproject commit b0cba6a047dd59a4240dd72b261560c94838b9f9