Skip to content

Commit

Permalink
Display featured stories
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimjaved12 committed Dec 26, 2024
1 parent dea0660 commit 1249524
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion www/layouts/partials/home_stories.html
Original file line number Diff line number Diff line change
@@ -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")
Expand Down
11 changes: 6 additions & 5 deletions www/layouts/stories/list.html
Original file line number Diff line number Diff line change
@@ -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") -}}
<div class="testimonial-list-container">
{{ block "header" . }}
{{ partialCached "header" . }}
{{end}}
{{ end }}
<div class="testimonial-banner list d-flex flex-column">
<div class="standard-width container text-center">
<h1>OpenCourseWare Stories</h1>
<p>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.</p>
<h1>OpenCourseWare Stories</h1>
<p>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.</p>
</div>
</div>
<div class="standard-width container">
Expand Down Expand Up @@ -37,7 +38,7 @@ <h1>OpenCourseWare Stories</h1>
</div>
</div>
</div>
{{ 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 }}

0 comments on commit 1249524

Please sign in to comment.