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

github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Chucheng <ccwangchn@gmail.com>2020-10-16 07:06:37 +0300
committerWang Chucheng <ccwangchn@gmail.com>2020-10-16 07:06:37 +0300
commit8987983acd6c668ad30c88409ee75f5c978e3d6c (patch)
treea6941cca861b9a2ca1302cb5e61481883b731adc /layouts/docs
parent89640f682b3c2f7f092ea7f630934120e14beae0 (diff)
feat: add doc layout
Diffstat (limited to 'layouts/docs')
-rw-r--r--layouts/docs/doc_list.html18
-rw-r--r--layouts/docs/list.html3
-rw-r--r--layouts/docs/single.html3
3 files changed, 24 insertions, 0 deletions
diff --git a/layouts/docs/doc_list.html b/layouts/docs/doc_list.html
new file mode 100644
index 0000000..0d02552
--- /dev/null
+++ b/layouts/docs/doc_list.html
@@ -0,0 +1,18 @@
+{{ define "main" }}
+<article class="mx-6 my-8">
+ <h1 class="font-bold text-3xl text-primary-text">{{ .Title }}</h1>
+ {{ with .Content }}
+ <div class="content">
+ {{ . }}
+ </div>
+ {{ end }}
+</article>
+<div class="bg-secondary-bg rounded overflow-hidden px-4 divide-y">
+ {{ range .Paginator.Pages }}
+ <div class="px-2 py-6">
+ {{ partial "horizontal_summary.html" . }}
+ </div>
+ {{ end }}
+</div>
+{{ template "_internal/pagination.html" . }}
+{{ end }} \ No newline at end of file
diff --git a/layouts/docs/list.html b/layouts/docs/list.html
new file mode 100644
index 0000000..fcee3bb
--- /dev/null
+++ b/layouts/docs/list.html
@@ -0,0 +1,3 @@
+{{ define "main" }}
+{{ partial "doc_layout.html" . }}
+{{ end }} \ No newline at end of file
diff --git a/layouts/docs/single.html b/layouts/docs/single.html
new file mode 100644
index 0000000..6244028
--- /dev/null
+++ b/layouts/docs/single.html
@@ -0,0 +1,3 @@
+{{ define "main" }}
+{{ partial "doc_layout.html" . }}
+{{ end }}