mirror of
https://github.com/mainnika/nikita-tokarch-uk.git
synced 2026-05-25 01:03:35 +00:00
Include app js script to the template header
This commit is contained in:
@@ -10,6 +10,9 @@ func UseFuncs() template.FuncMap {
|
||||
"sub": func(i int) int {
|
||||
return i - 1
|
||||
},
|
||||
"getJSAppURL": func() string {
|
||||
return URLJSApp
|
||||
},
|
||||
"getIndexURL": func() string {
|
||||
return URLIndex
|
||||
},
|
||||
|
||||
@@ -4,4 +4,6 @@
|
||||
|
||||
<meta name="description" content="{{ .Description }}"/>
|
||||
<title>{{ .Title }}</title>
|
||||
|
||||
<script type="text/javascript" src="{{ getJSAppURL }}" async></script>
|
||||
</head>
|
||||
@@ -5,4 +5,5 @@ const (
|
||||
URLIndex = "/index.aspx"
|
||||
URLBlog = "/blog.aspx"
|
||||
URLPost = "/post.aspx"
|
||||
URLJSApp = "/js-bin/app.js"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user