diff options
author | Roger Gonzalez <roger@rogs.me> | 2023-01-15 22:01:41 -0300 |
---|---|---|
committer | Roger Gonzalez <roger@rogs.me> | 2023-01-15 22:01:41 -0300 |
commit | 1b4f653f3cd2ae9c4724c4138916fa6a1eca4560 (patch) | |
tree | 402b796fcae6263c629a26cdff7f81f5bd7675f5 /layouts | |
parent | 5e8531f8e59303179fcdb46cf3d8bf7eaf084567 (diff) |
Only displaying the visitor badge in the website and not in localhost
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/sub-footer.html | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/layouts/partials/sub-footer.html b/layouts/partials/sub-footer.html index fc51205..1812701 100644 --- a/layouts/partials/sub-footer.html +++ b/layouts/partials/sub-footer.html @@ -13,9 +13,11 @@ <li class="zerostatic"> <img src="/pics/element-small.png"/> <a href="https://matrix.to/#/#yams:chat.rogs.me">#yams:chat.rogs.me</a> </li> + {{ if not (in (.Site.BaseURL | string) "localhost") }} <li class="zerostatic"> <img src="https://visitor-badge.laobi.icu/badge?page_id={{ .Site.BaseURL }}&right_color=%235FAF63" alt="visitor badge"/> </li> + {{ end }} </ul> </div> </div> |