You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠️ known issue - syntax highlighting of mdsvex currently adds extra @html for no reason. We use a workaround
Setup
npx degit https://github.com/sw-yx/swyxkit
export GH_TOKEN=your_gh_token_here # can skip if just trying out this repo casually
npm install
npm run start
You should be able to deploy this project straight to Netlify as is, just like this project is.
Before deploying, remember to configure /lib/siteConfig.js - just some hardcoded vars i want you to remember to configure.
About swyxkit!
This is swyx's preferred starter for Svelte projects:
Feel free to rip out these opinions as you see fit of course.
Live Demo
See https://swyxkit.netlify.app/
Key Features and Design Considerations:
GH_USER_REPO
variable!/api/rss.xml
) with cachinghydrate
on about and blog pagesmaxage
to 1 minute to cache (consider making it 1-7 days on older posts)netlify.toml
/myblog
instead of/blog/myblog
- sliiightly better SEO/url design)Setup
You should be able to deploy this project straight to Netlify as is, just like this project is.
Before deploying, remember to configure
/lib/siteConfig.js
- just some hardcoded vars i want you to remember to configure.This blog uses GitHub as a CMS - if you are doing any serious development at all, you should give
process.env.GH_TOKEN
to raise rate limit from 60 to 5000. Just make a really basic personal access token, should be enough.https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting
When deploying, don't forget to set it in Netlify: https://app.netlify.com/sites/YOUR_SITE/settings/deploys#environment
Further Reading
You can read:
Acknowledgements
[slug].svelte
has precedence overrss.xml.js
)import.meta.globEager
feature and that makes it static for the RSS...Todos
The text was updated successfully, but these errors were encountered: