hugo-PaperMod/content/posts/papermod/papermod-variables.md

36 lines
1.1 KiB
Markdown
Raw Normal View History

2020-09-24 02:24:04 -04:00
---
title: "Papermod - Variables"
summary: List of Front Matter variables used by PaperMod
2020-09-24 02:24:04 -04:00
date: 2020-09-24T11:33:33+05:30
showToc: true
TocOpen: true
2020-10-27 09:16:08 -04:00
tags: ["PaperMod"]
2020-09-24 02:24:04 -04:00
author: "Aditya Telange"
draft: true
---
## Variables in PaperMod
2020-10-27 09:16:08 -04:00
2020-09-24 02:24:04 -04:00
Below are variables used with this theme...
### Site Variables
2020-10-27 09:16:08 -04:00
| name | type | example |
| ---------------------- | ------- | --------------------- |
| ShowReadingTime | boolean | true \| false |
| defaultTheme | string | light \| dark \| auto |
| ShowShareButtons | boolean | true \| false |
| cover.linkFullImages | boolean | true \| false |
| cover.responsiveImages | boolean | true \| false |
2020-09-24 02:24:04 -04:00
### Page Variables
2020-10-27 09:16:08 -04:00
| name | type | example |
| ------------- | ------- | ---------------- |
| showtoc | boolean | true \| false |
| tocopen | boolean | true \| false |
| hidemeta | boolean | true \| false |
| cover.image | string | `'featured.jpg'` |
| cover.caption | string | `'<text>'` |
| cover.alt | string | `'<alt text>'` |