I've been lied to this whole and Svelte doe NOT update the title if you set it with svelte:head.

main
Zed A. Shaw 1 year ago
parent 4398649ebe
commit a48b54df9c
  1. 1
      client/components/SEOTricks.svelte
  2. 1
      rendered/src/template.html

@ -37,6 +37,7 @@
</script> </script>
<svelte:head> <svelte:head>
<title>{ og.title }</title>
<meta name="description" content={ og.description }> <meta name="description" content={ og.description }>
<!--OG Spec for LinkedIn/Facebook/Others --> <!--OG Spec for LinkedIn/Facebook/Others -->
{#each Object.keys(og) as key} {#each Object.keys(og) as key}

@ -1,7 +1,6 @@
<!doctype html> <!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<title>The Bandolier: A Learn JavaScript the Hard Way Project</title>
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" /> <meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="icon" type="image/png" href="/favicon.png" /> <link rel="icon" type="image/png" href="/favicon.png" />

Loading…
Cancel
Save