소스 검색

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

Unknwon 7 년 전
부모
커밋
c64b842df9
4개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      templates/base/footer.tmpl
  2. 2 0
      templates/base/head.tmpl
  3. 0 0
      templates/inject/footer.tmpl
  4. 0 0
      templates/inject/head.tmpl

+ 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