-
Notifications
You must be signed in to change notification settings - Fork 0
/
sidebar-icon-links.html
79 lines (72 loc) · 2.47 KB
/
sidebar-icon-links.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<nav id="sidebar-icon-links">
{% if site.hydeout.repo %}
<a id="github-link"
class="icon" title="Github Project" aria-label="Github Project"
href="{{ site.hydeout.repo }}">
{% include svg/github.svg %}
</a>
<!-- <a id="github-download-link"
class="icon" title="Download" aria-label="Download"
href="{{ site.hydeout.repo }}/archive/v{{ site.hydeout.version }}.zip">
{% include svg/download.svg %}
</a> -->
{% endif %}
{% if site.linkedin %}
<a id="linkedin-link"
class="icon" title="LinkedIn Profile" aria-label="LinkedIn Profile"
href="{{ site.linkedin }}">
{% include svg/linkedin.svg %}
</a>
<!-- <a id="github-download-link"
class="icon" title="Download" aria-label="Download"
href="{{ site.hydeout.repo }}/archive/v{{ site.hydeout.version }}.zip">
{% include svg/download.svg %}
</a> -->
{% endif %}
{% if site.linkedin %}
<a id="twitter-link"
class="icon" title="Twitter Profile" aria-label="Twitter Profile"
href="{{ site.twitter_link }}">
{% include svg/twitter.svg %}
</a>
<!-- <a id="github-download-link"
class="icon" title="Download" aria-label="Download"
href="{{ site.hydeout.repo }}/archive/v{{ site.hydeout.version }}.zip">
{% include svg/download.svg %}
</a> -->
{% endif %}
<a id="subscribe-link"
class="icon" title="Subscribe" aria-label="Subscribe"
href="{{ site.baseurl }}/{{ site.feed.path | default: 'feed.xml' }}">
{% include svg/feed.svg %}
</a>
{% comment %}
Check if we have tag or search pages page active before linking to it.
{% endcomment %}
{% assign tags_page = false %}
{% assign search_page = false %}
{% for node in site.pages %}
{% if node.layout == "tags" %}
{% assign tags_page = node %}
{% elsif node.layout == "search" %}
{% assign search_page = node %}
{% endif %}
{% endfor %}
{% if tags_page %}
<a id="tags-link"
class="icon{% if page.url == '/tags' %} active{% endif %}"
title="Tags" aria-label="Tags"
href="{{ site.baseurl }}{{ tags_page.url }}">
{% include svg/tags.svg %}
</a>
{% endif %}
<!-- {% if search_page %}
<a id="search-link"
class="icon{% if page.url == '/search' %} active{% endif %}"
title="Search" aria-label="Search"
href="{{ site.baseurl }}{{ search_page.url }}">
{% include svg/search.svg %}
</a>
{% endif %} -->
{% include custom-icon-links.html %}
</nav>