Add song builder function.

This commit is contained in:
Dillon Kearns 2019-08-05 13:30:30 -07:00
parent 44e08be4d9
commit a58bb00119

View File

@ -1,4 +1,4 @@
module OpenGraph exposing (Image, article, buildCommon, website)
module OpenGraph exposing (Image, article, buildCommon, song, website)
{-| <https://ogp.me/#>
-}
@ -65,6 +65,19 @@ book common details =
Book details |> Content common |> tags
song :
Common
->
{ duration : Maybe Int
, album : Maybe Int
, disc : Maybe Int
, track : Maybe Int
}
-> List Head.Tag
song common details =
Song details |> Content common |> tags
{-| These fields apply to any type in the og object types
See <https://ogp.me/#metadata> and <https://ogp.me/#optional>