后台关闭切换主题功能

This commit is contained in:
naiba
2024-02-27 21:05:39 +08:00
parent 6fa149519d
commit da6a3463ed
8 changed files with 40 additions and 6 deletions

View File

@@ -7,6 +7,16 @@
{{.Version}}</small>
</div>
</div>
{{ if not .Conf.DisableSwitchTemplateInFrontend }}
<script>
function showSwitchTemplate(list, currentBackendTheme) {
console.log(list, currentBackendTheme);
}
showSwitchTemplate({{ .Themes }}, {{ .Conf.Site.Theme }})
</script>
{{ end }}
<script>
</script>
</body>
</html>
{{end}}