Skip to content
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

Add safeURL to social icons links #106

Merged
merged 1 commit into from
Oct 27, 2019
Merged

Conversation

nicolas-guichard
Copy link
Contributor

The social icon links are generated from developer-controlled config.toml file. They can be considered safe.
This enables using various URI schemes such as tel:, sip:, geo: or whatever:.

Copy link
Owner

@Track3 Track3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is useful, just one minor suggestion, it's better using {{.url | safeURL}} instead of {{safeURL .url}} here, just because this pipe like format is used in almost anywhere across the theme. Both is correct and works, just to improve code consistency please change this and I'll merge, thanks!

The social icon links are generated from developer-controlled config.toml file. They can be considered safe.
This enables using various URI schemes such as `tel:`, `sip:`, `geo:` or `whatever:`.
@nicolas-guichard
Copy link
Contributor Author

OK, done! I'm quite new to Hugo and didn't know both syntax were correct.
(I you knew the time it took me to figure out why my tel: link didn't work as expected…)

@Track3 Track3 merged commit f647c23 into Track3:master Oct 27, 2019
@nicolas-guichard nicolas-guichard deleted the patch-1 branch October 27, 2019 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants