Skip to content

rawjrk/gvfsashgawt-nekoweb

Repository files navigation

gvfsashgawt-nekoweb

Home of the rawest j,rk

Apple Tree I, 1912 by Gustav Klimt [datamoshed]

Long live the Glitch!

Built using custom neko-ssg bundler.

destroy data, not people

Webtooling for creating animated glitch from static images.

core technologies

  • EJS — HTML templating
  • Node — bundler and development server

neko-ssg features

  • development server for localhost
  • build script (ejs->html compilation)
  • html/js/css files compression for production build
  • static files handling
  • folder-based routing

project structure

/.neko-ssg  # bundler directory
/build      # compilation output
/src        # compilation input
  /partials # repeated page elements
  /pages    # page templates/configs
  /scripts  # javascript modules
  /styles   # css stylesheets
/static     # static files (images, etc.)

routing

All you need for routing is to put <url>.ejs and <url>.config.js files inside src/pages directory.

On build your <url>.ejs file will be compiled into <url>.html file.

Development server handles requests this way:

  • GET / returns build/index.html
  • GET /about returns build/about.html
  • GET /static/image.png returns build/static/image.png
  • ...and so on...

errors handling

  • If requested file not found, server returns 404*.
  • If requested file has unsupported format, server returns 415.
  • If using any other HTTP method except GET, server returns 405.

* 404 resolved to build/not_found.html (if exists)

commands

  • yarn build -- run build from source
  • yarn clear -- clears build folder
  • yarn start -- run local server with existing build
  • yarn dev -- run development server (overrides previous build)

deployment

Run build, pack build folder into .zip file and use Import [ZIP] option from Dashboard on Nekoweb.

Find more at deploy2nekoweb to automate this process.

site configuration

  1. Turn on Enable 'nice links'
  2. Serve Folder: specify <project_dir>/build

About

Glitchart portfolio website (Custom SSG)

Resources

License

Stars

Watchers

Forks