Move the OGPreview to SEOTricks since that's more what it is now.

main
Zed A. Shaw 1 year ago
parent ab98610fa6
commit 2b11387d4e
  1. 2
      client/components/HeadOnce.svelte
  2. 0
      client/components/SEOTricks.svelte
  3. 4
      rendered/pages/blog/[slug]/index.svelte
  4. 4
      rendered/pages/live/[slug]/index.svelte
  5. 4
      rendered/pages/test_large_card.svelte
  6. 4
      rendered/pages/test_og_card.svelte
  7. 6
      rendered/pages/test_video_card.svelte

@ -3,7 +3,7 @@
* All it does is put its contents into a <svelte:head> so that when you * All it does is put its contents into a <svelte:head> so that when you
* change pages in svelte-route-spa they're updated like you expect for * change pages in svelte-route-spa they're updated like you expect for
* each page. The alternative is to move the <meta>/<link> tags into * each page. The alternative is to move the <meta>/<link> tags into
* a custom component, which I do on the OGPreview.svelte. * a custom component, which I do on the SEOTricks.svelte.
*/ */
<svelte:head> <svelte:head>
<slot> <slot>

@ -1,6 +1,6 @@
<script context="module"> <script context="module">
import markdown from "$/lib/blog.js"; import markdown from "$/lib/blog.js";
import OGPreview from "$/client/components/OGPreview.svelte"; import SEOTricks from "$/client/components/SEOTricks.svelte";
import Markdown from "$/client/components/Markdown.svelte"; import Markdown from "$/client/components/Markdown.svelte";
export const getPaths = () => { export const getPaths = () => {
@ -44,7 +44,7 @@
} }
</script> </script>
<OGPreview og={ og } twitter={ twitter } /> <SEOTricks og={ og } twitter={ twitter } />
<style> <style>
content { content {

@ -13,7 +13,7 @@
</script> </script>
<script> <script>
import OGPreview from "$/client/components/OGPreview.svelte"; import SEOTricks from "$/client/components/SEOTricks.svelte";
import { base_host, twitter_user } from "$/client/config.js"; import { base_host, twitter_user } from "$/client/config.js";
import HLSVideo from "$/client/components/HLSVideo.svelte"; import HLSVideo from "$/client/components/HLSVideo.svelte";
import WTVideo from "$/client/components/WTVideo.svelte"; import WTVideo from "$/client/components/WTVideo.svelte";
@ -56,7 +56,7 @@
} }
</script> </script>
<OGPreview og={ og } twitter={ twitter } /> <SEOTricks og={ og } twitter={ twitter } />
<style> <style>
container { container {

@ -1,6 +1,6 @@
<script> <script>
import Layout from "$/rendered/Layout.svelte"; import Layout from "$/rendered/Layout.svelte";
import OGPreview from "$/client/components/OGPreview.svelte"; import SEOTricks from "$/client/components/SEOTricks.svelte";
import { og_base_host } from "$/client/config.js"; import { og_base_host } from "$/client/config.js";
let og = { let og = {
@ -34,7 +34,7 @@
</style> </style>
<OGPreview og={ og } twitter={ twitter} /> <SEOTricks og={ og } twitter={ twitter} />
<Layout centered={ true }> <Layout centered={ true }>
<card> <card>

@ -1,6 +1,6 @@
<script> <script>
import Layout from "$/rendered/Layout.svelte"; import Layout from "$/rendered/Layout.svelte";
import OGPreview from "$/client/components/OGPreview.svelte"; import SEOTricks from "$/client/components/SEOTricks.svelte";
import { og_base_host } from "$/client/config.js"; import { og_base_host } from "$/client/config.js";
let og = { let og = {
@ -34,7 +34,7 @@
</style> </style>
<OGPreview og={ og } twitter={ twitter} /> <SEOTricks og={ og } twitter={ twitter} />
<Layout centered={ true }> <Layout centered={ true }>
<card> <card>

@ -1,6 +1,6 @@
<script> <script>
import Layout from "$/rendered/Layout.svelte"; import Layout from "$/rendered/Layout.svelte";
import OGPreview from "$/client/components/OGPreview.svelte"; import SEOTricks from "$/client/components/SEOTricks.svelte";
import { Hydrate } from '@jamcart/7ty/components'; import { Hydrate } from '@jamcart/7ty/components';
import config from "$/client/config.js"; import config from "$/client/config.js";
import Video from "$/client/components/Video.svelte"; import Video from "$/client/components/Video.svelte";
@ -30,7 +30,7 @@
"image:alt": "A drawing of Zed by Zed.", // max 420 chars image alt "image:alt": "A drawing of Zed by Zed.", // max 420 chars image alt
"site": config.twitter_user, // @username of site "site": config.twitter_user, // @username of site
"title": og.title, "title": og.title,
"player": `${ og_base_host }/video_container.html`, "player": `${ config.og_base_host }/video_container.html`,
"player:width": "1280", "player:width": "1280",
"player:height": "720" "player:height": "720"
} }
@ -48,7 +48,7 @@
</style> </style>
<OGPreview og={ og } twitter={ twitter} /> <SEOTricks og={ og } twitter={ twitter} />
<Layout centered={ true }> <Layout centered={ true }>
<card> <card>

Loading…
Cancel
Save