From 904536b407a1db3ae74ac4c295c22aa79f5f4ec5 Mon Sep 17 00:00:00 2001 From: Korbs Date: Tue, 10 Dec 2024 22:45:19 -0500 Subject: [PATCH] Setup Feelback configuration and componet --- config.json | 7 +++++++ src/layouts/Document.astro | 27 +++++++++++---------------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/config.json b/config.json index 54a8f83..ab8cce5 100755 --- a/config.json +++ b/config.json @@ -9,6 +9,13 @@ "WhiteLabel": "true", "FooterVersion": "true" }, + "FeelbackConfig": { + "Enabled": false, + "ContentSetId": "566e8b96-c65e-4bf7-87df-d22a9f4994a2", + "Present": "like-dislike", + "Question": "Did this article help?", + "Answer": "Thank you for your feedback." + }, "HeaderItems": [ { "text": "Syntax", diff --git a/src/layouts/Document.astro b/src/layouts/Document.astro index 9c166fd..d90c2de 100755 --- a/src/layouts/Document.astro +++ b/src/layouts/Document.astro @@ -1,6 +1,6 @@ --- // Settings -import { SiteSettings } from '@config' +import { SiteSettings, FeelbackConfig } from '@config' import {version} from '../../package.json' // Properties @@ -29,21 +29,16 @@ import "@styles/prism.css" - + {FeelbackConfig.Enabled ? + + : + null + }