try to fix issue #13
This commit is contained in:
		
							parent
							
								
									e428e3b308
								
							
						
					
					
						commit
						53ec7417c6
					
				| 
						 | 
					@ -9,7 +9,7 @@
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  {{ if ne .Config.StyleSheet "" }}
 | 
					  {{ if ne .Config.StyleSheet "" }}
 | 
				
			||||||
   <style>
 | 
					   <style>
 | 
				
			||||||
    {{.Config.StyleSheet}}
 | 
					    {{ Safe .Config.StyleSheet }}
 | 
				
			||||||
   </style>
 | 
					   </style>
 | 
				
			||||||
  {{ end }}
 | 
					  {{ end }}
 | 
				
			||||||
 </head>
 | 
					 </head>
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -76,6 +76,9 @@ func (p Page) PrintAsHTML(w http.ResponseWriter, templates ...string) (int, erro
 | 
				
			||||||
	// execute the template if there aren't errors
 | 
						// execute the template if there aren't errors
 | 
				
			||||||
	functions := template.FuncMap{
 | 
						functions := template.FuncMap{
 | 
				
			||||||
		"Defined": variables.Defined,
 | 
							"Defined": variables.Defined,
 | 
				
			||||||
 | 
							"Safe": func(s string) template.HTML {
 | 
				
			||||||
 | 
								return template.HTML(s)
 | 
				
			||||||
 | 
							},
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if p.Minimal {
 | 
						if p.Minimal {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue