File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22{{with . }}
33<ul>
44 {{if ne .Href " " }}
5- <a href= " {{.Href}}" >{{.Title }}</a>
5+ <a href= " {{.Href}}" >{{trustedHtml .Title }}</a>
66 {{else }}
7- <span>{{.Title }}</span>
7+ <span>{{trustedHtml .Title }}</span>
88 {{end }}
99 {{range .Children }}
1010 <li>{{template " sitemap-item" . }}</li>{{end }}
1313{{end }}
1414
1515{{define " toc-item" }}
16- {{if gt .Level 0}}<a href= " #{{.ID}}" class= " toc{{.Level}}" >{{.Title }}</a>{{end }}
16+ {{if gt .Level 0}}<a href= " #{{.ID}}" class= " toc{{.Level}}" >{{trustedHtml .Title }}</a>{{end }}
1717{{with .Children }}
1818<ul>
1919 {{range . }}
3333
3434 <meta property= " og:image" content= " https://gohandlers.pages.dev/.assets/github-social-preview.png" >
3535
36- <link rel
= " icon" type
= " image/png" sizes
= " 16x16" href
= " /.assets/[email protected] " >
37- <link rel
= " icon" type
= " image/png" sizes
= " 32x32" href
= " /.assets/[email protected] " >
38- <link rel
= " icon" type
= " image/png" sizes
= " 48x48" href
= " /.assets/[email protected] " >
39- <link rel
= " icon" type
= " image/png" sizes
= " 64x64" href
= " /.assets/[email protected] " >
40- <link rel
= " apple-touch-icon" sizes
= " 180x180" href
= " /.assets/[email protected] " >
41-
4236 {{range .Stylesheets }}
4337 <link rel= " stylesheet" href= " {{.}}" >{{end }}
4438
7367 </div>
7468
7569 <script>
76- function onChange(eval , callback) {
70+ function onChange(evaluator , callback) {
7771 let last;
7872 return () = > {
79- let next = eval ()
73+ let next = evaluator ()
8074 if (last != next) {
8175 last = next
8276 callback()
10296 </script>
10397
10498 <main class= " markdown" >
105- {{.Markdown.Content }}
99+ {{trustedHtml .Markdown.Content }}
106100 </main>
107101
108102 </div>
You can’t perform that action at this time.
0 commit comments