diff options
author | zhaohuabing <zhaohuabing@gmail.com> | 2022-07-05 10:58:39 +0300 |
---|---|---|
committer | zhaohuabing <zhaohuabing@gmail.com> | 2022-07-05 10:58:39 +0300 |
commit | a198db6a097e0ee636a5069984bfa9ab3d323fd3 (patch) | |
tree | f64a7ae8908b242e42dbb33b047ff73f81a207be | |
parent | 30629810f6795b83d3448b7675fb7794dbc3e597 (diff) |
add "page" layout
Signed-off-by: zhaohuabing <zhaohuabing@gmail.com>
-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 }} + + |