Browse Source

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

pull/3853/merge
Unknwon 8 years ago
parent
commit
c64b842df9
No known key found for this signature in database
GPG Key ID: 25B575AE3213B2B3
  1. 1
      templates/base/footer.tmpl
  2. 2
      templates/base/head.tmpl
  3. 0
      templates/inject/footer.tmpl
  4. 0
      templates/inject/head.tmpl

1
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/emojify-1.1.0.min.js"></script>
<script src="{{AppSubUrl}}/js/libs/clipboard-1.5.9.min.js"></script> <script src="{{AppSubUrl}}/js/libs/clipboard-1.5.9.min.js"></script>
{{template "inject/footer" .}}
</html> </html>

2
templates/base/head.tmpl

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

0
templates/inject/footer.tmpl

0
templates/inject/head.tmpl

Loading…
Cancel
Save