fix: リポジトリを環境変数から取得

This commit is contained in:
moris 2024-12-01 21:54:52 +09:00
parent d56d325f59
commit 8ab1edf670

View File

@ -6,7 +6,7 @@
import Share from './share.svelte'
import Profile from './profile.svelte'
import { base } from '$app/paths';
import { PUBLIC_HOSTNAME } from '$env/static/public';
import { PUBLIC_HOSTNAME, PUBLIC_POST_REPO } from '$env/static/public';
const baseURL = `https://${PUBLIC_HOSTNAME}${base}`
@ -68,8 +68,10 @@
</div>
<div class="data">
<div><a target="_blank" href="https://git.moris.day/moris/test-sub/commits/branch/main/Posts/{data.id}.md">History</a></div>
{#if PUBLIC_POST_REPO}
<div><a target="_blank" href="{PUBLIC_POST_REPO}/commits/branch/main/Posts/{data.id}.md">History</a></div>
<div class="spacer"></div>
{/if}
<div><a target="_blank" href="raw.md">Raw file</a></div>
</div>
</article>