summaryrefslogtreecommitdiff
path: root/layouts/partials/sub-footer.html
diff options
context:
space:
mode:
authorRoger Gonzalez <roger@rogs.me>2023-01-15 22:01:41 -0300
committerRoger Gonzalez <roger@rogs.me>2023-01-15 22:01:41 -0300
commit1b4f653f3cd2ae9c4724c4138916fa6a1eca4560 (patch)
tree402b796fcae6263c629a26cdff7f81f5bd7675f5 /layouts/partials/sub-footer.html
parent5e8531f8e59303179fcdb46cf3d8bf7eaf084567 (diff)
Only displaying the visitor badge in the website and not in localhost
Diffstat (limited to 'layouts/partials/sub-footer.html')
-rw-r--r--layouts/partials/sub-footer.html2
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>