homogeneisation posts et pages
This commit is contained in:
parent
e25864f636
commit
adae41dcaf
@ -2,37 +2,7 @@
|
||||
{{ define "main" }}
|
||||
<!-- Post Content -->
|
||||
<article>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<!-- Post Container -->
|
||||
<div class="
|
||||
col-lg-8
|
||||
col-md-8
|
||||
col-sm-12
|
||||
col-xs-12
|
||||
post-container">
|
||||
{{ if eq (.Param "multilingual") true }}
|
||||
{{ partial "multilingual-sel.html" . }}
|
||||
|
||||
<!-- Chinese Version -->
|
||||
<div class="zh post-container">
|
||||
{{$file := "/about/index-zh.md"}}
|
||||
{{ $file | readFile | markdownify}}
|
||||
</div>
|
||||
|
||||
<!-- English Version -->
|
||||
<div class="en post-container">
|
||||
{{ .Content }}
|
||||
</div>
|
||||
{{ else }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
|
||||
</div>
|
||||
|
||||
{{ partial "sidebar.html" . }}
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
|
||||
{{ end }}
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
{{ define "main" }}
|
||||
<article>
|
||||
{{ .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user