gitlink (version 0.1.3)

ribbon_img: Build a GitHub Ribbon from an Image

Description

Publicly available ribbon images began the "GitHub ribbon craze." This is a helper function that client-side retrieves these images. As a result, only certain colors are available. ribbon_css is usually preferred for many reasons.

Usage

ribbon_img(link, position = "right", color = "white")

get_color_lookup()

Arguments

link

The URL that the ribbon will link to

position

The position to place the ribbon in (either "left" or "right")

color

The color for the ribbon. One of get_color_lookup()

Value

HTML that can be injected into any HTML output

Details

NOTE that this creates a dependency on these image files, which are hosted publicly by GitHub on AWS.

See Also

ribbon_css