{"id":20837832,"url":"https://github.com/raguay/sveltegithubsitetemplate","last_synced_at":"2025-09-02T23:45:41.054Z","repository":{"id":35728881,"uuid":"218741145","full_name":"raguay/SvelteGithubSiteTemplate","owner":"raguay","description":"This is a template for creating Svelte powered websites using markdown.","archived":false,"fork":false,"pushed_at":"2022-12-07T02:52:52.000Z","size":1597,"stargazers_count":16,"open_issues_count":9,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-31T17:59:17.727Z","etag":null,"topics":["cms","github-page","javascript","markdown","mask","svelte"],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/raguay.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}},"created_at":"2019-10-31T10:31:29.000Z","updated_at":"2025-03-17T21:04:14.000Z","dependencies_parsed_at":"2023-01-16T04:18:33.836Z","dependency_job_id":null,"html_url":"https://github.com/raguay/SvelteGithubSiteTemplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raguay%2FSvelteGithubSiteTemplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raguay%2FSvelteGithubSiteTemplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raguay%2FSvelteGithubSiteTemplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raguay%2FSvelteGithubSiteTemplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raguay","download_url":"https://codeload.github.com/raguay/SvelteGithubSiteTemplate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253145913,"owners_count":21861298,"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":["cms","github-page","javascript","markdown","mask","svelte"],"created_at":"2024-11-18T01:08:41.932Z","updated_at":"2025-05-08T20:34:37.878Z","avatar_url":"https://github.com/raguay.png","language":"HTML","readme":"# Svelte GitHub Website Template\n\nThis is a basic website built using [Svelte](https://svelte.dev/) to show the website\nin [GitHub Pages](https://pages.github.com/). When visiting a page that isn't a\npreprogramed svelte page, it pulls in the markdown file\nfor that page, runs it through a [Handlebars](https://handlebarsjs.com) processor, processes it into HTML \nusing [Showdown](https://github.com/showdownjs/showdown), and puts it into the site. Therefore, you\ncompile your site once and just add new markdown files for the pages, posts, etc.\n\nThe code can be used on any server that supports running flat file sites and not just GitHub pages. I wrote\nit for GitHub pages because that is where my site is being hosted.\n\nTo get started, copy the template to your system using:\n\n```sh\nnpx degit raguay/SvelteGithubSiteTemplate \u003cname of your project directory\u003e\ncd \u003cname of your project directory\u003e\nnpm install\n```\n\nThis template makes use of [Mask](https://github.com/jakedeichert/mask) to build the project. To run\nthe development environment, you type:\n\n```sh\nmask dev\n```\n\nor you can just use npm to start the development server: \n\n```sh\nnpm run dev\n```\n\nTo compile the site into the `launch` folder, you type:\n\n```sh\nmask build 'your commit message'\n```\n\nThe mask file, `maskfile.md`, has a lot more work that \nit does for the building process. You can examine this file \nto see what all it does. If you don't have Mask on your system, \nsimply run each command found in the file under `## build` heading.\n\nRun the template in development mode and start making changes. The basics in there will\nhelp you to know what to do.\n\nTo launch your new site, you have to have a GitHub pages account. Once that is setup, set the launch\ndirectory as your repository for that account. When you do a `mask build 'your commit message'`, it\nwill push your site to the GitHub pages.\n\nOnce GitHub pages has synce the changes, it will be live. Once you have the look and feel\nfor your website, you just add markdown pages and edit the markdown indexes to point to them.\nYou do not need to recompile each time you make a change. You just recompile whenever you change\none of the files in the `src` directory. But, the `mask build` command does recompile each time\njust to make sure everything is in order. You can just add markdown files and do the git commit and push \ncommands yourself on the command line.\n\nI have a [tutorial](http://www.customct.com/#/tutorials/svelteweb/using-template) on using this template. Check it out.\n\nHave fun! If you create a site using this template, let me know and I'll add it to my list.\n\n## Sites using Svelte GitHub Website Template\n\n- [Custom Computer Tools](https://customct.com)\n\n## Changes made since initial release:\n\n### 12/10/2019\n\n- Added Theming menu option\n- Added dropdown menus\n- Fixed many bugs and removed redundant code.\n\n### 12/06/2019\n\n- Added responsiveness to the design.\n- Fixed several bugs.\n\n### 11/19/2019\n\n- Fixed bug of not unsubscribing from stores that was causing a slowdown after changing\npages many times. Also, the error page is now a page in the site directory that is loaded. It\nis correctly displayed on page errors.\n\n### 11/18/2019\n\n- Added partials, styles controled by the `info.styles` variable in the `info` Store, and various bug fixes.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraguay%2Fsveltegithubsitetemplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraguay%2Fsveltegithubsitetemplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraguay%2Fsveltegithubsitetemplate/lists"}