homogeneisation posts et pages
This commit is contained in:
parent
e25864f636
commit
adae41dcaf
@ -2,37 +2,7 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
<!-- Post Content -->
|
<!-- Post Content -->
|
||||||
<article>
|
<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 }}
|
{{ .Content }}
|
||||||
</div>
|
|
||||||
{{ else }}
|
|
||||||
{{ .Content }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ partial "sidebar.html" . }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
{{ define "main" }}
|
{{ define "main" }}
|
||||||
|
<article>
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user