This patch makes the "home" argument to the "hyde" entry point function completely optional. If provided, it uses that argument's value, if not provided, it uses the built-in "vc-find-root" to attempt to find the Jekyll root by looking for "_config.yml," which all Jekyll sites have. If it fails to find that file, it then prompts the user for a directory.
I also modified the prompt text from "Blog : " to "Jekyll root: ", but of course feel free to change it back; the colon spacing in this patch is consistent with other Emacs packages and Jekyll sites are not necessarily blogs.
This patch makes the "home" argument to the "hyde" entry point function completely optional. If provided, it uses that argument's value, if not provided, it uses the built-in "vc-find-root" to attempt to find the Jekyll root by looking for "_config.yml," which all Jekyll sites have. If it fails to find that file, it then prompts the user for a directory.
I also modified the prompt text from "Blog : " to "Jekyll root: ", but of course feel free to change it back; the colon spacing in this patch is consistent with other Emacs packages and Jekyll sites are not necessarily blogs.