aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-16 00:50:25 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-08-16 00:50:25 +0530
commit661454f5f73182da69401d1dff9c7c3c7693129b (patch)
tree50f2f8046e416e41fac61126d283d074bf71ea2e /layouts
parentc5b579c719b5197510091472af951a675beb6211 (diff)
removed docs pageHEADmaster
Diffstat (limited to 'layouts')
-rw-r--r--layouts/docs/baseof.html11
-rw-r--r--layouts/docs/list.html36
-rw-r--r--layouts/docs/single.html24
-rw-r--r--layouts/partials/head.html5
-rw-r--r--layouts/partials/index_nav.html3
-rw-r--r--layouts/partials/nav.html1
6 files changed, 0 insertions, 80 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 }}
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 565da2b..3acf837 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -21,10 +21,5 @@
<meta name="robots" content="index, follow">
<link rel="stylesheet" type="text/css" href="/css/lists.css">
<title>{{ .Title }} - {{ .Site.Params.listsTitle }}</title>
- {{ else if eq .Type "docs"}}
- <meta name="description" content="{{ .Title }}">
- <meta name="robots" content="index, follow">
- <link rel="stylesheet" type="text/css" href="/css/docs.css">
- <title>{{ .Title }} - {{ .Site.Params.docsTitle }}</title>
{{ end }}
</head>
diff --git a/layouts/partials/index_nav.html b/layouts/partials/index_nav.html
index 2c91552..fe3a482 100644
--- a/layouts/partials/index_nav.html
+++ b/layouts/partials/index_nav.html
@@ -8,9 +8,6 @@
<a href="/lists/">Lists</a>
</li>
<li>
- <a href="/docs/">Projects</a>
- </li>
- <li>
<a href="https://dev.vidhukant.xyz/">Git</a>
</li>
<li>
diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html
index fc951bd..ec8a08d 100644
--- a/layouts/partials/nav.html
+++ b/layouts/partials/nav.html
@@ -5,7 +5,6 @@
<li><a href="/contact/" class="{{ if eq "contact" . }}selected{{ end }}">Contact</a></li>
<li><a href="/blog/" class="{{ if eq "blog" . }}selected{{ end }}">Blog</a></li>
<li><a href="/lists/" class="{{ if eq "lists" . }}selected{{ end }}">Lists</a></li>
- <li><a href="/docs/" class="{{ if eq "docs" . }}selected{{ end }}">Docs</a></li>
</ul>
</nav>
</header>