fix: canonical header
This commit is contained in:
parent
e8bbb02801
commit
191a23e908
3 changed files with 2 additions and 33 deletions
32
flake.nix
32
flake.nix
|
|
@ -1,32 +0,0 @@
|
||||||
{
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
||||||
deno2nix.url = "github:Makesesama/deno2nix";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = { self, nixpkgs, deno2nix, ... }:
|
|
||||||
let
|
|
||||||
system = "x86_64-linux";
|
|
||||||
pkgs = import nixpkgs {
|
|
||||||
inherit system;
|
|
||||||
overlays = [ deno2nix.overlays.default ];
|
|
||||||
};
|
|
||||||
in {
|
|
||||||
packages.${system}.default = pkgs.deno2nix.mkDenoApp {
|
|
||||||
pname = "hexname-frontend";
|
|
||||||
version = "0.1.0";
|
|
||||||
src = ./src;
|
|
||||||
deps = ./deps.nix;
|
|
||||||
denoJson = ./deno.json;
|
|
||||||
denoLock = ./deno.lock;
|
|
||||||
entrypoint = "main.ts";
|
|
||||||
permissions = [ "--allow-net" "--allow-env" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
devShells.${system}.default = pkgs.mkShell {
|
|
||||||
packages = [ deno2nix.packages.${system}.default ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -8,7 +8,6 @@
|
||||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||||
<meta name="copyright" content="HexName">
|
<meta name="copyright" content="HexName">
|
||||||
<meta name="base" content="https://hexname.com">
|
<meta name="base" content="https://hexname.com">
|
||||||
<link rel="canonical" href="https://hexname.com/">
|
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<meta name="HandheldFriendly" content="True">
|
<meta name="HandheldFriendly" content="True">
|
||||||
|
|
|
||||||
|
|
@ -11,6 +11,7 @@
|
||||||
import Footer from '$lib/Footer.svelte';
|
import Footer from '$lib/Footer.svelte';
|
||||||
import { page } from '$app/state';
|
import { page } from '$app/state';
|
||||||
import { afterNavigate, goto } from '$app/navigation';
|
import { afterNavigate, goto } from '$app/navigation';
|
||||||
|
import { PUBLIC_BACKEND_API_HOST } from '$env/static/public';
|
||||||
|
|
||||||
let { children } = $props();
|
let { children } = $props();
|
||||||
|
|
||||||
|
|
@ -43,6 +44,7 @@
|
||||||
<meta property="og:image" content={homeOg}>
|
<meta property="og:image" content={homeOg}>
|
||||||
<meta property="og:url" content="{page.url.toString()}">
|
<meta property="og:url" content="{page.url.toString()}">
|
||||||
<meta name="twitter:url" content="{page.url.toString()}">
|
<meta name="twitter:url" content="{page.url.toString()}">
|
||||||
|
<link rel="canonical" href={`${PUBLIC_BACKEND_API_HOST}${page.url.pathname}`}/>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue