mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
update :P
This commit is contained in:
parent
40c69710f2
commit
3ac510484e
@ -43,7 +43,7 @@ params:
|
||||
- name: linkedin
|
||||
url: '#'
|
||||
- name: github
|
||||
url: '#'
|
||||
url: 'https://github.com/adityatelange/hugo-PaperMod'
|
||||
|
||||
markup:
|
||||
tableOfContents:
|
||||
|
@ -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.
|
||||
|
@ -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 = "<absolute image url>" # can also paste direct link from external site ex. https://i.ibb.co/K0HVPBd/paper-mod-profilemode.png
|
||||
cover = "<absolute image url>"
|
||||
# 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)
|
||||
|
@ -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']
|
||||
|
27
content/posts/papermod/papermod-variables.md
Normal file
27
content/posts/papermod/papermod-variables.md
Normal file
@ -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 |
|
Loading…
Reference in New Issue
Block a user