{"id":9380,"date":"2019-08-04T19:07:12","date_gmt":"2019-08-04T23:07:12","guid":{"rendered":"https:\/\/profitpress.local\/?post_type=sfwd-topic&p=9380"},"modified":"2021-01-23T23:54:09","modified_gmt":"2021-01-24T04:54:09","slug":"how-to-embed-github-contributions-chart-calendar","status":"publish","type":"post","link":"https:\/\/profitpress.local\/how-to-embed-github-contributions-chart-calendar\/","title":{"rendered":"How to Embed GitHub Contributions Chart\/Calendar"},"content":{"rendered":"\n

Wouldn’t it be great to embed your GitHub contribution chart\/calendar into any web page?

Well you can, and it’s very easy!<\/em><\/strong><\/p>\n\n\n\n

How to embed GitHub contributions on a website<\/h2>\n\n\n\n

First you need a web page where you can embed HTML. If you need help with setting up a website, we’ve provide more complete instructions here<\/a>.<\/p>\n\n\n\n

If you already have a web page ready, then embed your contributions chart by using the below HTML image code, just replace username with your GitHub username (e.g. from https:\/\/github.com\/username)<\/em> .<\/p>\n\n\n\n

<img src=\"http:\/\/ghchart.rshah.org\/username\" alt=\"Name Your GitHub chart\"><\/code><\/pre>\n\n\n\n

Here’s an example of what it’ll look like:<\/em><\/p>\n\n\n\n

\"\"\/<\/figure><\/div>\n\n\n\n

If you want to use a custom color for the chart use the below code with your HEX color.<\/p>\n\n\n\n

<img src=\"http:\/\/ghchart.rshah.org\/HEXCOLORCODE\/username\" alt=\"Name Your GitHub chart\" \/><\/code><\/pre>\n\n\n\n

Here’s an example of what it’ll look like:<\/em><\/p>\n\n\n\n

\"\"\/<\/figure><\/div>\n\n\n\n

That’s it, you’re done! Here’s a look at example charts using the code:<\/p>\n\n\n\n


\n\n\n\n

Resources<\/h2>\n\n\n\n