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

Don't display Twitter "@" when handle isn't set #529

Merged
merged 3 commits into from Jun 5, 2016

Conversation

yvovandoorn
Copy link
Contributor

Add a hugo parameter check prior to displaying twitter handle. By default if the parameter is not set (0 byte content) it pass the if statement. (ref: https://gohugo.io/templates/go-templates/#conditionals)

This fixed #366

… Add in one of the <br>s if twitter handle is set
@KrisBuytaert KrisBuytaert merged commit bf6fd50 into master Jun 5, 2016
@bridgetkromhout
Copy link
Collaborator

Thanks, @yvovandoorn!

@bridgetkromhout bridgetkromhout deleted the yvovandoorn/FixTwitterWhenNotPresent branch June 5, 2016 21:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

remove twitter handle link if it doesn't exist
4 participants