1
0
mirror of https://github.com/axzilla/templui.git synced 2025-02-21 00:53:18 +00:00

fix: use plausible only in production

This commit is contained in:
“axzilla” 2024-10-06 21:23:48 +02:00
parent 9508612de4
commit 21600ffc34
2 changed files with 7 additions and 2 deletions

View File

@ -10,6 +10,7 @@
- Changed: Some UI changes on showcase section
- Changed: button attributes now as a prop
- Fixed: Width issue on tabs component
- Fixed: Use Plausible only in production
## 2024-10-05

View File

@ -1,5 +1,7 @@
package layouts
import "github.com/axzilla/goilerplate/internals/config"
templ BaseLayout() {
<!DOCTYPE html>
<html lang="en">
@ -24,8 +26,10 @@ templ BaseLayout() {
});
})();
</script>
<!-- Plausible Analytics -->
<script defer data-domain="goilerplate.com" src="https://plausible.axeladrian.com/js/script.js"></script>
if config.AppConfig.GoEnv == "production" {
<!-- Plausible Analytics -->
<script defer data-domain="goilerplate.com" src="https://plausible.axeladrian.com/js/script.js"></script>
}
<!-- Favicon -->
<link rel="icon" href="/assets/img/gopher.svg" type="image/x-icon"/>
<!-- Tailwind CSS (local) -->