From d4cdca6e70c7c71248a925fb2c501a972b7fc2e7 Mon Sep 17 00:00:00 2001 From: Borja Robert Date: Sun, 2 Oct 2022 12:01:04 +0200 Subject: [PATCH] =?UTF-8?q?no=20s=C3=A9=20por=20d=C3=B3nde=20voy=20pero=20?= =?UTF-8?q?voy=20a=20usar=20hx=20un=20rato?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lib/preview/Preview.svelte | 50 ++++++++----------------- src/lib/templates/Title.svelte | 38 +++++++++++++++++++ src/lib/templates/heading.svelte | 30 ++++++++------- src/lib/templates/templates.js | 1 + src/lib/templates/verde.js | 64 ++++++++++++++++++++++---------- src/routes/[slug]/+page.js | 9 ++++- src/routes/[slug]/+page.svelte | 2 +- 7 files changed, 123 insertions(+), 71 deletions(-) diff --git a/src/lib/preview/Preview.svelte b/src/lib/preview/Preview.svelte index 62c9748..cdaef96 100644 --- a/src/lib/preview/Preview.svelte +++ b/src/lib/preview/Preview.svelte @@ -1,8 +1,8 @@ + +{#if templates[templateIndex] && $title} +
+ {$title} +
+{/if} + + diff --git a/src/lib/templates/heading.svelte b/src/lib/templates/heading.svelte index 9ce4ef7..4665b4a 100644 --- a/src/lib/templates/heading.svelte +++ b/src/lib/templates/heading.svelte @@ -6,20 +6,22 @@ import { heading } from '$lib/stores/store'; -
- {$heading} -
+{#if $heading && templates[templateIndex].heading} +
+ {$heading} +
+{/if}