Skip to content

Commit 596bfc6

Browse files
committed
fix: added links to linkedin
1 parent 73c35f8 commit 596bfc6

File tree

5 files changed

+23
-4
lines changed

5 files changed

+23
-4
lines changed

_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ baseurl: "" # the subpath of your site, e.g. /blog
77
url: "https://activitywatch.net" # the base hostname & protocol for your site
88
twitter_username: ActivityWatchIt
99
github_username: ActivityWatch
10+
linkedin_company: activitywatch
1011

1112
# Build settings
1213
markdown: kramdown

_includes/footer.pug

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,13 @@ html
1111
ul.social-media-list
1212
| {% if site.github_username %}
1313
li {% include icon-github.html username=site.github_username %}
14-
| {% endif %} {% if site.twitter_username %}
14+
| {% endif %}
15+
| {% if site.twitter_username %}
1516
li {% include icon-twitter.html username=site.twitter_username %}
1617
| {% endif %}
18+
| {% if site.linkedin_company %}
19+
li {% include icon-linkedin.html company=site.linkedin_company %}
20+
| {% endif %}
1721
.footer-col.footer-col-2
1822
.footer-col.footer-col-2
1923
ul.contact-list
@@ -24,6 +28,8 @@ html
2428
small {% include icon-github.html username="ErikBjare" %}
2529
li
2630
small {% include icon-twitter.html username="ErikBjare" %}
31+
li
32+
small {% include icon-linkedin.html username="erikbjareholt" %}
2733
//li><small><a href="mailto:{{ site.email }}">{{ site.email }}</a></small></li
2834
.footer-col.footer-col-2
2935
ul.contact-list
@@ -32,3 +38,7 @@ html
3238
small Maintainer
3339
li
3440
small {% include icon-github.html username="johan-bjareholt" %}
41+
li
42+
small {% include icon-twitter.html username="johan_bjareholt" %}
43+
li
44+
small {% include icon-linkedin.html username="johanbjareholt" %}

_includes/icon-linkedin.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{% if include.username %}
2+
<a target=_blank href="https://www.linkedin.com/in/{{ include.username }}/"><span class="icon icon--linkedin">{% include icon-linkedin.svg %}</span><span class="username"> {{ include.username }}</span></a>
3+
{% elsif include.company %}
4+
<a target=_blank href="https://www.linkedin.com/company/{{ include.company }}/"><span class="icon icon--linkedin">{% include icon-linkedin.svg %}</span><span class="username"> {{ include.company }}</span></a>
5+
{% endif %}

_includes/icon-linkedin.svg

Lines changed: 1 addition & 0 deletions
Loading

_sass/_base.scss

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,12 @@ pre {
219219
width: 16px;
220220
height: 16px;
221221
vertical-align: middle;
222+
}
223+
}
222224

223-
path {
224-
fill: $grey-color;
225-
}
225+
.icon--linkedin {
226+
> svg > g > path:first-child {
227+
fill: $grey-color;
226228
}
227229
}
228230

0 commit comments

Comments
 (0)