diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2c484f8..ed1556e 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -22,6 +22,7 @@ enableRobotsTXT = true twitter = "https://twitter.com/GoHugoIO" instagram = "" youtube = "" + github = "" # choose a background color from any on this page: http://tachyons.io/docs/themes/skins/ and preface it with "bg-" background_color_class = "bg-black" featured_image = "/images/gohugo-default-sample-hero-image.jpg" diff --git a/layouts/partials/social-follow.html b/layouts/partials/social-follow.html index da3a602..a7240e4 100644 --- a/layouts/partials/social-follow.html +++ b/layouts/partials/social-follow.html @@ -20,3 +20,8 @@ {{ partial "svg/youtube.svg" (dict "size" $icon_size) }} {{ end }} +{{ with .Site.Params.github }} + + {{ partial "svg/github.svg" (dict "size" $icon_size) }} + +{{ end }} diff --git a/layouts/partials/svg/github.svg b/layouts/partials/svg/github.svg new file mode 100644 index 0000000..001bb87 --- /dev/null +++ b/layouts/partials/svg/github.svg @@ -0,0 +1 @@ +GitHub icon diff --git a/src/css/_social-icons.css b/src/css/_social-icons.css index ba67679..a5bcc31 100644 --- a/src/css/_social-icons.css +++ b/src/css/_social-icons.css @@ -1,4 +1,4 @@ -.facebook, .twitter, .instagram, .youtube { +.facebook, .twitter, .instagram, .youtube, .github { fill: #BABABA; } .facebook:hover { @@ -16,3 +16,7 @@ .youtube:hover { fill: #bb0000; } + +.github:hover { + fill: #FFFFFF; +}