Skip to content

Commit

Permalink
fixup! Skip pipeline on serializers
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilyeo committed Jun 28, 2024
1 parent 8976385 commit 9c86ac7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/serializers/schema_blogpost_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def base
'datePublished': entry.created_at.strftime('%Y-%m-%d'),
'dateModified': entry.updated_at.strftime('%Y-%m-%d'),
'articleBody': entry.body,
'image': context.image_url('logo', skip_pipeline: true),
'image': context.image_url('logo.png'),
'inLanguage': 'en-US',
'copyrightYear': entry.created_at.year,
'keywords': [entry.channel_name, 'MagmaLabs TIL', 'BlogPost', 'Today I Learned'],
Expand Down Expand Up @@ -56,7 +56,7 @@ def publisher
'url': 'https://www.magmalabs.io',
'logo': {
'@type': 'ImageObject',
'url': context.image_url('magma-logo', skip_pipeline: true)
'url': context.image_url('magma-logo.svg')
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/serializers/schema_organization_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def to_jsonld_data
'@context': 'http://schema.org',
'@type': 'Organization',
'url': context.root_url,
'logo': context.image_url('magma-logo', skip_pipeline: true)
'logo': context.image_url('magma-logo.svg')
}.merge(same_as).to_json
end

Expand Down

0 comments on commit 9c86ac7

Please sign in to comment.