Fix strings

This commit is contained in:
danpros 2024-02-26 15:38:35 +07:00
commit 81bf71c872
3 changed files with 9 additions and 3 deletions

View file

@ -28,6 +28,12 @@ blog.enable = "false"
; Social account
social.twitter = ""
social.facebook = ""
social.instagram = ""
social.linkedin = ""
social.github = ""
social.youtube = ""
social.mastodon = ""
social.tiktok = ""
; Breadcrumb home text. Useful when installed on subfolder.
breadcrumb.home = "Home"
@ -148,7 +154,7 @@ toc.style = "default"
; Option "true" and "false"
toc.automatic = "false"
; Automatically insert the TOC in x paragraph
; Automatically insert the TOC after x paragraph
toc.position = "1"
; Set the theme here

View file

@ -125,7 +125,7 @@
</div>
</div>
<div class="form-group row">
<label for="toc.position" class="col-sm-2 col-form-label">TOC position in x paragraph</label>
<label for="toc.position" class="col-sm-2 col-form-label">TOC position after x paragraph</label>
<div class="col-sm-10">
<input type="number" name="-config-toc.position" class="form-control" id="toc.position" value="<?php echo config('toc.position');?>">
</div>

View file

@ -3654,7 +3654,7 @@ function insert_toc($id, $part_1 = null, $part_2 = null)
return $result;
}
// Automatically add toc in x paragraph
// Automatically add toc after x paragraph
function automatic_toc($content, $id)
{
$pos = config('toc.position');