Merge pull request 'Remove h3 from right toc' (#159) from nevfy/selfprivacy.org:fix-right-toc into master

Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org/pulls/159
This commit is contained in:
Inex Code 2024-07-10 16:47:05 +03:00
commit d9a2a33557
3 changed files with 5 additions and 4 deletions

View file

@ -4,8 +4,6 @@
.td-sidebar-toc { .td-sidebar-toc {
@include link-decoration; @include link-decoration;
border-left: 1px solid $border-color;
@supports (position: sticky) { @supports (position: sticky) {
position: sticky; position: sticky;
top: 4rem; top: 4rem;
@ -15,7 +13,6 @@
order: 2; order: 2;
padding-top: 0.75rem; padding-top: 0.75rem;
padding-bottom: 1.5rem;
vertical-align: top; vertical-align: top;
.td-page-meta a { .td-page-meta a {

View file

@ -60,6 +60,10 @@ time_format_default = "02.01.2006"
time_format_blog = "02.01.2006" time_format_blog = "02.01.2006"
[markup] [markup]
[markup.tableOfContents]
startLevel = 2
endLevel = 2
ordered = false
[markup.goldmark] [markup.goldmark]
[markup.goldmark.renderer] [markup.goldmark.renderer]
unsafe = true unsafe = true

View file

@ -5,7 +5,7 @@
{{ $gh_subdir := ($.Param "github_subdir") -}} {{ $gh_subdir := ($.Param "github_subdir") -}}
{{ $gh_project_repo := ($.Param "github_project_repo") -}} {{ $gh_project_repo := ($.Param "github_project_repo") -}}
{{ $gh_branch := (default "main" ($.Param "github_branch")) -}} {{ $gh_branch := (default "main" ($.Param "github_branch")) -}}
<div class="td-page-meta ms-2 pb-1 pt-2 mb-0"> <div class="td-page-meta py-2 mb-0">
{{ if $gh_url -}} {{ if $gh_url -}}
{{ warnf "Warning: use of `github_url` is deprecated. For details see https://www.docsy.dev/docs/adding-content/repository-links/#github_url-optional" -}} {{ warnf "Warning: use of `github_url` is deprecated. For details see https://www.docsy.dev/docs/adding-content/repository-links/#github_url-optional" -}}
<a href="{{ $gh_url }}" target="_blank"><i class="fa-solid fa-pen-to-square fa-fw"></i> {{ T "post_edit_this" }}</a> <a href="{{ $gh_url }}" target="_blank"><i class="fa-solid fa-pen-to-square fa-fw"></i> {{ T "post_edit_this" }}</a>