@** * Copyright (c) 2013-2017, 2021 Kaj Magnus Lindberg * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . *@ @(tpi: debiki.SiteTpi, useGoogleAnalytics: Boolean = true, noindex: Boolean = false)(content: Html) @tpi.jsonDataMustBeFirst() @if(useGoogleAnalytics) { @Html(tpi.anyGoogleAnalytics4Script) } @if(noindex) { } @tpi.debikiMeta @if(tpi.anyEmbeddingUrl.nonEmpty) { } @Html(tpi.anySafeMetaTags) @tpi.talkyardStyles @tpi.anySiteCustomStylesBundle("styles.css") @Html(tpi.siteSettings.headStylesHtml) @tpi.parseJsonUpdDocClassesScript() @if(useGoogleAnalytics) { @Html(tpi.anyGoogleUniversalAnalyticsScript) } @Html(tpi.siteSettings.startOfBodyHtml)@* [cust_html_not_db_cached] *@
@* Auto collapse nav menu items, if narrow screen? https://github.com/lukejacksonn/GreedyNav *@ @* Move to Typescript? So can hide, if not logged in. [7WKBAY02] *@ @Html(tpi.siteSettings.headerHtml)
@content @if(!tpi.anyCurrentPageRole.exists(_.isChat)) { @* Move to Typescript? So can hide, if not logged in. [7WKBAY02] *@ @Html(tpi.siteSettings.footerHtml) }
@tpi.talkyardScriptBundles() @Html(tpi.siteSettings.headScriptsHtml) @tpi.anySiteCustomScriptBundle() @Html(tpi.siteSettings.endOfBodyHtml)