Skip to content

Commit

Permalink
fix: add optional desription to json feed (#188)
Browse files Browse the repository at this point in the history
  • Loading branch information
trovster authored May 27, 2022
1 parent ee85d8f commit a6ba13e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions resources/views/json.blade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"version": "https://jsonfeed.org/version/1.1",
"title": "{{ $meta['title'] }}",
@if(!empty($meta['description']))
"description": "{{ $meta['description'] }}",
@endif
"home_page_url": "{{ config('app.url') }}",
"feed_url": "{{ url($meta['link']) }}",
"language": "{{ $meta['language'] }}",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"version": "https://jsonfeed.org/version/1.1",
"title": "Feed 1 JSON",
"description": "This is feed 1 as JSON from the unit tests",
"home_page_url": "http://localhost",
"feed_url": "http://localhost/feedBaseUrl/feed1.json",
"language": "en-US",
Expand Down

0 comments on commit a6ba13e

Please sign in to comment.