This is a no-brainer to get your single-post web page up and running. Just have to have Node and NPM installed, and /bin/sh
pointing to Bash shell. Styling is powered by 999.css.
Steps:
- Place the below
package.json
into an empty directory and enter this directory in your command line prompt. - Run
npm run scaffold
. - Edit
domain
,title
andauthor
in theconfig
section of yourpackage.json
. Thedomain
may be either a Surge subdomain or your own (please refer to the Surge docs). If you're going to host your page yourself, you may leavedomain
empty. - Edit your post in the
post.md
file that appeared in the directory after the scaffolding. The format to write is Markdown. - Whenever you're ready, just run
npm run build
, if you're going to host your page yourself, ornpm run deploy
for hosting on Surge (enter your Surge login/password if prompted). In both cases, output will be stored indist/
directory. - ???
- PROFIT!
Feel free to edit src/index.html
according to your particular needs.
P.S. If you need to take down your page when hosting on Surge, just run npm run undeploy
.