-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle website contacts dynamically #170
Conversation
This commits change the way contacts params are handled: instead of declaring them statically, they are declared as an array of tables in the TOML configuration file, then they are displayed in the two sections (homepage and footer) of the website through the {{ range }} statement. This makes handling multiple contacts params easier and avoids the need of changing manually this two files: - `layouts/partials/footer.html`; - `exampleSite/content/homepage/contact.md`; Signed-off-by: Filippo Fontana <[email protected]>
Looks good. I've branched off |
The phone link does not seem to work. |
I see, it looks like now you have to include the meta-info directly with the parameter value, |
I see, the phone link is broken the same way also in the contacts section. @filippofontana Any chance you would have a look at this? |
Yes of course, I’ll take a look. |
looks fixed in the preview now, thanks for quick action :) |
Hi!
This commits change the way contacts params are handled: instead of declaring them statically, they are declared as an array of tables in the TOML configuration file, then they are displayed in the two sections (homepage and footer) of the website through the {{ range }} statement.
This makes handling multiple contacts params easier and avoids the need of changing manually this two files:
layouts/partials/footer.html
;exampleSite/content/homepage/contact.md
;Of course this results in a breaking change for the template.
I think this new mechanism could be helpful when you need to add multiple contact options to the template.