diff options
author | Unknwon <u@gogs.io> | 2017-02-24 18:26:41 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2017-02-24 18:26:41 -0500 |
commit | c64b842df9d25f6a26abc8efab5d644a3e3cf716 (patch) | |
tree | 1a7841e34246cd86013599791cb849b942f411fa | |
parent | 27c4252548088ad8d273d450098b404fc4d281da (diff) |
templates: able to inject content to head and footer (#1286)
-rw-r--r-- | templates/base/footer.tmpl | 1 | ||||
-rw-r--r-- | templates/base/head.tmpl | 2 | ||||
-rw-r--r-- | templates/inject/footer.tmpl | 0 | ||||
-rw-r--r-- | templates/inject/head.tmpl | 0 |
4 files changed, 3 insertions, 0 deletions
diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index df8f9117..1c0f0449 100644 --- a/templates/base/footer.tmpl +++ b/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> diff --git a/templates/base/head.tmpl b/templates/base/head.tmpl index 706ebf90..3e0fd260 100644 --- a/templates/base/head.tmpl +++ b/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"> diff --git a/templates/inject/footer.tmpl b/templates/inject/footer.tmpl new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/templates/inject/footer.tmpl diff --git a/templates/inject/head.tmpl b/templates/inject/head.tmpl new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/templates/inject/head.tmpl |