Open homersimpsons opened 1 year ago
Currently, the hyde_links config option is used directly in the template:
hyde_links
https://github.com/getzola/hyde/blob/e6df4068d44fd0067ab956fd387802d79e36f824/templates/index.html#L43
This is somewhat inconvenient when the site is not hosted at the root of the domain (for instance on github pages).
The 2 inconvenient I can see are:
Here are the options I can see of for the current behavior of the list:
https://...com/my/page
my/page
/my/page
I think it would be a good addition if it could be prefixed with the base_url or if there was a syntax to use base_url in the config.toml.
base_url
config.toml
Of course absolute links should still be available.
We can maybe just use get_url ?
I just tested get_url and it looks like it does not handle external links.
get_url
Currently, the
hyde_links
config option is used directly in the template:https://github.com/getzola/hyde/blob/e6df4068d44fd0067ab956fd387802d79e36f824/templates/index.html#L43
This is somewhat inconvenient when the site is not hosted at the root of the domain (for instance on github pages).
The 2 inconvenient I can see are:
Here are the options I can see of for the current behavior of the list:
https://...com/my/page
=> has to update everything on domain changemy/page
=> breaks on most pages/my/page
=> works well but not suitable if the hosing is not on the root and changesI think it would be a good addition if it could be prefixed with the
base_url
or if there was a syntax to usebase_url
in theconfig.toml
.Of course absolute links should still be available.