title | linkTitle | description | date | nav_icon | categories | tags | |||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Has ToC |
Has ToC |
表示當前頁是否具有目錄的函數。 |
2024-03-07 20:12:52 +0800 |
|
|
|
當不存在目錄時,.TableOfContents
並不總是空字符串,其可能為 <nav id="TableOfContents"></nav>
,而該函數正是用於處理這種情況。
該函數接收頁面參數作為上下文,然後返回一個布爾值表示給定的頁面是否具有目錄。
{{< page-resource-content "codes/usage" >}}