Skip to content

Commit

Permalink
toc
Browse files Browse the repository at this point in the history
  • Loading branch information
Soosembly committed Dec 3, 2023
1 parent f3ad0ba commit 373c1c3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -291,5 +291,9 @@ defaults:
share: true
related: true
show_date: true
toc: true
toc_sticky: ture
toc_icon: "fas fa-book"
toc_label: CONTENTS

date_format: "%Y-%m-%d"
3 changes: 0 additions & 3 deletions _posts/2023-12-02-first.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ title: "Hello World!"
typora-root-url: ../
categories: CODING
tag: [python, pytorch, tensorflow]
toc: true
author_profile: false
sidebar:
nav: "docs"
search: false
---

Expand Down
2 changes: 1 addition & 1 deletion _sass/minimal-mistakes/_navigation.scss
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@
.nav__title {
color: #fff;
font-size: $type-size-6;
background: $primary-color;
background: $toc_color;
border-top-left-radius: $border-radius;
border-top-right-radius: $border-radius;
}
Expand Down
4 changes: 2 additions & 2 deletions _sass/minimal-mistakes/_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ body {
.page {
@include breakpoint($large) {
float: right;
width: calc(100% - #{$right-sidebar-width-narrow});
width: calc(100%);
padding-right: $right-sidebar-width-narrow;
}

@include breakpoint($x-large) {
width: calc(100% - #{$right-sidebar-width});
width: calc(100%);
padding-right: $right-sidebar-width;
}

Expand Down
4 changes: 4 additions & 0 deletions _sass/minimal-mistakes/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -171,3 +171,7 @@ $navicon-width: 1.5rem !default;
$navicon-height: 0.25rem !default;
$global-transition: all 0.2s ease-in-out !default;
$intro-transition: intro 0.3s both !default;

/* toc_color */
$toc_color: #2cd1b9 !default;

0 comments on commit 373c1c3

Please sign in to comment.