From 04ca1b0ea87b81625195a3cc17c77fceeac80bbc Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 24 Sep 2020 11:18:03 +0530 Subject: [PATCH] post: update features --- content/posts/papermod/papermod-features.md | 24 +++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/content/posts/papermod/papermod-features.md b/content/posts/papermod/papermod-features.md index 1e22865d..30ff7449 100644 --- a/content/posts/papermod/papermod-features.md +++ b/content/posts/papermod/papermod-features.md @@ -31,6 +31,15 @@ or params: defaultTheme: dark ``` + +or + +```yml +params: + defaultTheme: auto # to switch between dark or light according to browser theme +``` + + --- ## Archives Layout @@ -106,6 +115,16 @@ adds `[draft]` mark to indicate draft pages. --- +## Cover for a Post + +In post's page-variables add : + +```yml +cover = "" # can also paste direct link from external site ex. https://i.ibb.co/K0HVPBd/paper-mod-profilemode.png +``` + +![](https://user-images.githubusercontent.com/21258296/93084795-3579ae80-f6b2-11ea-98c1-eee4061eb836.png) + ## Scroll-to-Top Button Displays a Scroll-to-Top button in right-bottom corner @@ -146,6 +165,11 @@ To show ToC add following to page-variables ShowToc: true ``` +To keep Toc Open by default on a post add following to page-variables: +```yml +TocOpen: true +``` + --- ## Comments