Skip to content

Commit

Permalink
Add Customizations/Hooks subsection (#492)
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-baiborodine authored Feb 7, 2023
1 parent 3f54a1a commit 5dbc925
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Please use the following guidelines if you want to start a discussion:
- [Disabled Javascript Support](#disabled-javascript-support)
- [Raw HTML](#raw-html)
- [Customizations](#customizations)
- [Hooks](#hooks)
- [Favicons](#favicons)
- [404 Page](#404-page)
- [Custom Post Types](#custom-post-types)
Expand Down Expand Up @@ -769,16 +770,18 @@ unsafe = true
### Hooks

If you need to integrate your website with a third-party service or to customize it further, you can use the following
hook partials: hooks/head-end.html, hooks/body-start.html, and hooks/body-end.html. Copy the file in question into
your site root's `layouts/partials/hooks` folder and add the necessary code, for example, as in this [hooks/body-end.html](https://github.com/igor-baiborodine/bilberry-hugo-theme-sandbox/blob/9c492fad08771295f529b9acdc17aa03865a52ad/layouts/partials/hooks/body-end.html)
file hat contains integration with Umami web analytics.
hook partials: [hooks/head-end.html](https://github.com/Lednerb/bilberry-hugo-theme/blob/master/layouts/partials/hooks/head-end.html),
[hooks/body-start.html](https://github.com/Lednerb/bilberry-hugo-theme/blob/master/layouts/partials/hooks/body-start.html),
and [hooks/body-end.html](https://github.com/Lednerb/bilberry-hugo-theme/blob/master/layouts/partials/hooks/body-end.html).
Copy the file in question into your site root's `layouts/partials/hooks` folder and add the necessary code, for
example, as in this [hooks/body-end.html](https://github.com/igor-baiborodine/bilberry-hugo-theme-sandbox/blob/9c492fad08771295f529b9acdc17aa03865a52ad/layouts/partials/hooks/body-end.html)
file that contains integration with Umami web analytics.

```html
<script async defer src="https://analytics.umami.is/script.js"
data-website-id="29b02d61-3df1-433f-8bb7-cba0ec70c9f7"></script>
```


### Favicons

To add favicons, proceed with the following steps:
Expand Down

0 comments on commit 5dbc925

Please sign in to comment.