• Stars
    star
    179
  • Rank 207,077 (Top 5 %)
  • Language
    CSS
  • License
    MIT License
  • Created almost 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Markdown-based Blog Built with Sapper

sapper-blog-template

A starter template for building markdown-powered blogs with Sapper and Svelte.

๐Ÿ‘‰ Demo

โœจ Getting started

npx degit Charca/sapper-blog-template my-blog
cd my-blog
npm install # or yarn!
npm run dev

Open up localhost:3000 and start clicking around.

Consult sapper.svelte.dev for help getting started.

๐Ÿ— Structure

The base structure of this template is the same as Sapper's default template. These are some of the new things you'll find here:

src/routes/blog

This is the home of your blog. The most important files in here are:

  • _posts.js: this module contains the logic for loading and parsing your markdown posts.
  • [slug].svelte: this is the template of your blog post page.
  • index.svelte: this is the template of your article list page.

src/routes/blog/posts

This is where your markdown posts live in. All .md files in this directory are treated as blog posts and parsed automatically by the _posts.js module.

  • The markdown file name becomes the post slug. For example hello-world.md becomes http://localhost:3000/blog/hello-world.
  • Everything between the start of the post and the <!-- more --> tag becomes the article's "excerpt".
  • Frontmatter properties supported are title and date.

๐Ÿš€ Deploy

Deploy to Netlify

๐Ÿ› Bugs and feedback

Sapper is in early development, and may have the odd rough edge here and there. Please be vocal over on the Sapper issue tracker.

More Repositories

1

bootbot

Facebook Messenger Bot Framework for Node.js
JavaScript
967
star
2

astro-blog-template

Personal Blog Template Powered by Astro
Astro
298
star
3

view-transitions-live

View Transitions API Demo
Astro
252
star
4

astro-movies

Movie DB App built with Astro
Astro
203
star
5

astro-records

Astro SPA Demo
TypeScript
188
star
6

cloudflare-pages-auth

Basic Authentication for Cloudflare Pages
TypeScript
174
star
7

reactjs-conf-2016

React.js Conf 2016 React Native App
JavaScript
133
star
8

astro-photo-gallery

Astro + View Transitions Photo Gallery Demo
TypeScript
86
star
9

astro-3d-view-transitions

Astro + View Transitions + React Three Fiber Demo
Astro
74
star
10

astro-view-transitions

Demo of Astro MPA using the View Transitions API
CSS
66
star
11

astro-music

Demo ssing Astro and the Shared Element Transition API
Astro
36
star
12

astro-blog-view-transitions

Astro Blog + View Transitions Demo
Astro
13
star
13

svelte-match3

Match 3 game with Svelte
Svelte
12
star
14

react-lab

React and Flux Training
12
star
15

astro-remove-bg

AI Background Removal app built with Astro + Replicate
Astro
11
star
16

astro-view-transitions-grid

Astro 3.0 + View Transitions Demo
Astro
10
star
17

gulp-arialinter

Gulp plugin for the accessibility tool AriaLinter
JavaScript
9
star
18

gulp-backbone

Boilerplate for Gulp + Backbone.js apps
JavaScript
7
star
19

pokenum

Guess the Pokรฉmon Game for Facebook Messenger
JavaScript
7
star
20

bootbot-cli

BootBot CLI
JavaScript
7
star
21

fake-stripe

Very raw prototype of a Docs Site with features inspired by Stripe Docs, powered by Astro and Starlight
Astro
7
star
22

astro-stable-diffusion

Demo of Astro + Stable Difussion using a Replicate API
Astro
6
star
23

open-prode

Prode Futbol Argentino built with Flux + React
JavaScript
5
star
24

netlify-functions-example

HTML
2
star
25

sveltekit-wordle

Wordle Clone Built with SvelteKit
TypeScript
1
star
26

react-flux-starter

Simple starter kit for webapps using React + Flux
JavaScript
1
star
27

laravel-starter

Laravel + React + Tailwind CSS Starter
PHP
1
star
28

flux

Example app using Flux + React
JavaScript
1
star
29

bookbone

A Backbone + Marionette SPA to find awesome books
JavaScript
1
star
30

nextjs-netlify

JavaScript
1
star
31

charca.dev

Home of https://charca.dev
CSS
1
star
32

talks

Decks and demos for talks I've given.
JavaScript
1
star
33

twimeline-reapp

Twitter client made with Reapp
1
star
34

svelte-beerjs

Deck and demos of Svelte BeerJS CBA Talk
JavaScript
1
star
35

pacamara-astro

Clone of pacamara-astro template
Astro
1
star