diff --git a/README.md b/README.md index 8b060ac..246e5d4 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,7 @@ The following options should be under the `[extra]` in `config.toml` - `[[extra.menu.social]]` - the social links on the header of the page - `[extra.footer]` - the footer content on the left - `[[extra.footer.nav]]` - the footer navigations on the right + - `is_absolute_url` - whether to treat `url` as an absolute url (default to `false`, aka `url` is treated relatively) ### Templates diff --git a/config.toml b/config.toml index 533366a..8d85b19 100644 --- a/config.toml +++ b/config.toml @@ -129,4 +129,5 @@ weight = 10 [[extra.footer.nav]] name = "Code of Conduct" url = "/docs/contributing/code-of-conduct/" +is_absolute_url = false weight = 20 diff --git a/config.toml.example b/config.toml.example index a395048..dbdeb51 100644 --- a/config.toml.example +++ b/config.toml.example @@ -140,4 +140,5 @@ weight = 10 [[extra.footer.nav]] name = "Code of Conduct" url = "/docs/contributing/code-of-conduct/" +is_absolute_url = false weight = 20 diff --git a/templates/macros/footer.html b/templates/macros/footer.html index 013843b..bae30af 100644 --- a/templates/macros/footer.html +++ b/templates/macros/footer.html @@ -15,7 +15,11 @@