While trying to create an AMP webpage, I ran into the problem of not being able to use the JavaScript dependant GitHub buttons implementations currently available. So I created a CSS-only variant using GitHub's octicons and layered backgrounds in CSS3.
- Just copy the text in here to your
<style amp-custom>
tag. - And add a
class="gh-button"
to any a or button you want. - Don't forget to add text!
It should look like <a class="gh-button">View on GitHub</a>
.
Find an example of the buttons at https://trenton-telge.github.io/gh-buttons