Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/darshanbaral/kitab.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html44
1 files changed, 44 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..6972886
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,44 @@
+{{ define "main" }}
+<main>
+ <div class="site-title text-center">
+ <h1>
+ {{ .Title }}
+ </h1>
+ </div>
+ <div class="d-flex flex-row justify-content-center row">
+ {{ range .Site.Sections.ByWeight }}
+ <div class="m-2 p-2 border border-primary rounded" style="max-width: 350px;">
+ <a href="{{ .Permalink }}">
+ <h3 class="mb-0 p-0">
+ {{ .Title | markdownify }}
+ </h3>
+ </a>
+ <div class="text-right">
+ <small>
+ - {{ .Params.author }} ({{ .Date.Format (default "2006-May-13" $.Site.Params.dateFormat) }})
+ </small>
+ </div>
+ <ul class="list-unstyled ml-1 mb-0 border-top border-primary pt-2">
+ {{ range first 5 .Pages }}
+ <li>
+ <a href="{{ .Permalink }}">
+ <h4>
+ {{ .Title }}
+ </h4>
+ </a>
+ </li>
+ {{ end }}
+ </ul>
+ {{ $pageNums := len .Pages }}
+ {{ if ge $pageNums 6 }}
+ <p class="text-right mb-0">
+ <a href="{{ .Permalink }}">
+ ...more
+ </a>
+ </p>
+ {{ end }}
+ </div>
+ {{ end }}
+ </div>
+</main>
+{{ end }}