Skip to content

Commit

Permalink
Add header file for google analysis.
Browse files Browse the repository at this point in the history
  • Loading branch information
ramsayleung committed Mar 8, 2022
1 parent 528b7c6 commit e603347
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<head>
{{ template "_internal/google_analytics.html" . }}
{{ template "_internal/google_analytics_async.html" . }}
</head>

<div class="logo-wrapper">
<a href="{{ "/" | relLangURL }}" class="logo">
{{- if .Site.Params.logoTitle -}}
{{ .Site.Params.logoTitle }}
{{- else -}}
{{ .Site.Title }}
{{- end -}}
</a>
</div>

{{ partial "header/language-selector.html" . }}

<nav class="site-navbar">
<ul id="menu" class="menu">
{{ range .Site.Menus.main -}}
<li class="menu-item">
<a class="menu-item-link" href="{{ .URL | safeURL }}">{{ .Name }}</a>
</li>
{{- end }}
</ul>
</nav>

0 comments on commit e603347

Please sign in to comment.