diff --git a/ui/views/websites.templ b/ui/views/websites.templ index c1c7e28..b9c90d3 100644 --- a/ui/views/websites.templ +++ b/ui/views/websites.templ @@ -132,7 +132,7 @@ templ WebsiteDashboard(title string, data CommonData, website models.Website) {
@wSidebar(website)
- {{ gbUrl := fmt.Sprintf("https://%s/websites/%s/guestbook", data.RootUrl, shortIdToSlug(website.ShortId)) }} + {{ gbUrl := fmt.Sprintf("%s/websites/%s/guestbook", data.RootUrl, shortIdToSlug(website.ShortId)) }}

Embed your Guestbook

diff --git a/ui/views/websites_templ.go b/ui/views/websites_templ.go index ba786ab..a560417 100644 --- a/ui/views/websites_templ.go +++ b/ui/views/websites_templ.go @@ -491,7 +491,7 @@ func WebsiteDashboard(title string, data CommonData, website models.Website) tem if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - gbUrl := fmt.Sprintf("https://%s/websites/%s/guestbook", data.RootUrl, shortIdToSlug(website.ShortId)) + gbUrl := fmt.Sprintf("%s/websites/%s/guestbook", data.RootUrl, shortIdToSlug(website.ShortId)) templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 42, "

Embed your Guestbook

There are two ways to add your guestbook to your website: using our JavaScript component (recommended) or with an iframe.

Method 1: JavaScript Component (Recommended)

Step 1: Download and upload the component

Download this JavaScript WebComponent and upload it to your website's JavaScript folder.

Step 2: Include in your HTML head

Add this script tag to your <head> section:
<head> <script type="module" src="js/guestbook.js"></script> </head>

Step 3: Add the custom elements

Place these elements where you want your guestbook to appear:
")
 			if templ_7745c5c3_Err != nil {
 				return templ_7745c5c3_Err