Support dynamic GA tag (#425)

This commit is contained in:
Pete Lumbis 2023-04-29 14:01:31 -04:00 committed by GitHub
parent 69e625ddc5
commit 5844fef0e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View File

@ -75,4 +75,9 @@ h1,h2,h3,h4,h5,h6 {
// Override bootstrap defaults to support dark mode
--bs-table-hover-color: var(--font-body-color);
--bs-table-hover-bg: var(--nav-highlight-color);
}
.ga-tag{
color: var(--toc-font-color);
}

View File

@ -0,0 +1,3 @@
<div class="ga-tag float-end">
GA release: {{.Page.Params.ga}}
</div>

View File

@ -28,6 +28,9 @@
{{ if .Page.Params.state }}
{{ partial "feature-state-alert" . }}
{{ end }}
{{ if .Page.Params.ga }}
{{ partial "ga-tag" . }}
{{ end }}
</div>