Skip to content

tstromberg/nykya

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nykya

Static blogging platform.

Setting a root directory

If you get tired of specifying nykya --root to point to the site directory, you can set it as a persistent root directory:

  • UNIX: export NYKYA_ROOT=/site
  • Windows: [System.Environment]::SetEnvironmentVariable('NYKYA_ROOT', 'C:\Users\spam1\site', [System.EnvironmentVariableTarget]::User)

Reference

nykya

Supported examples

  • ny add thought "Where am I going with my life? - record a new thought

  • ny add post - open a text editor to record a new post

  • ny add post /path/to/post.md:

    • If within the site root, append frontmatter
    • If outside of site root, copy it and append frontmatter
  • ny add image /path/to/image ...

    • Same semantics as a new post

Add from in/ or add from another directory?

The semantics are slightly different:

  • It isn't necessary to run add on an object that already exists in in/. They are included by default.

Verbs

  • add - add something
  • dev - startup development webserver
  • render - write static output

Future:

  • rm - remove something
  • sync - resync post content

Objects

  • photo - local or remote URL to JPG
  • post - local or remote URL to HTML
    • FUTURE: Google Docs integration
  • thought - quick inline text post

Flags

  • --root - site directory containing nykya.yaml file (config)
  • --description -

About

nykyä static blogging platform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published