pawandubey / griffin

speedy and simplistic static site generator.
Apache License 2.0
27 stars 7 forks source link

Custom slugs #16

Closed pawandubey closed 9 years ago

pawandubey commented 9 years ago

Users should be able to specify custom slugs for their posts and pages, which will be an optional header parameter called "slug". If no slug is specified, or is an empty string, then fallback onto the title for slug generation. The Parsable interface should require a slug field. Modify the code accordingly.

see Parser.writeFile method for output file naming. Additional: refactor to delegate the slug generation to the appropriate class instead of the Parser class. Better OOP.

pawandubey commented 9 years ago

@shubhekshajalan fancy this?

pawandubey commented 9 years ago

Done.

shubheksha commented 9 years ago

The space issue is fixed?

pawandubey commented 9 years ago

No. Didnt check. Or try to reproduce.

shubheksha commented 9 years ago

Then why did you close it?

pawandubey commented 9 years ago

Fixed here: b2dba63feec310b49c57629f35a71d61a9f6415e