yehonadav / www-mikenikles-com

The source code for www.mikenikles.com

Home Page:https://www-mikenikles-com.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mike's blog

The source code for www.mikenikles.com, version 2.0.

Check out the v1.0.0 tag for the source code of the previous version, based on Ghost.org.

Create a new blog post

  1. Use the following command:

    npm run generate blog-post
  2. Write you content, with mdsvex in:

    services/website/src/routes/blog/{slug}/index.svx
    
  3. Add your cover.jpg image and other assets to:

    services/website/static/blog-posts/{slug}/
    
  4. Navigate to services/website and run the following script to create images in WebP and JPEG 2000 formats:

    npm run images

    Until there's a fix, run git restore static/blog-posts. That's because the above script modifies all files and not just the new ones. There's a way to make this work by passing a parameter to that NPM script, but it took me more than 15 minutes to figure out and wasn't a priority.

About

The source code for www.mikenikles.com

https://www-mikenikles-com.now.sh


Languages

Language:Svelte 75.1%Language:JavaScript 20.1%Language:CSS 2.1%Language:HTML 1.4%Language:Handlebars 0.7%Language:Dockerfile 0.5%