Skip to content

Commit 7e4fedb

Browse files
committed
feat(header): add GitHub icon button to header
1 parent 3511cdd commit 7e4fedb

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

_includes/github-icons.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
2+
<path d="M9 19c-5 1.5-5-2.5-7-3m14 6v-3.87a3.37 3.37 0 0 0-.94-2.61c3.14-.35 6.44-1.54 6.44-7A5.44 5.44 0 0 0 20 4.77 5.07 5.07 0 0 0 19.91 1S18.73.65 16 2.48a13.38 13.38 0 0 0-7 0C6.27.65 5.09 1 5.09 1A5.07 5.07 0 0 0 5 4.77a5.44 5.44 0 0 0-1.5 3.78c0 5.42 3.3 6.61 6.44 7A3.37 3.37 0 0 0 9 18.13V22"/>
3+
</svg>
4+
5+

_includes/header.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ <h3 class="project-tagline">{{ page.description | default: site.description | de
1717
<button id="searchHeader" class="icon-button" aria-label="Search" onclick="window.location.href='/search-en'">
1818
{% include search-icons.html %}
1919
</button>
20+
21+
<button id="githubHeader" class="icon-button" aria-label="GitHub" onclick="window.location.href='https://github.com/lzwjava/lzwjava.github.io'">
22+
{% include github-icons.html %}
23+
</button>
2024

2125
<!-- <button id="statusHeader" class="icon-button" aria-label="Check Status"
2226
onclick="window.location.href='/status-page-en'">

0 commit comments

Comments
 (0)