diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-16 00:50:25 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-08-16 00:50:25 +0530 |
commit | 661454f5f73182da69401d1dff9c7c3c7693129b (patch) | |
tree | 50f2f8046e416e41fac61126d283d074bf71ea2e /layouts/docs | |
parent | c5b579c719b5197510091472af951a675beb6211 (diff) |
Diffstat (limited to 'layouts/docs')
-rw-r--r-- | layouts/docs/baseof.html | 11 | ||||
-rw-r--r-- | layouts/docs/list.html | 36 | ||||
-rw-r--r-- | layouts/docs/single.html | 24 |
3 files changed, 0 insertions, 71 deletions
diff --git a/layouts/docs/baseof.html b/layouts/docs/baseof.html deleted file mode 100644 index 2e4e23a..0000000 --- a/layouts/docs/baseof.html +++ /dev/null @@ -1,11 +0,0 @@ -<!DOCTYPE html> -<html lang="{{ .Site.LanguageCode }}"> - {{- partial "head.html" . -}} - <body> - {{- partial "nav.html" "docs" -}} - <main> - {{- block "main" . }}{{- end }} - </main> - {{- partial "footer.html" . -}} - </body> -</html> diff --git a/layouts/docs/list.html b/layouts/docs/list.html deleted file mode 100644 index 03b3721..0000000 --- a/layouts/docs/list.html +++ /dev/null @@ -1,36 +0,0 @@ -{{ define "main" }} - <div> - <h1 class="title {{ if eq (len .Pages) 0 }}centered{{ end }}"> - {{ if .Params.heading }}{{ .Params.heading }}{{ else }}{{ .Title }}{{ end }} - </h1> - {{ if ne (len .Pages) 0 }} - <p>{{ .Description }}</p> - {{ end }} - - {{ .Content }} - - <ul class="range"> - {{ if ne (len .Sections) 0}} - {{ range .Sections }} - <li> - <a href="{{ .RelPermalink }}">{{ .Title }}</a> - {{ .Description }} - <ul class="range"> - <!-- Show pages under this section (but not subsections) --> - {{ range (union .Sections .Pages).ByWeight }} - <li> - <a href="{{ .RelPermalink }}">{{ .Title }}</a> - {{ .Description }} - </li> - {{ end }} - </ul> - </li> - {{ end }} - {{ else }} - {{ range .RegularPages.ByWeight }} - <li> - <a href="{{ .RelPermalink }}">{{ .Title }}</a> - {{ .Description }} - </li> - {{ end }} - {{ end }} - </ul> - </div> -{{ end }} diff --git a/layouts/docs/single.html b/layouts/docs/single.html deleted file mode 100644 index 1823c5d..0000000 --- a/layouts/docs/single.html +++ /dev/null @@ -1,24 +0,0 @@ -{{ define "main" }} -{{ $wrappedTable := printf "<div class='table-wrapper'> ${1} </div>" }} -<div> - <h1 class="title centered">{{ .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 }} |