zwbetz-gh / cupper-hugo-theme

An accessibility-friendly Hugo theme, ported from the original Cupper project.
https://cupper-hugo-theme.netlify.app/
MIT License
301 stars 190 forks source link

Social icon links in footer #45

Closed AnnaDodson closed 3 years ago

AnnaDodson commented 3 years ago

Is your feature request related to a problem? Please describe. I wanted social links on my website so I included social icons in the footer

Describe the solution you'd like I've already implemented this on my site using SVGs (Super Tiny Icons) A demo is here: anna-cupper-hugo-theme.netlify.app/. Template is here: github.com/AnnaDodson/cupper-hugo-theme/blob/main/layouts/partials/social.html

Describe alternatives you've considered Social links are only displayed if they exist in the config file so if a user doesn't want them, they don't need to add them. Currently supporting the following out the box and users have the ability to add custom icons by providing the path to the SVGs or html partial.

params:  
  social:
    twitter: "TwitterName"
    gitlab: "GitLabName"
    github: "GitHubName"
    linkedin: "LinkedinName"
    email: "myemail@address.com"
    pinterest: "PinterestName"
    instagram: "InstagramName"
    reddit: "RedditSubreddit"
    slackinvite:
      name: "technottingham"
      code: "enQtNTgxNTYxMTExOTU5LTgxMDVjODUxYWI3MzNjOTJlMWUyMTYxNGEyNzYxNGYxNTExMWU0MmFkYjc5ZjI5MzY4ZmQ3MDdjZjdkNDg0ZDA"
    slackworkspace:
      name: "technottingham"
    facebook: "FacebookName"
    tiktok: "TikTokName"
    telephone: "0123456789"
    misc:
      - name: "Discord"
        url: "https://www.discord.com/"
        icon: "super-tiny-icons/discord.svg"
      - name: "YouTube"
        url: "https://youtube.com"
        icon: "super-tiny-icons/youtube.html"

Additional context If you would like this feature, I will raise a PR for it.

image

zwbetz-gh commented 3 years ago

Hi @AnnaDodson - Since social icons would be a configurable feature, I'm open to adding them to Cupper. If you were to open a PR for them, I'd review it.

zwbetz-gh commented 3 years ago

Bump

zwbetz-gh commented 3 years ago

Closing this issue. Feel free to re-open or reference this issue if a PR is made.