-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Edited index.html and hero_data..liquid as well as added site-specifi…
…c-articles.liquid from the source code of HT Condor. Banners and contents are rotating every week now.
- Loading branch information
Showing
5 changed files
with
27 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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] %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{% assign site-specific-articles = site.spotlights | where_exp: "featured-user", "featured-user.publish_on contains site.key" | sort: "date" | reverse %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule osg-htc.github.io
added at
b0cba6