{"id":18388334,"url":"https://github.com/cecilapp/theme-netlify","last_synced_at":"2026-01-22T20:32:00.021Z","repository":{"id":56951848,"uuid":"304157151","full_name":"Cecilapp/theme-netlify","owner":"Cecilapp","description":"The Netlify component theme for Cecil provides support of Netlify's _redirects and _header.","archived":false,"fork":false,"pushed_at":"2025-03-28T14:25:03.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T12:50:06.387Z","etag":null,"topics":["cecil","cecil-theme-component","netlify"],"latest_commit_sha":null,"homepage":"https://cecil.app/themes/components/","language":"Twig","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Cecilapp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":"ArnaudLigny","open_collective":"cecil"}},"created_at":"2020-10-14T23:13:57.000Z","updated_at":"2025-03-28T14:24:57.000Z","dependencies_parsed_at":"2022-08-21T03:40:27.438Z","dependency_job_id":"b4495606-dd9a-4a92-ab6c-66ca6f495b4d","html_url":"https://github.com/Cecilapp/theme-netlify","commit_stats":{"total_commits":37,"total_committers":2,"mean_commits":18.5,"dds":"0.027027027027026973","last_synced_commit":"29e3a5bbb5da906ba9bfb660de4bf35ba0fedf8a"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cecilapp%2Ftheme-netlify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cecilapp%2Ftheme-netlify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cecilapp%2Ftheme-netlify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Cecilapp%2Ftheme-netlify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Cecilapp","download_url":"https://codeload.github.com/Cecilapp/theme-netlify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248515065,"owners_count":21117103,"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","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":["cecil","cecil-theme-component","netlify"],"created_at":"2024-11-06T01:33:46.818Z","updated_at":"2026-01-22T20:32:00.011Z","avatar_url":"https://github.com/Cecilapp.png","language":"Twig","funding_links":["https://github.com/sponsors/ArnaudLigny","https://opencollective.com/cecil"],"categories":[],"sub_categories":[],"readme":"# Netlify component theme\n\nThe _Netlify_ component theme for [Cecil](https://cecil.app) provides support of Netlify's [`_redirects`](https://docs.netlify.com/routing/redirects/) and [`_header`](https://docs.netlify.com/routing/headers/).\n\nAfter installation and without any configuration, this component theme generate:\n\n1. a [`_redirects`](./layouts/_default/page.netlify_redirects.twig) file containing HTML's redirections created by Cecil (automatic or created manually with the [`redirect`](https://cecil.app/documentation/content/#redirect) front matter variable)\n2. a [`_headers`](./layouts/_default/page.netlify_headers.twig) file containing HTTP headers created by Cecil (generated from [`headers' configuration`](https://cecil.app/documentation/configuration/#headers))\n\n## Installation\n\n```bash\ncomposer require cecil/theme-netlify\n```\n\n\u003e Or [download the latest archive](https://github.com/Cecilapp/theme-netlify/releases/latest/) and uncompress its content in `themes/netlify`.\n\n## Usage\n\nAdd `netlify` in the `theme` section of your site configuration:\n\n```yaml\ntheme:\n  - netlify\n```\n\n### Add redirections\n\n```yaml\nnetlify:\n  redirects:\n    - from: https://xxxxxx/*\n      to: https://xxxxxx/:splat\n      status: 301 # optional\n      force: true # optional\n```\n\nRefer to [Netlify documentation](https://docs.netlify.com/routing/redirects/redirect-options/) for details.\n\n#### Redirect home page to the user language version\n\n```yaml\nnetlify:\n  redirect_by_language: true # false by default\n```\n\nIt generate the following redirect for each available language (other than the default):\n\n```\n/  /\u003clanguage-code\u003e/    302!    Language=\u003clanguage-code\u003e\n```\n\n_Example:_\n\n```\n/  /fr/    302!    Language=fr\n```\n\n\u003e The language can be specified in the cookie `nf_lang`, so you can override the default behavior with JavaScript (in case of a language dropdown selector for example).\n\n### Add headers\n\n```yaml\nserver:\n  headers:\n    - path: \u003cpath\u003e # Relative path, prefixed with a slash. Support \"*\" wildcard.\n      headers:\n        - key: \u003ckey\u003e\n          value: \"\u003cvalue\u003e\"\n```\n\nDocument: \u003chttps://cecil.app/documentation/configuration/#headers\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcecilapp%2Ftheme-netlify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcecilapp%2Ftheme-netlify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcecilapp%2Ftheme-netlify/lists"}