From 3ac510484e8b2a6ece5c8015f92ca1b973c2bdac Mon Sep 17 00:00:00 2001 From: Aditya Telange <21258296+adityatelange@users.noreply.github.com> Date: Thu, 24 Sep 2020 11:54:04 +0530 Subject: [PATCH] update :P --- config.yml | 2 +- content/posts/markdown-syntax.md | 1 + content/posts/papermod/papermod-features.md | 26 +++++++++++-------- content/posts/papermod/papermod-icons.md | 4 +-- content/posts/papermod/papermod-variables.md | 27 ++++++++++++++++++++ 5 files changed, 46 insertions(+), 14 deletions(-) create mode 100644 content/posts/papermod/papermod-variables.md diff --git a/config.yml b/config.yml index 4e614b62..f19b2ad9 100644 --- a/config.yml +++ b/config.yml @@ -43,7 +43,7 @@ params: - name: linkedin url: '#' - name: github - url: '#' + url: 'https://github.com/adityatelange/hugo-PaperMod' markup: tableOfContents: diff --git a/content/posts/markdown-syntax.md b/content/posts/markdown-syntax.md index a0841fb5..943d2bb3 100644 --- a/content/posts/markdown-syntax.md +++ b/content/posts/markdown-syntax.md @@ -17,6 +17,7 @@ series = ["Themes Guide"] aliases = ["migrate-from-jekyl"] ShowToc = true TocOpen = true +weight = 2 +++ This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. diff --git a/content/posts/papermod/papermod-features.md b/content/posts/papermod/papermod-features.md index 7ad19dd7..f2c0a065 100644 --- a/content/posts/papermod/papermod-features.md +++ b/content/posts/papermod/papermod-features.md @@ -2,13 +2,11 @@ title: "Papermod - Features" date: 2020-09-16T11:30:03+05:30 showToc: true -TocOpen: true weight: 2 aliases: ['/papermod-features'] tags: ['PaperMod'] author: "Aditya Telange" -ShowToc: true -TocOpen: true +tocopen: true --- ## Assets (js/css) @@ -121,13 +119,18 @@ adds `[draft]` mark to indicate draft pages. 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 +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 +--- + +## Scroll-to-Top Button (by default) + +Displays a Scroll-to-Top button in right-bottom corner --- @@ -157,7 +160,7 @@ Params: --- -## Show Table of Contents on blog post +## Show Table of Contents (Toc) on blog post Displays ToC on blog-pages @@ -166,7 +169,7 @@ To show ToC add following to page-variables ShowToc: true ``` -To keep Toc Open by default on a post add following to page-variables: +To keep Toc Open **by default** on a post add following to page-variables: ```yml TocOpen: true ``` @@ -182,17 +185,18 @@ to add comments, create a html file and paste code provided by your comments provider also in config add this + ```yml params: comments: true ``` -more : read [this](https://gohugo.io/content-management/comments/) +read more about this [here](https://gohugo.io/content-management/comments/) --- -### Scroll-Bar themed +## Scroll-Bar themed (by default) --- -### Smooth Scroll between in-page links +## Smooth Scroll between in-page links (by default) diff --git a/content/posts/papermod/papermod-icons.md b/content/posts/papermod/papermod-icons.md index fc5e2923..e982487e 100644 --- a/content/posts/papermod/papermod-icons.md +++ b/content/posts/papermod/papermod-icons.md @@ -1,8 +1,8 @@ --- title: "Papermod - Icons" date: 2020-09-17T11:30:03+05:30 -showToc: true -TocOpen: true +showtoc: true +tocopen: true weight: 3 aliases: ['/papermod-icons'] tags: ['PaperMod'] diff --git a/content/posts/papermod/papermod-variables.md b/content/posts/papermod/papermod-variables.md new file mode 100644 index 00000000..9ab09be9 --- /dev/null +++ b/content/posts/papermod/papermod-variables.md @@ -0,0 +1,27 @@ +--- +title: "Papermod - Variables" +date: 2020-09-24T11:33:33+05:30 +showToc: true +TocOpen: true +tags: ['PaperMod'] +author: "Aditya Telange" +draft: true +--- + +## Variables in PaperMod +Below are variables used with this theme... + +### Site Variables +| name | type | example | +| - | - | - | +| ShowReadingTime | boolean | true \| false | +| defaultTheme | string | light \| dark \| auto | +| ShowShareButtons | boolean | true \| false | + +### Page Variables + +| name | type | example | +| - | - | - | +| showtoc | boolean | true \| false | +| tocopen | boolean | true \| false | +| hidemeta | boolean | true \| false | \ No newline at end of file