Skip to content

Commit

Permalink
Add apple app ID to meta tags (huggingface#1025)
Browse files Browse the repository at this point in the history
Add apple ID to tags
  • Loading branch information
nsarrazin authored Apr 17, 2024
1 parent 6f25c22 commit 0410c78
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ PUBLIC_ANNOUNCEMENT_BANNERS=`[
}
]`

PUBLIC_APPLE_APP_ID=#1234567890 / Leave empty to disable

PARQUET_EXPORT_DATASET=
PARQUET_EXPORT_HF_TOKEN=
ADMIN_API_SECRET=# secret to admin API calls, like computing usage stats or exporting parquet data
Expand Down
2 changes: 1 addition & 1 deletion .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ PUBLIC_APP_DATA_SHARING=0
PUBLIC_APP_DISCLAIMER=1

PUBLIC_PLAUSIBLE_SCRIPT_URL="/js/script.js"

PUBLIC_APPLE_APP_ID=6476778843
# Not part of the .env but set as other variables in the space
# ADDRESS_HEADER=X-Forwarded-For
# XFF_DEPTH=2
Expand Down
5 changes: 5 additions & 0 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import { browser } from "$app/environment";
import {
PUBLIC_APPLE_APP_ID,
PUBLIC_APP_DESCRIPTION,
PUBLIC_ORIGIN,
PUBLIC_PLAUSIBLE_SCRIPT_URL,
Expand Down Expand Up @@ -176,6 +177,10 @@
src={PUBLIC_PLAUSIBLE_SCRIPT_URL}
></script>
{/if}

{#if PUBLIC_APPLE_APP_ID}
<meta name="apple-itunes-app" content={`app-id=${PUBLIC_APPLE_APP_ID}`} />
{/if}
</svelte:head>

{#if !$settings.ethicsModalAccepted && $page.url.pathname !== `${base}/privacy`}
Expand Down

0 comments on commit 0410c78

Please sign in to comment.