Skip to content

Commit

Permalink
adjusting metadata and including custom time for lessons and student …
Browse files Browse the repository at this point in the history
…projects
  • Loading branch information
stephiescastle committed Sep 10, 2024
1 parent 2443179 commit a5896c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,10 @@ export default defineComponent({
} else if (handle.startsWith('edu_resources')) {
date = null
primarySubject = page._source[handle + '__primary_subject'] as PrimarySubjectObject
if (page._source[handle + '__grade_levels']) {
if (
page._source[handle + '__grade_levels'] &&
handle !== 'edu_resources_edustudentprojectpage'
) {
gradeLevels = [] as GradeLevelsObject[]
// @ts-expect-error
page._source[handle + '__grade_levels'].forEach((level) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,14 +274,13 @@ const consolidatedSections = computed((): EduLessonSectionObject[] => {
:image="data.thumbnailImage?.original"
/>
<div
v-if="data.studentProject"
v-if="data.studentProject?.url"
class="mt-8 font-bold text-body-lg"
>
Find out what’s involved for students:
<BaseLink
class="font-normal inline text-action underline hover:text-action-dark cursor-pointer"
variant="none"
:to="data.studentProject.url"
>
View the Project Steps
</BaseLink>
Expand All @@ -293,7 +292,7 @@ const consolidatedSections = computed((): EduLessonSectionObject[] => {
:class="{ 'mb-10 lg:mb-14': heroInline || data?.hero?.length === 0 }"
:primary-subject="data.primarySubject"
:additional-subjects="data.additionalSubjects"
:time="data.time"
:time="data.customTime ? { time: data.customTime } : data.time"
:grade-levels="data.gradeLevels"
:standards="data.standards"
:negative-bottom="heroInline || data?.hero?.length !== 0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ const consolidatedSections = computed((): EduStudentProjectSectionObject[] => {
:class="{ 'mb-10 lg:mb-14': true }"
:primary-subject="data.primarySubject"
:additional-subjects="data.additionalSubjects"
:time="data.time"
:time="data.customTime ? { time: data.customTime } : data.time"
:standards="data.standards"
:negative-top="heroInline || data?.hero?.length !== 0"
>
Expand Down

0 comments on commit a5896c9

Please sign in to comment.