Skip to content

Commit

Permalink
✨ Add support for custom themeUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Jan 24, 2021
1 parent d55790d commit b388ca2
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/routes/_layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
{#if config["status-website"].customHeadHtml}
{@html config["status-website"].customHeadHtml}
{/if}
<link
rel="stylesheet"
href={`${config.path}/themes/${(config["status-website"] || {}).theme || "light"}.css`}
/>
{#if config["status-website"].themeUrl}
<link rel="stylesheet" href={config["status-website"].themeUrl} />
{:else}
<link
rel="stylesheet"
href={`${config.path}/themes/${(config["status-website"] || {}).theme || "light"}.css`}
/>
{/if}
<link rel="stylesheet" href={`${config.path}/global.css`} />
<link
rel="icon"
Expand Down

0 comments on commit b388ca2

Please sign in to comment.