File tree Expand file tree Collapse file tree 4 files changed +11
-2
lines changed Expand file tree Collapse file tree 4 files changed +11
-2
lines changed File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 4
4
5
5
{{ define "main" }}
6
6
< h1 > {{ .Title }}</ h1 >
7
- < link href ="{{ "css /glossary.css" | relURL }}" rel="stylesheet ">
8
- < script src ="{{ "js /glossary.js" | relURL }}"> </ script >
7
+ {{- with resources.Get "css/glossary.css" -}}
8
+ < link href ="{{ .RelPermalink }} " rel ="stylesheet ">
9
+ {{- end -}}
9
10
< p > {{ T "layouts_docs_glossary_description" }}</ p >
10
11
< div id ="tag-container ">
11
12
< p > {{ T "layouts_docs_glossary_filter" }}</ p >
Original file line number Diff line number Diff line change 23
23
{{- $zoomJs := resources.Get "js/zoom.js" -}}
24
24
< script defer src ="{{ $zoomJs.RelPermalink }} "> </ script >
25
25
{{- end -}}
26
+ {{- end -}}
27
+
28
+ {{- if eq .Layout "glossary" -}}
29
+ {{- with resources.Get "js/glossary.js" -}}
30
+ < script defer src ="{{ .RelPermalink }} "> </ script >
31
+ {{- else -}}
32
+ {{- errorf "Unable to find the glossary helper script" -}}
33
+ {{- end -}}
26
34
{{- end -}}
You can’t perform that action at this time.
0 commit comments