summaryrefslogtreecommitdiffstats
path: root/layouts/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..0373851
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,36 @@
+{{ define "main" }}
+<main>
+ <div class="container-md clearfix">
+ <!-- list -->
+ <div class="col-md-9 col-12 float-left" id="content">
+ <!-- homepage range in posts -->
+ {{ $paginator := .Paginate (where .Site.RegularPages "Type" "post") }}
+ {{ range $paginator.Pages }}
+ <div id="post">
+ <h2 id="post-title">
+ <a href="{{ .Permalink }}">{{ .Title }}</a>
+ </h2>
+ <div id="post-meta">
+ {{ partial "post-meta.html" . }}
+ </div>
+ <div id="post-summary">
+ {{ .Summary }}
+ </div>
+ <div id="post-exlink">
+ <a href="{{ .Permalink }}#">&gt; READ MORE ...</a>
+ </div>
+ </div>
+ {{ end }}
+ {{ if gt $paginator.TotalPages 1 }}
+ <div id="pagination">
+ {{ template "_internal/pagination.html" . }}
+ </div>
+ {{ end }}
+ </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