Skip to content

Commit

Permalink
Format machine readable output
Browse files Browse the repository at this point in the history
Continuing on from alphagov/govuk_publishing_components#1617 and alphagov/collections@99718ff

Human readable structured data is much easier to debug and reason about.
  • Loading branch information
sihugh committed Jul 21, 2020
1 parent ced5704 commit 8ea2799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/content_items/guide.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<% unless @content_item.requesting_a_part? %>
<script type="application/ld+json">
<%= raw MachineReadable::GuideFaqPageSchemaPresenter.new(@content_item, self).structured_data.to_json %>
<%= raw JSON.pretty_generate(MachineReadable::GuideFaqPageSchemaPresenter.new(@content_item, self).structured_data) %>
</script>
<% end %>

Expand Down

0 comments on commit 8ea2799

Please sign in to comment.