ExtraStatic: powerful and easy publishing

Skip to content
Snippets Groups Projects

Simplify starting point

Merged Chris Dawson requested to merge simplify_starting_point into main
Files
3
+ 19
6
@@ -15,28 +15,41 @@ Read more here: https://svekyll.com
Svekyll achieves perfect lighthouse scores: all 100s
<img src="svekyll-lighthouse-100.png" style="width: 20rem;"/>
<img src="https://files.extrastatic.dev/marketing/svekyll-lighthouse-100.png" style="width: 20rem;"/>
## Quickstart
```
node --version # Please use at least node 18
npm init
# Create a package.json with the right build command
echo '{ "scripts": { "build" : "svekyll-cli build && svekyll-cli finalize" } }' > package.json
# add svekyll-cli
npm add svekyll-cli
# make the posts directory
mkdir -p posts
# Create _config.yml: see https://svekyll.com/Config
echo -e "title: hi\ndescription: my blog" >> _config.yml
# Create a post
echo -e "---\npublished: true\ntitle: First post\n\n---\n\n# My first post\n\nWelcome to Svekyll" >> posts/2023-09-23-hello.md
./node_modules/.bin/svekyll-cli build
./node_modules/.bin/svekyll-cli finalize
# Style using a user.css file: https://blog.svekyll.com/2021-11-13-hacking-svekyll-theme
# Build your blog
npm run build
# Optionally style using a user.css file: https://blog.svekyll.com/2021-11-13-hacking-svekyll-theme
# Or, use a theme in your _config.yml file https://svekyll.com/Theme
# Review your blog (or put up on any webserver as a static site)
cd build && npx http-server # Go to http://localhost:8080.
```
Read more at https://svekyll.com
Interesting in hosting? Contact chris@extrastatic.com to learn about https://extraStatic.com
Interesting in hosting? Contact chris@extrastatic.com to learn about https://extrastatic.com
## Svekyll CLI
Loading