eapoland / landing-page

Nowa strona efektywnego altruizmu w Polsce
https://eapoland.github.io/landing-page/
0 stars 2 forks source link

Dynamically generated filenames in URLs for blog posts #59

Closed michaltrzesimiech closed 6 years ago

michaltrzesimiech commented 6 years ago

We currently have:

http://efektywnyaltruizm.org/blog/post-1.html http://efektywnyaltruizm.org/blog/post-2.html http://efektywnyaltruizm.org/blog/post-3.html

How about adding a way to make the file names in these URLs customisable or generated dynamically from article titles?

gaugedaway commented 6 years ago

Well, they are already customizable - by changing the filename and the corresponding record in JSON file. But you're right that generating them from titles is a good idea and I'll implement it.

I actually have an idea for replacing the JSON file as metadata provider by front matter (similar to http://assemble.io/docs/YAML-front-matter.html), which would allow non-technical writers to specify title, description, etc. in a clean way on top of the post's file, without worring about assigning unique post ids, naming files, etc. (they would be created from title by the build script).

Anyway, you can assign me to that.