~lord/krasovs.ky

4e0ccd82a78d1e7ee2af18aea9abfb0b30b6456f — Krasovskiy Saveliy Igorevich a month ago b51419e
fix: add url to support .eth origin
2 files changed, 2 insertions(+), 0 deletions(-)

M config.toml
M layouts/partials/remark42.html
M config.toml => config.toml +1 -0
@@ 33,6 33,7 @@ section = ["HTML", "RSS"]
    [params.remark42]
    host = "https://remark42.krasovs.ky"
    siteID = "remark"
    origin = "https://krasovs.ky"
    components = ['embed', 'counter']
    [params.goatcounter]
    host = "https://goatcounter.krasovs.ky"

M layouts/partials/remark42.html => layouts/partials/remark42.html +1 -0
@@ 2,6 2,7 @@
    window.remark_config = {
        host: "{{ site.Params.Remark42.Host }}",
        site_id: "{{ site.Params.Remark42.SiteID }}",
        url: "{{ site.Params.Remark42.Origin }}" + window.location.pathname,
        {{ if .IsIndex }}components: ['counter'],{{ else }}components: ['embed'],{{ end }}
        locale: "{{ site.Language.Lang }}",
        theme: window.matchMedia("(prefers-color-scheme: dark)").matches ? 'dark' : 'light'