8000 GitHub - danialgoodwin/anonsage.com
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

danialgoodwin/anonsage.com

Repository files navigation

Anonsage.com

Features

  • Preloading: Start loading the link when the user hovers over the link, rather than waiting for the click event. Feels much faster this way.
  • Static site

TODO

  • Add short description to post YAML to be shown on the blog posts pages
  • Add topics filter, choose one tag, and provide count?
  • Maybe add an anonlang/ route that can act exactly like a blog, but without dates. Or, dates is fine too?
  • Experiment more with goatcounter analytics: https://anonsage.goatcounter.com/

Usage

Add blog posts to 'content/'

Test locally: npm run dev

Export static site for server: npm run export

To start a production version of the app, run npm run build && npm start. This will disable live reloading, and activate the appropriate bundler plugins.

The static/ directory contains any static assets that should be available. These are served using sirv.

Server Worker

In the service-worker.js file, you can import these as files from the generated manifest...

import { files } from '@sapper/service-worker';

...so that you can cache them (though you can choose not to, for example if you don't want to cache very large files).

Technology

Eventually

  • npm install -D @sveltejs/svelte-virtual-list for lazy-loading lists. Only render what is visible.

Production mode and deployment

The app can be deployed to any environment that supports Node 10 or above. As an example, to deploy to ZEIT Now when using sapper export, run these commands:

npm install -g now
now

Notes

  • Background color: whitesmoke (#f5f5f5)
  • Theme color: Material design's 'deep orange 500' (#FF5722)

Resources

Libraries

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0