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

feat(custom buttons): Added custom buttons #61

Merged
merged 1 commit into from
Nov 24, 2021
Merged

Conversation

timothystewart6
Copy link
Contributor

@timothystewart6 timothystewart6 commented Nov 24, 2021

Proposed Changes

  • Custom Buttons!
  • This closes Generic Links #5
  • You can now add an unlimited amount of custom buttons by adding ENV variables like so:
      - CUSTOM_BUTTON_TEXT=Visit My Site,Visit My OTHER Site
      - CUSTOM_BUTTON_URL=https://technotim.live,https://www.youtube.com/channel/UCOk-gHyjcWZNj3Br4oxwh0A
      - CUSTOM_BUTTON_COLOR=#ED2756,#0085FF
      - CUSTOM_BUTTON_TEXT_COLOR=#ffffff,#ffffff
      - CUSTOM_BUTTON_ALT_TEXT=Visit my site!,Visit my OTHER Site!
      - CUSTOM_BUTTON_NAME=HOMEPAGE,HOMEPAGE2

This will render them on your site. If you are adding multiple, just be sure to separate the values with commas! ,
It also works with BUTTON_ORDER if you want to rearrange them.

image

Checklist

  • Tested locally
  • Ran yarn ci to test my code
  • Did not add any unnecessary changes
  • All my changes appear after other changes in each file
  • Included a screenshot (if adding a new button)
  • 🚀

@timothystewart6 timothystewart6 merged commit 80dfc03 into master Nov 24, 2021
@timothystewart6 timothystewart6 deleted the custom-buttons branch November 24, 2021 03:17
This was referenced Nov 24, 2021
@hakuyouhiro
Copy link

CUSTOM BUTTON using BUTTON ORDER doesnt work

BUTTON_ORDER=CUSTOM_BUTTON,YOUTUBE,TWITCH,TWITTER,GITHUB,INSTAGRAM,LINKED_IN

This doesnt move the CUSTOM_BUTTON to the top. Am i missing something?

@timothystewart6
Copy link
Contributor Author

if you feel like this is a bug please open an issue however this seems to be working. You should use your custom button name

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.

Generic Links
2 participants