Pretty URLs in Neuron

Just pushed a change that enables pretty URLs in Neuron generated sites.

This already works in GitHub Pages (/foo returns /foo.html). Neuron had to be changed to make generated HTML link to /foo instead of /foo.html.

This behaviour is controlled by:

neuron gen --pretty-urls

This is also what neuron-template does by default.

Demo

Other changes

  • Default slug is now minimally transformed — especially with --pretty-urls, it is useful to allow the user to reuse the zettel title ID for URL (except replacing whitespace for legibility).
  • One can always explicitly specify a slug in the zettel YAML.
  • Zettels without date are ignored in “timeline” queries.

← Back to Home