Skip to content

Commit

Permalink
fix: APPS-3160 Update BlockCardWithImage on the article listing page (#…
Browse files Browse the repository at this point in the history
…104)

* comment out blogArticlePage.cy because of Craft errors

* comment out blogArticlePage.cy because of Craft errors

* update component library

* update page

* add updated component

* update component library and component on the blog listing page

* update links

* replace css
  • Loading branch information
jendiamond authored Feb 4, 2025
1 parent 706a272 commit a7f1691
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@
"nuxt-graphql-request": "^7.0.5",
"sass": "^1.66.1",
"ucla-library-design-tokens": "^5.28.0",
"ucla-library-website-components": "3.45.1"
"ucla-library-website-components": "3.46.1"
},
"engines": {
"pnpm": "^9.12.1"
}
}
}
10 changes: 5 additions & 5 deletions pages/blog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ if (data.value.entry && import.meta.prerender) {
await indexContent(data.value.entry, route.params.slug)
// console.log('Article indexed successfully during static build')
} catch (error) {
console.error('FAILED TO INDEX ARTICLES during static build:', error)
// console.error('FAILED TO INDEX ARTICLES during static build:', error)
}
}
Expand Down Expand Up @@ -199,7 +199,7 @@ const parsedFeaturedArticles = computed(() => {
return {
image: obj.ftvaImage[0],
to: obj.uri,
to: `/${obj.uri}`,
title: parsedTitle,
category: parseArticleCategories(obj.articleCategories),
text: obj.ftvaHomepageDescription,
Expand Down Expand Up @@ -311,10 +311,11 @@ useHead({
class="featured-article"
:data-test="`featured-blog-${index}`"
>
<template #title>
<template #customTitle>
<RichText :rich-text-content="article.title" />
</template>
<template #description>
<template #customDescription>
<RichText :rich-text-content="article.text" />
</template>
</BlockCardWithImage>
Expand Down Expand Up @@ -377,7 +378,6 @@ useHead({
h2.section-title {
color: $heading-grey;
}
}
.dividers {
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit a7f1691

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.