nsarrazin HF staff commited on
Commit
0410c78
1 Parent(s): 6f25c22

Add apple app ID to meta tags (#1025)

Browse files
Files changed (3) hide show
  1. .env +2 -0
  2. .env.template +1 -1
  3. src/routes/+layout.svelte +5 -0
.env CHANGED
@@ -114,6 +114,8 @@ PUBLIC_ANNOUNCEMENT_BANNERS=`[
114
  }
115
  ]`
116
 
 
 
117
  PARQUET_EXPORT_DATASET=
118
  PARQUET_EXPORT_HF_TOKEN=
119
  ADMIN_API_SECRET=# secret to admin API calls, like computing usage stats or exporting parquet data
 
114
  }
115
  ]`
116
 
117
+ PUBLIC_APPLE_APP_ID=#1234567890 / Leave empty to disable
118
+
119
  PARQUET_EXPORT_DATASET=
120
  PARQUET_EXPORT_HF_TOKEN=
121
  ADMIN_API_SECRET=# secret to admin API calls, like computing usage stats or exporting parquet data
.env.template CHANGED
@@ -237,7 +237,7 @@ PUBLIC_APP_DATA_SHARING=0
237
  PUBLIC_APP_DISCLAIMER=1
238
 
239
  PUBLIC_PLAUSIBLE_SCRIPT_URL="/js/script.js"
240
-
241
  # Not part of the .env but set as other variables in the space
242
  # ADDRESS_HEADER=X-Forwarded-For
243
  # XFF_DEPTH=2
 
237
  PUBLIC_APP_DISCLAIMER=1
238
 
239
  PUBLIC_PLAUSIBLE_SCRIPT_URL="/js/script.js"
240
+ PUBLIC_APPLE_APP_ID=6476778843
241
  # Not part of the .env but set as other variables in the space
242
  # ADDRESS_HEADER=X-Forwarded-For
243
  # XFF_DEPTH=2
src/routes/+layout.svelte CHANGED
@@ -8,6 +8,7 @@
8
  import { browser } from "$app/environment";
9
 
10
  import {
 
11
  PUBLIC_APP_DESCRIPTION,
12
  PUBLIC_ORIGIN,
13
  PUBLIC_PLAUSIBLE_SCRIPT_URL,
@@ -176,6 +177,10 @@
176
  src={PUBLIC_PLAUSIBLE_SCRIPT_URL}
177
  ></script>
178
  {/if}
 
 
 
 
179
  </svelte:head>
180
 
181
  {#if !$settings.ethicsModalAccepted && $page.url.pathname !== `${base}/privacy`}
 
8
  import { browser } from "$app/environment";
9
 
10
  import {
11
+ PUBLIC_APPLE_APP_ID,
12
  PUBLIC_APP_DESCRIPTION,
13
  PUBLIC_ORIGIN,
14
  PUBLIC_PLAUSIBLE_SCRIPT_URL,
 
177
  src={PUBLIC_PLAUSIBLE_SCRIPT_URL}
178
  ></script>
179
  {/if}
180
+
181
+ {#if PUBLIC_APPLE_APP_ID}
182
+ <meta name="apple-itunes-app" content={`app-id=${PUBLIC_APPLE_APP_ID}`} />
183
+ {/if}
184
  </svelte:head>
185
 
186
  {#if !$settings.ethicsModalAccepted && $page.url.pathname !== `${base}/privacy`}