website/app/Site.elm

35 lines
1.1 KiB
Elm
Raw Normal View History

2023-10-24 05:23:25 +07:00
module Site exposing (config)
import BackendTask exposing (BackendTask)
import FatalError exposing (FatalError)
import Head
import SiteConfig exposing (SiteConfig)
config : SiteConfig
config =
2023-12-10 03:59:01 +07:00
{ canonicalUrl = "https://nganhkhoa.com"
2023-10-24 05:23:25 +07:00
, head = head
}
head : BackendTask FatalError (List Head.Tag)
head =
[ Head.metaName "viewport" (Head.raw "width=device-width,initial-scale=1")
2023-12-10 03:59:01 +07:00
-- , Head.nonLoadingNode "link"
-- [ ( "rel", Head.raw "stylesheet" )
-- , ( "crossorigin", Head.raw "anonymous" )
-- , ( "href", Head.raw "https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.css" )
-- ]
-- , Head.nonLoadingNode "script"
-- [ ( "crossorigin", Head.raw "anonymous" )
-- , ( "href", Head.raw "https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/katex.min.js" )
-- ]
-- , Head.nonLoadingNode "script"
-- [ ( "crossorigin", Head.raw "anonymous" )
-- , ( "href", Head.raw "https://cdn.jsdelivr.net/npm/katex@0.16.9/dist/contrib/auto-render.min.js" )
-- , ( "onload", Head.raw "renderMathInElement(document.body);" )
-- ]
2023-10-24 05:23:25 +07:00
]
|> BackendTask.succeed