Skip to content

Commit

Permalink
Remove 'Photo by' from photo credits (#193)
Browse files Browse the repository at this point in the history
* Remove 'Photo by' from photo credits

* remove photo by in a few other places

Co-authored-by: Matt Walsh <digital@DIG-MBP-10511.local>
  • Loading branch information
walsh9 and Matt Walsh authored Nov 16, 2022
1 parent e5b563a commit 5354780
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion components/Streamfield/StreamfieldImage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defineProps<{
:maxWidth="block.value.image.width"
:maxHeight="block.value.image.height"
:description="block.value.caption || block.value.image.caption"
:credit="`Photo by ${block.value.image.credit}`"
:credit="block.value.image.credit"
:credit-url="block.value.image.creditLink"
:sizes="[2]"
:ratio="[block.value.image.width, block.value.image.height]"
Expand Down
2 changes: 1 addition & 1 deletion pages/[sectionSlug]/[articleSlug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ const getGalleryLink = computed(() => {
:alt-text="topImage?.alt"
:maxWidth="topImage?.width"
:maxHeight="topImage?.height"
:credit="topImage?.credit && `Photo by ${topImage?.credit}`"
:credit="topImage?.credit"
:credit-url="topImage?.creditLink"
:sizes="[2]"
:ratio="[3, 2]"
Expand Down
4 changes: 1 addition & 3 deletions pages/[sectionSlug]/photos/[gallerySlug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ onUnmounted(() => {
:alt-text="slide.image.alt"
:maxWidth="slide.image.width"
:maxHeight="slide.image.height"
:credit="
slide.image.credit ? `Photo by ${slide.image.credit}` : null
"
:credit="slide.image.credit"
:credit-url="slide.image.creditLink"
:description="slide.title || slide.image.caption"
:sizes="[2]"
Expand Down

0 comments on commit 5354780

Please sign in to comment.