# Add Ishara to Hugo

Add the feedback widget to a Hugo site by pasting one script tag into the footer partial that your base template includes on every page.

- Where it goes: Your footer partial, e.g. `layouts/_partials/footer.html`
- Allowed domains: your own domain
- Time: about 3 minutes

## Steps

1. In Ishara, open **Sites → your site → Install** and copy the line under **Add the line to your site**. Your site’s key is already in it:

```html
<script src="https://useishara.com/w.js" data-site="pk_…" defer></script>
```

2. Paste the line at the end of your footer partial, `layouts/_partials/footer.html` (create it if your site doesn’t have one):

```html
<footer><!-- your footer --></footer>
<script src="https://useishara.com/w.js" data-site="pk_…" defer></script>
```

3. Make sure your base template, `layouts/baseof.html`, includes the partial at the end of `<body>`. Every page built on it then gets the widget:

```html
<!DOCTYPE html>
<html lang="{{ site.Language.Locale }}">
<head>{{ partial "head.html" . }}</head>
<body>
  <header>{{ partial "header.html" . }}</header>
  <main>{{ block "main" . }}{{ end }}</main>
  {{ partial "footer.html" . }}
</body>
</html>
```

4. Build the site with `hugo build` and deploy it.
5. Open your site. Back on the **Install** page, **Check it’s live** turns into **The widget is live** as soon as the widget loads. Then open the **Reviewer link** from the same page: only people who open it see **Leave a note**.

## Good to know

- Hugo outputs HTML you type into a template exactly as written; it only escapes the values in `{{ }}` actions.
- Current Hugo docs use `layouts/baseof.html` and `layouts/_partials/`. If your site or theme keeps its templates elsewhere, add the line to the partial or base template it actually uses.

Checked against the official docs on 2026-11-12: [Hugo: template types](https://gohugo.io/templates/types/), [Hugo: template lookup order](https://gohugo.io/templates/lookup-order/), [Hugo: partials.Include](https://gohugo.io/functions/partials/include/).
