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:
parent
9508612de4
commit
21600ffc34
@ -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
|
||||
|
||||
|
@ -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) -->
|
||||
|
Loading…
x
Reference in New Issue
Block a user