{"id":18553706,"url":"https://github.com/websemantics/gh-pages-spa","last_synced_at":"2025-04-09T23:30:52.675Z","repository":{"id":143879738,"uuid":"66216692","full_name":"websemantics/gh-pages-spa","owner":"websemantics","description":"Easy way to enable Single Page Applications for GitHub Pages","archived":false,"fork":false,"pushed_at":"2018-01-12T01:49:20.000Z","size":20503,"stargazers_count":42,"open_issues_count":1,"forks_count":17,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T13:21:23.530Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://websemantics.github.io/gh-pages-spa/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/websemantics.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG","contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2016-08-21T19:26:43.000Z","updated_at":"2025-03-07T08:00:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab1c9137-ca51-456c-98a5-450e58a42c2b","html_url":"https://github.com/websemantics/gh-pages-spa","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Fgh-pages-spa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Fgh-pages-spa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Fgh-pages-spa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/websemantics%2Fgh-pages-spa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/websemantics","download_url":"https://codeload.github.com/websemantics/gh-pages-spa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248129533,"owners_count":21052589,"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":[],"created_at":"2024-11-06T21:18:02.719Z","updated_at":"2025-04-09T23:30:47.664Z","avatar_url":"https://github.com/websemantics.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![SPA](https://websemantics.github.io/gh-pages-spa/assets/img/screenshot.png)\n\u003e This is a tiny package to enable building Single Page Applications for [GitHub Pages](https://pages.github.com/).\n\n\n### [Live demo](http://websemantics.github.io/gh-pages-spa/)\n\n\n## Getting Started\n\nUse the template provided in the `example` folder or, follow the easy steps below,\n\n1- Create a new project with two pages `index.html` and `404.html`.\n\n2- Install this package with either [Bower](https://bower.io/) or [NPM](https://www.npmjs.com/),\n\n```bash\nnpm install ghspa\n```\n\n3- Include file `ghspa.js` in each page, as follows,\n\n```html\n\u003cscript type=\"text/javascript\" src=\"path-to/ghspa.js\"\u003e\u003c/script\u003e\n```\n\n4- Set `404.html` page title to `404`, as follows,\n\n```html\n\u003ctitle\u003e404\u003c/title\u003e\n```\n\n5- This package supports the [two types](https://help.github.com/articles/user-organization-and-project-pages/) of GitHub Pages, **User/Organization** and **Project** Pages. The global parameter `projectPages` is set to [`window.projectPages || true`](ghspa.js#L54) which will be always `true` by default for **Project** Pages. To enable **User/Organization** Pages or [Custom Domains](https://help.github.com/articles/using-a-custom-domain-with-github-pages/) change the parameters in ghspa.js from `window.projectPages || true` to `false`,\n\n\n## Credits\n\nThis project was built with these resources,\n\n[SPA Github Pages](https://github.com/rafrex/spa-github-pages), host single page apps with github pages.\n\n[Pokemon Go](http://www.flaticon.com/packs/pokemon-go), a free SVG icon set.\n\n[Semantic-UI](http://semantic-ui.com/), a development framework that helps create beautiful, responsive layouts using human-friendly HTML.\n\n\n## License\n\n[MIT license](http://opensource.org/licenses/mit-license.php)\nCopyright (c) Web Semantics, Inc.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsemantics%2Fgh-pages-spa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebsemantics%2Fgh-pages-spa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebsemantics%2Fgh-pages-spa/lists"}