ticker fix url

This commit is contained in:
Matěj Divecký 2022-11-02 21:16:37 +01:00
parent a557d6f87b
commit 3d436f68e5
2 changed files with 2 additions and 2 deletions

View file

@ -9,7 +9,7 @@ params:
plausibleSiteID: "nolog.cz" # Plausible site id/domain.
plausibleTrackerURL: "https://plausible.nolog.cz/js/plausible.js" # Plausible url, schemaless and no slash on end. Optional, defaults to "plausible.io/…"
tickerApiURL: https://ticker.nolog.cz/v1/timeline
tickerClientURL: https://demo.ticker.nolog.cz
tickerClientURL: updates.nolog.cz
defaultContentLanguage: cs

View file

@ -1,7 +1,7 @@
<section
class="lg:col-span-5 bg-gray-100 dark:bg-gray-800 rounded-xl px-6 pt-6 pb-24 lg:pb-6 -mx-6 lg:mx-0 -mb-24"
x-data="{ postsResource: { status: 'loading' } }"
x-init="postsResource = await fetch('{{ site.Params.tickerApiURL }}?origin=demo.ticker.nolog.cz&limit=3')
x-init="postsResource = await fetch('{{ site.Params.tickerApiURL }}?origin={{ site.Params.tickerClientURL }}&limit=3')
.then(res => res.json())
.then(json => {
const data = json.data?.messages ?? null