diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.html | 14 | ||||
-rw-r--r-- | layouts/_default/list.html | 14 | ||||
-rw-r--r-- | layouts/_default/single.html | 24 |
3 files changed, 52 insertions, 0 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html new file mode 100644 index 0000000..13f61d2 --- /dev/null +++ b/layouts/_default/baseof.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html lang="{{ .Site.LanguageCode }}"> +{{ partial "head.html" . }} + +<body class="d-flex flex-column h-100"> + {{ partial "header.html" . }} + + {{ block "main" . }}{{ end }} + + {{ partial "footer.html" . }} + {{ partial "scripts.html" . }} +</body> + +</html>
\ No newline at end of file diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 0000000..0275644 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,14 @@ +{{ define "main" }} +<main> + <div class="container-md clearfix"> + <!-- list --> + <div class="col-md-9 col-12 float-left" id="content"> + <span id="not-found">404 NOT FOUND</span> + </div> + <!-- sidebar --> + <div class="col-md-3 col-12 float-left" id="sidebar"> + {{ partial "sidebar.html" . }} + </div> + </div> +</main> +{{ end }}
\ No newline at end of file diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..9da2c59 --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,24 @@ +{{ define "main" }} +<main> + <div class="container-md clearfix"> + <!-- list --> + <div class="col-md-9 col-12 float-left" id="content"> + <article> + <h4 id="post-title"> + <a href="{{ .Permalink }}">{{ .Title }}</a> + </h4> + <div id="post-meta"> + {{ partial "post-meta.html" . }} + </div> + <div class="markdown-body" id="post-content"> + {{ .Content }} + </div> + </article> + </div> + <!-- sidebar --> + <div class="col-md-3 col-12 float-left" id="sidebar"> + {{ partial "sidebar.html" . }} + </div> + </div> +</main> +{{ end }}
\ No newline at end of file |