Skip to content

Commit

Permalink
fix: repository link
Browse files Browse the repository at this point in the history
  • Loading branch information
cfour-hi committed Sep 13, 2023
1 parent 2bf1d04 commit 33e5f07
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/repository-content/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class="broder-b-gray-300 flex h-9 items-center border-b border-solid px-4"
>
<a
:href="selectedRepository?.html_url"
:href="toRepositoryHref(selectedRepository)"
class="inline-flex items-center hover:underline"
rel="noopener noreferrer"
>
Expand Down Expand Up @@ -117,6 +117,9 @@ watchEffect(async () => {
refReadme.value.scrollTo({ top: 0 });
});
});
const toRepositoryHref = (repository) =>
`https://github.com/${repository.owner.login}/${repository.name}`;
</script>

<style src="github-markdown-css/github-markdown-light.css"></style>
Expand Down

0 comments on commit 33e5f07

Please sign in to comment.