{"id":15010986,"url":"https://github.com/elaye/hakyll-favicon","last_synced_at":"2025-10-04T07:55:15.109Z","repository":{"id":62436088,"uuid":"89140075","full_name":"elaye/hakyll-favicon","owner":"elaye","description":"Favicons for Hakyll websites","archived":false,"fork":false,"pushed_at":"2018-09-20T05:18:31.000Z","size":16,"stargazers_count":5,"open_issues_count":2,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-07T09:27:39.409Z","etag":null,"topics":["favicon","hakyll","haskell","web"],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/elaye.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-04-23T12:28:10.000Z","updated_at":"2025-09-06T02:23:46.000Z","dependencies_parsed_at":"2022-11-01T21:30:33.267Z","dependency_job_id":null,"html_url":"https://github.com/elaye/hakyll-favicon","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/elaye/hakyll-favicon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elaye%2Fhakyll-favicon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elaye%2Fhakyll-favicon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elaye%2Fhakyll-favicon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elaye%2Fhakyll-favicon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elaye","download_url":"https://codeload.github.com/elaye/hakyll-favicon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elaye%2Fhakyll-favicon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278283453,"owners_count":25961311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["favicon","hakyll","haskell","web"],"created_at":"2024-09-24T19:38:06.392Z","updated_at":"2025-10-04T07:55:15.074Z","avatar_url":"https://github.com/elaye.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hakyll-favicon [![Build Status](https://travis-ci.org/elaye/mushu.svg?branch=master)](https://travis-ci.org/elaye/hakyll-favicon)\n\nThis library allows you to easily add favicons to your hakyll website.\nYou provide one SVG image and the library will convert it to different resolutions and generate the corresponding html.\n\n## Dependencies\n\nThis library depends on `ImageMagick` to convert the images.\n\n## Usage\n\nFirst, add a `faviconsRules` that points to your main favicon in your `Site.hs` file like this:\n\n```\nmain = hakyll $ do\n  faviconsRules \"images/favicon.svg\" -- path to your favicon\n  ...\n```\n\nSecond, add a `favicons` field in your template `head`:\n\n```\n\u003chead\u003e\n  ...\n  $favicons$\n\u003c/head\u003e\n```\n\nFinally add the favicons context to your template context:\n\n```\nmain = hakyll $ do\n  ...\n  match \"index.html\" $ do\n    ...\n    let ctx = ... `mappend`\n              ... `mappend`\n              faviconsField `mappend` -- add this\n              defaultContext\n    ...\n```\n\nThe [example](example/) directory provides a minimal working example of this.\n\n## Example\n\nFirst, build the example:\n\n    stack build\n\nThen build the example page:\n\n    stack exec example build\n    \nOr you can start a local server to serve the generated page:\n\n    stack exec example watch\n\n## Generated favicons\n\nThe following favicons are generated:\n\ntarget       | format | sizes  | description\n-------------|--------|--------|------------\nall | .ico | 32, 64 | basic favicon\nall | .png | 32 | basic favicon\niOS | .png | 144 | third-generation iPad with high-resolution Retina display\niOS | .png | 114 | iPhone with high-resolution Retina display\niOS | .png | 72 | first- and second-generation iPad\niOS, Android | .png | 57 | non-Retina iPhone, iPod Touch, and Android 2.1+ devices\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felaye%2Fhakyll-favicon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felaye%2Fhakyll-favicon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felaye%2Fhakyll-favicon/lists"}