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

Create blog badge #12

Open
matt-dray opened this issue Aug 24, 2023 · 0 comments
Open

Create blog badge #12

matt-dray opened this issue Aug 24, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@matt-dray
Copy link
Owner

matt-dray commented Aug 24, 2023

# Set path to custom logo (a gif in this case)
logo <- "https://raw.githubusercontent.com/matt-dray/rostrum-blog-2/main/images/logo-green-trans.png"

# Set underlying badge link (where the badge-click will take you)
link <- "https://www.rostrum.blog/"

blog_badge <- badgr::get_badge(
  label = "rostrum.blog",   # left-side text
  message = "post",         # right-side text
  color = "00ff00",         # left-side colour (green)
  label_color = "black",    # right_side colour
  md_link = link,           # where to go when clicked
  logo_path = logo,         # path to my logo
  browser_preview = FALSE,  # don't open preview
  to_clipboard = TRUE       # copy to clipboard
)

The badge can be viewed here in the browser.

Issues:

  • white on green on right side isn't very readble
  • want to use the gif version of the image, but its two frames don't bounce, it seems
@matt-dray matt-dray added the enhancement New feature or request label Aug 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant