Skip to content

Commit

Permalink
had to comment out transcripts to get site running
Browse files Browse the repository at this point in the history
  • Loading branch information
stolinski committed Sep 25, 2023
1 parent 27fec4f commit 32656bb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 21 deletions.
26 changes: 11 additions & 15 deletions src/lib/meta/Meta.svelte
Original file line number Diff line number Diff line change
@@ -1,28 +1,24 @@
<!-- If you want to have a page title. Simply return { meta_title: 'new title', from any loader } same for description and OG image`-->
<script lang="ts">
import social_banner from '$assets/syntax-banner.png';
import { page } from '$app/stores';
$: title = $page.data.meta_title ?? `Syntax - A Tasty Treats Podcast for Web Developers.`;
$: description =
$page.data.meta_description ??
`Full Stack Developers Wes Bos and Scott Tolinski dive deep into web development topics, explaining how they work and talking about their own experiences.`;
$: image = $page.data.meta_image ?? social_banner;
export let meta_description = `Full Stack Developers Wes Bos and Scott Tolinski dive deep into web development topics, explaining how they work and talking about their own experiences.`;
export let meta_image = social_banner;
export let meta_title = `Syntax - A Tasty Treats Podcast for Web Developers.`;
</script>

<svelte:head>
<title>{title}</title>
<title>{meta_title}</title>
<meta name="theme-color" content="#000000" />
<meta property="og:type" content="website" />

<meta property="og:title" content={title} />
<meta property="twitter:title" content={title} />
<meta property="og:title" content={meta_title} />
<meta property="twitter:title" content={meta_title} />

<meta property="og:description" content={description} />
<meta name="description" content={description} />
<meta property="og:description" content={meta_description} />
<meta name="description" content={meta_description} />

<meta property="og:image" content={image} />
<meta property="og:image:secure_url" content={image} />
<meta property="twitter:image" content={image} />
<meta property="og:image" content={meta_image} />
<meta property="og:image:secure_url" content={meta_image} />
<meta property="twitter:image" content={meta_image} />
<meta property="twitter:card" content="summary_large_image" />
</svelte:head>
4 changes: 2 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import AdminMenu from '$lib/AdminMenu.svelte';
import { debug_mode } from '$state/debug';
export let data;
$: ({ user, user_theme } = data);
$: ({ user, user_theme, meta_description, meta_image, meta_title } = data);
$theme = user_theme;
Expand All @@ -32,7 +32,7 @@
});
</script>

<Meta />
<Meta {meta_description} {meta_image} {meta_title} />

<div class={'theme-' + ($theme || user_theme) + ' theme-wrapper'} class:debug={$debug_mode}>
<Header />
Expand Down
4 changes: 2 additions & 2 deletions src/routes/admin/shows/[show_number]/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
// TODO WES BOS Remove
// @ts-nocheck
import Transcript from '$lib/transcript/Transcript.svelte';
// import Transcript from '$lib/transcript/Transcript.svelte';
import type { PageData } from './$types';
import Dump from './Dump.svelte';
Expand All @@ -15,5 +15,5 @@
{/if}
{#if show?.transcript}
<h2>Transcript</h2>
<Transcript transcript={show?.transcript} />
<!-- <Transcript transcript={show?.transcript} /> -->
{/if}
4 changes: 2 additions & 2 deletions src/routes/shows/[show_number]/[slug]/[[tab]]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import HostsAndGuests from './HostsAndGuests.svelte';
import Icon from '$lib/Icon.svelte';
import NewsletterForm from '$lib/NewsletterForm.svelte';
import Transcript from '$lib/transcript/Transcript.svelte';
// import Transcript from '$lib/transcript/Transcript.svelte';
export let data;
$: ({ show } = data);
Expand Down Expand Up @@ -65,7 +65,7 @@
<!-- svelte-ignore a11y-no-static-element-interactions -->
<section class="layout full" on:click={handleClick}>
{#if $page.params.tab === 'transcript' && show?.transcript && show.aiShowNote}
<Transcript aiShowNote={show.aiShowNote} transcript={show.transcript} />
<!-- <Transcript aiShowNote={show.aiShowNote} transcript={show.transcript} /> -->
{:else}
<div class="main">
{@html show.show_notes}
Expand Down

0 comments on commit 32656bb

Please sign in to comment.