Skip to content

Commit

Permalink
Put link to GitHub repo on its icon in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
yasulab committed Aug 22, 2023
1 parent 5ab467e commit eca0f6a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 7 additions & 4 deletions docs/_data/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ menuSwitcherLabel:
en: '日本語'
ja: 'English'

linkToGitHub:
en: 'https://github.com/remote-jp/remote-in-japan/blob/main/README.en.md'
ja: 'https://github.com/remote-jp/remote-in-japan/blob/main/README.md'
viewOnGitHub:
en: '<a href="https://github.com/remote-jp/remote-in-japan/blob/main/README.en.md">GitHub</a>'
ja: '<a href="https://github.com/remote-jp/remote-in-japan/blob/main/README.md">GitHub</a>'

titleDescription:
en: 'Tech remote jobs in Japan'
ja: 'Tech remote jobs in Japan'
Expand All @@ -13,10 +20,6 @@ searchPlaceholder:
en: 'Search for job posts...'
ja: '求人を検索...'

viewOnGitHub:
en: '<a href="https://github.com/remote-jp/remote-in-japan/blob/main/README.en.md">GitHub</a>'
ja: '<a href="https://github.com/remote-jp/remote-in-japan/blob/main/README.md">GitHub</a>'

postTagFullRemote:
en: 'Fully remote 👌'
ja: 'フルリモート 👌'
Expand Down
4 changes: 3 additions & 1 deletion docs/_includes/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
<ul class="languages container align-items-baseline" data-aos="fade-left" data-aos-delay="" data-aos-offset="0">
<li style='margin-right: 20px;'>
<small>
<a href='#'><i class="fa-brands fa-github" style='margin-right: 3px;'></i></a>
<a href='{{ site.data.translations.linkToGitHub[page.lang] }}'>
<i class="fa-brands fa-github" style='margin-right: 3px;'></i>
</a>
{{ site.data.translations.viewOnGitHub[page.lang] }}
</small>
</li>
Expand Down

0 comments on commit eca0f6a

Please sign in to comment.