add bg property for displaying transparent images
This commit is contained in:
parent
1e0b955029
commit
8865b951fa
3 changed files with 12 additions and 4 deletions
|
@ -39,6 +39,7 @@ data Info =
|
|||
nsfwTags :: ![Text],
|
||||
desc :: !(Maybe Text),
|
||||
nsfwDesc :: !(Maybe Text),
|
||||
bg :: !(Maybe Text),
|
||||
images :: ![Image],
|
||||
thumb' :: !(Maybe FilePath),
|
||||
links :: ![Link],
|
||||
|
@ -125,6 +126,7 @@ instance FromYAML Info where
|
|||
<*> m .:? "nsfw-tags" .!= []
|
||||
<*> m .:? "desc"
|
||||
<*> m .:? "nsfw-desc"
|
||||
<*> m .:? "bg"
|
||||
<*> (m .: "images" >>= imageList)
|
||||
<*> m .:? "thumb"
|
||||
<*> m .:? "links" .!= []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue