48 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			48 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html>
 | |
| {{ partial "header.html" . }}
 | |
| <body>
 | |
| 	<div class="container wrapper post">
 | |
| 		{{ partial "head.html" . }}
 | |
| 
 | |
| 		<div class="post-header">
 | |
| 			<h1 class="title">{{ .Title }}</h1>
 | |
| 			<div class="meta">Posted at — {{ dateFormat "Jan 2, 2006" .Date }}</div>
 | |
| 		</div>
 | |
| 
 | |
| 		<div class="markdown">
 | |
| 			{{ .Content }}
 | |
| 		</div>
 | |
| 
 | |
| 		<div class="post-tags">
 | |
| 			<small>
 | |
| 				{{ if ne .Type "page" }}
 | |
| 					{{ if gt .Params.tags 0 }}
 | |
| 						{{ range .Params.tags }}
 | |
| 							<a href="{{ "/tags/" | relLangURL }}{{ . | urlize }}">{{ . }}</a> 
 | |
| 						{{ end }}
 | |
| 					{{ end }}
 | |
| 				{{ end }}
 | |
| 			</small>
 | |
| 		</div>
 | |
| 
 | |
| 		{{- $.Scratch.Set "isDisqus" true -}}
 | |
| 
 | |
| 		{{- if and (isset .Params "type") (in .Site.Params.disableDisqusTypes .Params.type) -}}
 | |
| 		{{- $.Scratch.Set "isDisqus" false -}}
 | |
| 		{{- end -}}
 | |
| 
 | |
| 		{{- if and (isset .Params "disqus") (eq .Params.disqus false) -}}
 | |
| 		{{- $.Scratch.Set "isDisqus" false -}}
 | |
| 		{{- else if and (isset .Params "disqus") (eq .Params.disqus true) -}}
 | |
| 		{{- $.Scratch.Set "isDisqus" true -}}
 | |
| 		{{- end -}}
 | |
| 
 | |
| 		{{- if eq ($.Scratch.Get "isDisqus") true -}}
 | |
| 		{{- partial "disqus.html" . -}}
 | |
| 		{{- end -}}
 | |
| 	</div>
 | |
| 	{{ partial "footer.html" . }}
 | |
| </body>
 | |
| </html>
 |