Browse Source

templates: able to inject content to head and footer (#1286)

Unknwon 2 years ago
parent
commit
c64b842df9

+ 1 - 0
templates/base/footer.tmpl

@@ -52,4 +52,5 @@
 <script src="{{AppSubUrl}}/js/libs/emojify-1.1.0.min.js"></script>
 <script src="{{AppSubUrl}}/js/libs/clipboard-1.5.9.min.js"></script>
 
+{{template "inject/footer" .}}
 </html>

+ 2 - 0
templates/base/head.tmpl

@@ -72,6 +72,8 @@
 	<title>{{if .Title}}{{.Title}} - {{end}}{{AppName}}</title>
 
 	<meta name="theme-color" content="{{ThemeColorMetaTag}}">
+
+	{{template "inject/head" .}}
 </head>
 <body>
 	<div class="full height">

+ 0 - 0
templates/inject/footer.tmpl


+ 0 - 0
templates/inject/head.tmpl