Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-amazing authored and kzkn committed Oct 9, 2024
1 parent 050c99f commit f3414c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,15 +233,15 @@ add them back is to use JSON-LD structured data:

```erb
<script type="application/ld+json">
<%= breadcrumbs.structured_data(url_base: "https://example.com") %>
<%= raw breadcrumbs.structured_data(url_base: "https://example.com").to_json %>
</script>
```

Or, you can infer `url_base` from `request`:

```erb
<script type="application/ld+json">
<%= breadcrumbs.structured_data(url_base: "#{request.protocol}#{request.host_with_port}") %>
<%= raw breadcrumbs.structured_data(url_base: "#{request.protocol}#{request.host_with_port}").to_json %>
</script>
```

Expand Down

0 comments on commit f3414c8

Please sign in to comment.