Skip to content

Commit eb765fd

Browse files
bdashradBud Parr
authored andcommitted
Social icon updates (#51)
* add linkedin * update github svg to fix spacing * add colors from brandcolors.net
1 parent 293cede commit eb765fd

6 files changed

Lines changed: 20 additions & 7 deletions

File tree

exampleSite/config.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ enableRobotsTXT = true
2323
instagram = ""
2424
youtube = ""
2525
github = ""
26+
linkedin = ""
2627
# choose a background color from any on this page: http://tachyons.io/docs/themes/skins/ and preface it with "bg-"
2728
background_color_class = "bg-black"
2829
featured_image = "/images/gohugo-default-sample-hero-image.jpg"

layouts/partials/social-follow.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@
2020
{{ partial "svg/youtube.svg" (dict "size" $icon_size) }}
2121
</a>
2222
{{ end }}
23+
{{ with .Site.Params.linkedin }}
24+
<a href="{{ . }}" class="link-transition linkedin link dib z-999 pt3 pt0-l mr3" title="LinkedIn link">
25+
{{ partial "svg/linkedin.svg" (dict "size" $icon_size) }}
26+
</a>
27+
{{ end }}
2328
{{ with .Site.Params.github }}
2429
<a href="{{ . }}" class="link-transition github link dib z-999 pt3 pt0-l mr3" title="Github link">
2530
{{ partial "svg/github.svg" (dict "size" $icon_size) }}

layouts/partials/svg/github.svg

Lines changed: 2 additions & 2 deletions
Loading

layouts/partials/svg/linkedin.svg

Lines changed: 3 additions & 0 deletions
Loading

src/css/_social-icons.css

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,21 @@
66
}
77

88
.twitter:hover {
9-
fill: #55acee;
9+
fill: #1da1f2;
1010
}
1111

1212
.instagram:hover {
13-
fill: #e95950;
13+
fill: #e1306c;
1414
}
1515

1616
.youtube:hover {
17-
fill: #bb0000;
17+
fill: #cd201f;
1818
}
1919

2020
.github:hover {
21-
fill: #FFFFFF;
21+
fill: #6cc644;
22+
}
23+
24+
.linkedin:hover {
25+
fill: #0077b5
2226
}

static/dist/main.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)