Skip to content
This repository has been archived by the owner on Jul 8, 2021. It is now read-only.

How to add social media links and icons? #17

Open
Schokolader opened this issue Apr 25, 2016 · 6 comments
Open

How to add social media links and icons? #17

Schokolader opened this issue Apr 25, 2016 · 6 comments

Comments

@Schokolader
Copy link

How can I add social media links and icons in this theme?

@Schokolader
Copy link
Author

And how to delete this telephone icon? I deleted the line of the telephone in the config.toml under the section [params.contact] . But I still have the telephone icon.

@Schokolader
Copy link
Author

ok I got it. It's in the contact.html But how can I make a link with it? I want to add a Instagram Page. I got the instagram logo instead of the phone icon, but how can I make a link?

@Schokolader
Copy link
Author

ok I wrote it directly as a html link in the footer.html. Not nice I guess... :)

@Schokolader
Copy link
Author

Is it possible to add the social media stuff in the config.toml? I guess this would be nice for some first users of this theme... :)

@digitalcraftsman
Copy link
Owner

How can I add social media links and icons in this theme?

Where would you like to add them?

ok I got it. It's in the contact.html But how can I make a link with it? I want to add a Instagram Page. I got the instagram logo instead of the phone icon, but how can I make a link?

Add a HTML link like with the email at the right. Perhaps it's better to add a custom variable to the config file under params, e.g.

[params]
    instagramLink = "https://instagram.com/EXAMPLE"

You can access the values in the templates with {{ .Site.Params.instagramLink }}. This way you don't need to hard-code it in the template.

Is it possible to add the social media stuff in the config.toml? I guess this would be nice for some first users of this theme... :)

What exactly do you have in mind? What should go where?

@Schokolader
Copy link
Author

Yes this is exactly what I thought. And I thought to make this fix in your creative theme template for first users.(only with main social media icons). At first it was hard to find for me where the social media icons are because probably I'm very new to hugo. So I think it would be nice for first users(like I was) to integrate the social media icons in the config.toml. That you only have to fill out your social media links in the config.toml without to write variables in the contact.html.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants