From ac0413946af92704baf0a04f1e7ecc6fec0089c7 Mon Sep 17 00:00:00 2001 From: yavnikaa Date: Sun, 13 Mar 2022 14:12:27 +0530 Subject: [PATCH 1/4] Complete the stated task --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index b50d212..0f26787 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,6 @@ - {{ .Title }} + Yavnikaa {{ hugo.Generator }} From 3ac97b47b1920c10de3770ae57aef39b59613944 Mon Sep 17 00:00:00 2001 From: yavnikaa Date: Thu, 17 Mar 2022 11:58:48 +0530 Subject: [PATCH 2/4] Make table of contents more appealing and responsive --- assets/css/style.css | 51 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/assets/css/style.css b/assets/css/style.css index ddb68bd..9e675f2 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -1091,3 +1091,54 @@ pre code::-webkit-scrollbar-thumb { } .cardLink:hover { text-decoration: none; } + + +/* Table of Contents */ + +#toc{ + background-color: #f7f7f7; + border: 1px solid #6D6E71; + box-sizing: border-box; + border-radius: 4px; + padding-inline-start: 2rem; + padding-inline-end: 2rem; +} + +#toctitle{ + font-weight: 600; + font-size: 1.5rem; + color: #1CABE2; + margin: 1.5rem 0rem; +} + +.content > .toc > ul li::before { + display:none; +} + +.content > .toc > .sectlevel1 > li a{ + font-weight: 400; + font-size: 1.2rem; + color: #4C4C4C; + margin: 0.5rem 0rem; +} + +.content > .toc > .sectlevel1 > li ul li a{ + color:#677993; + font-size:1rem; +} + +.sectlevel2{ + padding-top:1rem; +} + +@media only screen and (max-width: 768px){ + .sectlevel2 { + display:none; + } + + .content > .toc > .sectlevel1 > li a:hover, a:focus + .sectlevel2 { + display:block; + padding-top:1rem; + } + +} From 23c1cbece1ecc2262f96bf7bd8227cff1819c730 Mon Sep 17 00:00:00 2001 From: yavnikaa Date: Thu, 17 Mar 2022 12:05:32 +0530 Subject: [PATCH 3/4] Update template title --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index 0f26787..ede9e6d 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,6 @@ - Yavnikaa + {{ .Title }} {{ hugo.Generator }} From a0574487a4f9cba9ad9a553c047ad88a7a773f3f Mon Sep 17 00:00:00 2001 From: Yavnika Garg Date: Thu, 17 Mar 2022 18:35:27 +0530 Subject: [PATCH 4/4] Update layouts/partials/head.html Co-authored-by: Justin W. Flory --- layouts/partials/head.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/partials/head.html b/layouts/partials/head.html index ede9e6d..b50d212 100644 --- a/layouts/partials/head.html +++ b/layouts/partials/head.html @@ -1,6 +1,6 @@ - {{ .Title }} + {{ .Title }} {{ hugo.Generator }}