mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-28 06:12:33 +03:00
Add song builder function.
This commit is contained in:
parent
44e08be4d9
commit
a58bb00119
@ -1,4 +1,4 @@
|
|||||||
module OpenGraph exposing (Image, article, buildCommon, website)
|
module OpenGraph exposing (Image, article, buildCommon, song, website)
|
||||||
|
|
||||||
{-| <https://ogp.me/#>
|
{-| <https://ogp.me/#>
|
||||||
-}
|
-}
|
||||||
@ -65,6 +65,19 @@ book common details =
|
|||||||
Book details |> Content common |> tags
|
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
|
{-| These fields apply to any type in the og object types
|
||||||
See <https://ogp.me/#metadata> and <https://ogp.me/#optional>
|
See <https://ogp.me/#metadata> and <https://ogp.me/#optional>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user