Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshnuss/blog-template
A markdown-style blog template for Sapper
https://github.com/joshnuss/blog-template
jamstack markdown sapper svelte
Last synced: 3 months ago
JSON representation
A markdown-style blog template for Sapper
- Host: GitHub
- URL: https://github.com/joshnuss/blog-template
- Owner: joshnuss
- Created: 2020-03-27T03:34:50.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T02:43:30.000Z (about 2 years ago)
- Last Synced: 2024-10-14T22:21:39.151Z (4 months ago)
- Topics: jamstack, markdown, sapper, svelte
- Language: JavaScript
- Homepage:
- Size: 364 KB
- Stars: 28
- Watchers: 3
- Forks: 8
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sapper blog example
Example markdown-style blog using Sapper.
## Links
- DEV article
- [Part 1 - Setup](https://dev.to/joshnuss/create-a-blog-with-markdown-sapper-50ad)
- [Part 2 - Tags](https://dev.to/joshnuss/create-a-blog-with-sapper-markdown-part-2-31m4)
- YouTube screencast:
- [Part 1 - Setup](https://youtu.be/9dSrsDdHyHg)
- [Part 2 - Tags](https://youtu.be/PGLsFfBf1UA)## Getting started
Clone the repo
```
npx degit joshnuss/blog-template my-blog
```### Running the project
Install dependencies and run the project in development mode with:
```bash
cd my-blog
yarn
yarn dev
```Open up [localhost:3000](http://localhost:3000) and start clicking around.
Consult [sapper.svelte.dev](https://sapper.svelte.dev) for help getting started.
## Structure
Posts are stored in the `posts` folder and pages are in the `src/routes` folder
## Production mode and deployment
To generate a production version of your app, run `yarn export` and then deploy it. You can use any host, for example zeit `npm install -g vercel`:
```bash
yarn export
vercel
```## License
MIT