diff options
| author | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-24 23:46:23 +0200 |
|---|---|---|
| committer | Serghei Iakovlev <egrep@protonmail.ch> | 2022-07-24 23:46:23 +0200 |
| commit | 283662fb44a19c6ab7a8f14b510506edd8c02950 (patch) | |
| tree | d21090f848ef71c02875dd23bbf4532a2aa074c4 /layouts/partials/sidebar.html | |
| parent | 07818f368f7a6f1dec65c51e733867c1a5adabb3 (diff) | |
| download | gohugo-theme-ed-283662fb44a19c6ab7a8f14b510506edd8c02950.tar.gz | |
Allow disable hypothesis on custom pages
Diffstat (limited to 'layouts/partials/sidebar.html')
| -rw-r--r-- | layouts/partials/sidebar.html | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 7df1a2a..59d2360 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -22,11 +22,9 @@ </a> {{- end }} - <span class="hypothesis-container"> - <a class="sidebar-nav-item" id="hypothesis-link" href="#"> - {{ i18n "annotate" }} - </a> - </span> + {{- if ne .Params.annotations false }} + {{ partial "hypothesis.html" . }} + {{- end }} {{- with site.Menus.feeds }} <div class="sidebar-nav-item"> |
