diff --git a/src/routes/admin/+layout.svelte b/src/routes/admin/+layout.svelte index 6b755a63..41452c3c 100644 --- a/src/routes/admin/+layout.svelte +++ b/src/routes/admin/+layout.svelte @@ -7,8 +7,8 @@
{ goto(e.detail) diff --git a/src/routes/admin/taglines/+page.svelte b/src/routes/admin/taglines/+page.svelte new file mode 100644 index 00000000..0926c585 --- /dev/null +++ b/src/routes/admin/taglines/+page.svelte @@ -0,0 +1,138 @@ + + +{#if taglines.length > 0} +
+

Taglines

+ +
+ { + taglines.splice( + taglines.findIndex((i) => i == e.detail), + 1 + ) + + // hack for reactivity + taglines = taglines + }} + > + {#each taglines as tagline} +
+ + +
+ +
+
+ {/each} +
+
{ + if (newTagline == '' || !data.site) return + + taglines = [...taglines, newTagline] + + newTagline = '' + }} + > + + + + +{:else} +
+ + + No taglines +
+
{ + if (newTagline == '' || !data.site) return + + taglines = [...taglines, newTagline] + + newTagline = '' + }} + > + + + + + + +
+
+
+{/if}