aboutsummaryrefslogtreecommitdiff
path: root/layouts/docs/single.html
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/docs/single.html')
-rw-r--r--layouts/docs/single.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/layouts/docs/single.html b/layouts/docs/single.html
new file mode 100644
index 0000000..64a74e4
--- /dev/null
+++ b/layouts/docs/single.html
@@ -0,0 +1,24 @@
+{{ define "main" }}
+{{ $wrappedTable := printf "<div class='table-wrapper'> ${1} </div>" }}
+<div>
+ <h1 style="text-align: center;" class="title">{{ .Title }}</h1>
+ <!--p style="text-align: center;">{{ .Summary }}</p-->
+ {{ .Content | replaceRE "(<table>(?:.|\n)+?</table>)" $wrappedTable | safeHTML }}
+
+ <!-- For some reason prevpage shows next and vice versa -->
+ <div class="page-nav">
+ <span>
+ {{ if .NextInSection }}
+ <a href="{{ .NextInSection.Permalink }}">Previous: {{ .NextInSection.Title }}</a>
+ {{ end }}
+ </span>
+
+ <span>
+ {{ if .PrevInSection }}
+ <a href="{{ .PrevInSection.Permalink }}">Next: {{ .PrevInSection.Title }}</a>
+ {{ end }}
+ </span>
+ </div>
+
+</div>
+{{ end }}