mirror of
https://github.com/samsonjs/samhuri.net.git
synced 2026-04-27 14:57:40 +00:00
remove post bodies from public/_data.json
This commit is contained in:
parent
35d16d8ed1
commit
720f88cc60
2 changed files with 11 additions and 22 deletions
|
|
@ -45,8 +45,7 @@ class Blag
|
||||||
author: post['author'],
|
author: post['author'],
|
||||||
url: post['relative_url'],
|
url: post['relative_url'],
|
||||||
link: post['link'],
|
link: post['link'],
|
||||||
styles: post['styles'],
|
styles: post['styles']
|
||||||
body: post['body']
|
|
||||||
}.delete_if { |k, v| v.nil? }
|
}.delete_if { |k, v| v.nil? }
|
||||||
end
|
end
|
||||||
json = JSON.pretty_generate data
|
json = JSON.pretty_generate data
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue