fix
This commit is contained in:
19
layouts/_default/single.html
Normal file
19
layouts/_default/single.html
Normal file
@ -0,0 +1,19 @@
|
||||
{{ partial "head.html" . }}
|
||||
{{ partial "navbar.html" . }}
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
{{ $s := path.Dir (.Permalink | relURL) }}
|
||||
{{ $t := index (split $s "/") 2 }}
|
||||
{{ $o := index (split $s "/") 1 }}
|
||||
|
||||
{{ if eq $t "img" }}
|
||||
{{ partial "img.html" . }}
|
||||
{{ else }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
Reference in New Issue
Block a user