From 25581cc44637909a75aacdf33f896192f0569689 Mon Sep 17 00:00:00 2001 From: Hue <19755727+HueLiu@users.noreply.github.com> Date: Sun, 31 Oct 2021 17:15:57 +0800 Subject: [PATCH] fix(comments/cusdis): use the correct script for the self-hosted version (#403) * Modify the Self-hosting js source path * refactor(comments/cusdis): avoid multiple if statement Co-authored-by: Jimmy Cai --- layouts/partials/comments/provider/cusdis.html | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/layouts/partials/comments/provider/cusdis.html b/layouts/partials/comments/provider/cusdis.html index 71863f3..a89746c 100644 --- a/layouts/partials/comments/provider/cusdis.html +++ b/layouts/partials/comments/provider/cusdis.html @@ -1,14 +1,11 @@ +{{- $host := default "https://cusdis.com" .Site.Params.comments.cusdis.host -}}
- + \ No newline at end of file +