Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
fix origin
Browse files Browse the repository at this point in the history
  • Loading branch information
Eggrror404 committed Feb 3, 2024
1 parent c1b7dbf commit d3dffe9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:

- name: build
env:
ORIGIN: "https://eggrror404.github.io"
BASE_PATH: "/${{ github.event.repository.name }}"
run: |
npm run build
Expand Down
6 changes: 3 additions & 3 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,19 @@
import Check from "~icons/mdi/check";
import logo from "$lib/assets/logo.svg";
const HOST = import.meta.env.HOST ?? $page.url.host;
const ORIGIN = import.meta.env.ORIGIN ?? $page.url.origin;
$: info = getPageInfo($page.url.pathname);
// TODO: scroll detection & changing title
</script>

<MetaTags
title={info.title}
description={info.description}
canonical="{HOST}{base}{$page.url.pathname}"
canonical="{ORIGIN}{base}{$page.url.pathname}"
openGraph={{
type: "website",
locale: languageTag(),
images: [{ url: `${HOST}${base}/thumbnail.png`, width: 1280, height: 720, type: "image/png" }]
images: [{ url: `${ORIGIN}${base}/thumbnail.png`, width: 1280, height: 720, type: "image/png" }]
}}
twitter={{ handle: "@tnfshcec", cardType: "summary_large_image" }}
/>
Expand Down

0 comments on commit d3dffe9

Please sign in to comment.