diff --git a/www/layouts/partials/home_stories.html b/www/layouts/partials/home_stories.html index f45bbcc26..bbd129fc9 100644 --- a/www/layouts/partials/home_stories.html +++ b/www/layouts/partials/home_stories.html @@ -1,4 +1,5 @@ -{{- $stories := where .Site.RegularPages "Type" "==" "stories" -}} +{{- $featuredStories := .Site.Data.homepage.featured_stories.content | default slice -}} +{{- $stories := partial "filtered_pages" (dict "context" . "featuredPagesUid" $featuredStories) | default (where .Site.RegularPages "Type" "==" "stories") -}} {{- $storiesSection := .Site.GetPage "section" "stories" -}} {{- $breakdowns := dict "xs-sm" (dict "size" 1 "class" "d-flex d-md-none") diff --git a/www/layouts/stories/list.html b/www/layouts/stories/list.html index e2b350b34..d1bb8765b 100644 --- a/www/layouts/stories/list.html +++ b/www/layouts/stories/list.html @@ -1,14 +1,15 @@ {{ define "main" }} {{- $pages := .Site.RegularPages -}} -{{- $stories := where $pages "Type" "==" "stories" -}} +{{- $featuredStories := .Site.Data.homepage.featured_stories.content | default slice -}} +{{- $stories := partial "filtered_pages" (dict "context" . "featuredPagesUid" $featuredStories) | default (where $pages "Type" "==" "stories") -}}
{{ block "header" . }} {{ partialCached "header" . }} - {{end}} + {{ end }}
-

OpenCourseWare Stories

-

MIT students' stories reflect a relentless pursuit of knowledge and innovation. From coding breakthroughs to launching startups, their journey showcases the Institute's commitment to pushing boundaries and changing the world.

+

OpenCourseWare Stories

+

MIT students' stories reflect a relentless pursuit of knowledge and innovation. From coding breakthroughs to launching startups, their journey showcases the Institute's commitment to pushing boundaries and changing the world.

@@ -37,7 +38,7 @@

OpenCourseWare Stories

-{{ partial "home_stories_banner.html" (dict "source" "list")}} +{{ partial "home_stories_banner.html" (dict "source" "list") }} {{ block "footer" . }} {{ partialCached "footer" . }} {{ end }} {{ partial "testimonial_quote_modal.html" }} {{ end }} diff --git a/www/layouts/stories/single.html b/www/layouts/stories/single.html index b61261f40..4d371295a 100644 --- a/www/layouts/stories/single.html +++ b/www/layouts/stories/single.html @@ -47,24 +47,31 @@

{{ $story.Title }}

- {{ block "footer" . }} {{ partialCached "footer" . }} {{end}} + {{ block "footer" . }} {{ partialCached "footer" . }} {{ end }} {{ partial "testimonial_quote_modal.html" }} {{ end }}