diff options
author | Guillermo Guerrero Ibarra <wolf.fox1985@gmail.com> | 2021-09-06 00:29:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-06 00:29:54 +0300 |
commit | 152f9787d9078c5aed3ecb8c9b3f455934ff9657 (patch) | |
tree | 67ab9275165fa1ed7c9ba5d4fb17b4b27465bddd | |
parent | 2522af34703eb243895c0ee7c7abac4617c268df (diff) |
Custom url for contact button. (#323)
* Custom url for contact button.
* Update README.md
Co-authored-by: Guillermo Guerrero Ibarra <guillermo.guerrero@deliveroo.co.uk>
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/partials/footer.html | 2 |
3 files changed, 4 insertions, 2 deletions
@@ -560,10 +560,11 @@ Recent posts block can be enabled or disabled (hidden). ##### Contact -A text can be defined, in case there is no text defined the entire block will be hidden: +In contact section there is a button to redirect to contact page, there is the possibility to customize the url also a contact text can be defined, in case there is no text defined the entire block will be hidden: ```toml [params] + contact_url = "/contact" address = """<p class="text-uppercase"><strong>Universal Ltd.</strong> <br>13/25 New Avenue <br>Newtown upon River diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 3ae30fd..1dd0b4a 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -444,6 +444,7 @@ paginate = 10 logo = "img/logo.png" logo_small = "img/logo-small.png" + contact_url = "/contact" address = """<p class="text-uppercase"><strong>Universal Ltd.</strong> <br>13/25 New Avenue <br>Newtown upon River diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index eeddb52..b23582d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -50,7 +50,7 @@ {{ .Site.Params.address | safeHTML }} - <a href="/contact" class="btn btn-small btn-template-main">{{ i18n "contactGoTo" }}</a> + <a href="{{ default "/contact" .Site.Params.contact_url }}" class="btn btn-small btn-template-main">{{ i18n "contactGoTo" }}</a> <hr class="hidden-md hidden-lg hidden-sm"> |