1
1
mirror of https://github.com/srid/ema.git synced 2024-11-25 20:12:20 +03:00

docs: add webapp manifest

This commit is contained in:
Sridhar Ratnakumar 2021-04-25 14:14:48 -04:00
parent 91e72edfa8
commit 267c12b533
2 changed files with 13 additions and 2 deletions

10
docs/manifest.json Normal file
View File

@ -0,0 +1,10 @@
{
"short_name": "Ema",
"name": "Ema static site generator",
"description": "Ema static site generator (Jamstack) in Haskell",
"start_url": "/",
"background_color": "#d53f8c",
"display": "standalone",
"scope": "/",
"theme_color": "#d53f8c"
}

View File

@ -89,7 +89,7 @@ instance Ema Sources SourcePath where
staticRoutes (Map.keys . untag -> spaths) =
spaths
staticAssets _ =
["ema.svg"]
["manifest.json", "ema.svg"]
main :: IO ()
main =
@ -133,7 +133,8 @@ render emaAction srcs spath = do
H.meta ! A.name "description" ! A.content "Ema static site generator (Jamstack) in Haskell"
favIcon
-- Need to support static files, first. cf. https://web.dev/themed-omnibox/
-- H.meta ! A.name "theme-color" ! A.content "#d53f8c"
H.link ! A.rel "manifest" ! A.href "/manifest.json"
H.meta ! A.name "theme-color" ! A.content "#d53f8c"
unless (spath == indexSourcePath) prismJs
Tailwind.layout emaAction headWidget $ do
H.div ! A.class_ "flex justify-center p-4 bg-red-500 text-gray-100 font-bold text-2xl" $ do