From 0c738c7deb1dd4034638a7aa42eed65b58f1f8b7 Mon Sep 17 00:00:00 2001 From: Neha9849 Date: Tue, 15 Feb 2022 22:03:44 +0530 Subject: [PATCH 1/3] changed section-tree-nav template name in default.html --- assets/css/style.css | 2 +- layouts/partials/default.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 044bfca..b08f0a9 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -911,7 +911,7 @@ tbody { } li.sidelist>a { - margin-left: 20px; + margin-left: 35px; margin-bottom: 10px; display: block; font-size: 20px; diff --git a/layouts/partials/default.html b/layouts/partials/default.html index 431ea15..8e26f11 100644 --- a/layouts/partials/default.html +++ b/layouts/partials/default.html @@ -35,7 +35,7 @@

{{ .Title }}

{{ else }}
{{ end }} @@ -124,7 +124,7 @@
{{ .Title }}
{{ "" | safeHTML }} -{{ define "section-tree-nav" }} +{{ define "default-section-tree-nav" }} {{ $showvisitedlinks := .showvisitedlinks }} {{ $currentNode := .currentnode }} {{with .sect}} From 34c0dcfec168405108b05d2cee5ed96b2acaa627 Mon Sep 17 00:00:00 2001 From: Neha9849 Date: Tue, 22 Feb 2022 02:04:32 +0530 Subject: [PATCH 2/3] some css fixes --- assets/css/style.css | 6 +++++- layouts/index.html | 3 ++- layouts/partials/default.html | 2 +- layouts/partials/footer.html | 2 +- 4 files changed, 9 insertions(+), 4 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index b08f0a9..c9ca7c5 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -901,7 +901,7 @@ tbody { .sidebar { background-color: var(--white-color); position: sticky; - top: 50px; + top: 110px; margin-bottom: 30px; padding: 40px 10px 20px 10px; } @@ -1070,3 +1070,7 @@ pre code::-webkit-scrollbar-thumb { .code-tabs .nav-tabs .nav-item.active .nav-link { color: var(--white-color); } +.cardLink:hover{ + text-decoration: none; + +} diff --git a/layouts/index.html b/layouts/index.html index c8a399b..396ed6d 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -17,7 +17,8 @@

{{ i18n "topics_title" | safeHTML }}

{{ "" | safeHTML }} {{ range (where .Site.Pages "Type" "docs") }}
-
+
{{ partial "breadcrumb.html" . }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index f89dfe1..9a0d6fa 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,5 +1,5 @@ {{ "" | safeHTML }} -
+
{{ $orgName:= site.Params.brand.parent_org_name }} {{ $orgLegal:= site.Params.brand.parent_org_url_legal }} {{ $orgUrl:= site.Params.brand.parent_org_url }} From de48116d2e1e32848d80fd9a21767316706d959b Mon Sep 17 00:00:00 2001 From: Neha9849 Date: Tue, 22 Feb 2022 03:28:46 +0530 Subject: [PATCH 3/3] added download-pdf partial --- layouts/partials/default.html | 8 +------- layouts/partials/download-pdf.html | 7 +++++++ 2 files changed, 8 insertions(+), 7 deletions(-) create mode 100644 layouts/partials/download-pdf.html diff --git a/layouts/partials/default.html b/layouts/partials/default.html index 1e73bad..9785fc8 100644 --- a/layouts/partials/default.html +++ b/layouts/partials/default.html @@ -12,13 +12,7 @@ {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "index" 0}} {{ end }} {{ end }} - {{ if .Content }} - {{ if eq .Params.downloadBtn "true" }} -
- -
- {{ end }} - {{ end }} + {{ partial "download-pdf.html" .}}
diff --git a/layouts/partials/download-pdf.html b/layouts/partials/download-pdf.html new file mode 100644 index 0000000..9047ec5 --- /dev/null +++ b/layouts/partials/download-pdf.html @@ -0,0 +1,7 @@ +{{ if .Content }} +{{ if eq .Params.downloadBtn "true" }} +
+ +
+{{ end }} +{{ end }} \ No newline at end of file