Skip to content

Commit

Permalink
Merge pull request #8 from LNA-DEV/dev
Browse files Browse the repository at this point in the history
Analytics in baseof
  • Loading branch information
LNA-DEV authored Dec 7, 2022
2 parents 08a266e + 771b7ff commit 46f5e76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 4 additions & 1 deletion layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<html itemscope itemtype="http://schema.org/WebPage" lang="{{ .Site.Language.Lang }}" class="no-js">
<head>
{{ partial "head.html" . }}

<!--================= add analytics if enabled =========================-->
{{- partial "analytics.html" . -}}
</head>
<body class="td-{{ .Kind }}{{ with .Page.Params.body_class }} {{ . }}{{ end }}">
<header>
Expand All @@ -15,4 +18,4 @@
</div>
{{ partialCached "scripts.html" . }}
</body>
</html>
</html>
2 changes: 0 additions & 2 deletions layouts/partials/analytics.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
<h1>Test</h1>

<!-- Add Analytics if enabled in configuration -->
{{ with site.Params.features.analytics }}
{{ if .enabled }}
Expand Down

0 comments on commit 46f5e76

Please sign in to comment.