diff options
Diffstat (limited to 'layouts/_default/page.html')
-rw-r--r-- | layouts/_default/page.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/layouts/_default/page.html b/layouts/_default/page.html new file mode 100644 index 0000000..f7dfc74 --- /dev/null +++ b/layouts/_default/page.html @@ -0,0 +1,42 @@ + +{{ define "main" }} +<!-- Post Content --> +<article> + <div class="container"> + <div class="row"> + <!-- Post Container --> + <div class=" + col-lg-8 col-lg-offset-1 + col-md-8 col-md-offset-1 + 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 }} + + {{ partial "comments.html" . }} + + </div> + + {{ partial "sidebar.html" . }} + </div> + </div> +</article> + +{{ end }} + + |