diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-09-20 22:35:52 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.xyz> | 2022-09-20 22:35:52 +0530 |
commit | d26ecb989f5e5b9e06b34c106a3d391fd2910524 (patch) | |
tree | 5b2f2391eb682881c90930c040f260854b3f1936 /layouts/docs/single.html |
First commit
Diffstat (limited to 'layouts/docs/single.html')
-rw-r--r-- | layouts/docs/single.html | 24 |
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 }} |