mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2025-05-23 03:06:54 -04:00
2.0 docs
This commit is contained in:
parent
2aa462cf67
commit
ccaca9896c
3 changed files with 152 additions and 56 deletions
|
@ -9,7 +9,7 @@ author: "Aditya Telange"
|
|||
tocopen: true
|
||||
---
|
||||
|
||||
## Assets (js/css)
|
||||
### Assets (js/css)
|
||||
The following is enabled by default
|
||||
- [minification](https://gohugo.io/hugo-pipes/minification/) - makes the assets size smallest as possible.
|
||||
- [bundling](https://gohugo.io/hugo-pipes/bundling/) - bundles all the styles in one single asset
|
||||
|
@ -17,44 +17,43 @@ The following is enabled by default
|
|||
|
||||
---
|
||||
|
||||
## Default Theme light/dark
|
||||
|
||||
```yml
|
||||
params:
|
||||
defaultTheme: light
|
||||
```
|
||||
|
||||
or
|
||||
|
||||
```yml
|
||||
params:
|
||||
defaultTheme: dark
|
||||
```
|
||||
|
||||
or
|
||||
### Default Theme light/dark/auto
|
||||
|
||||
```yml
|
||||
params:
|
||||
# defaultTheme: light
|
||||
# defaultTheme: dark
|
||||
defaultTheme: auto # to switch between dark or light according to browser theme
|
||||
```
|
||||
</details>
|
||||
|
||||
---
|
||||
|
||||
## Archives Layout
|
||||
### Theme Switch Toggle (enabled by default)
|
||||
|
||||
Add vars below to page-variables
|
||||
Shows icon besides title of page to change theme
|
||||
|
||||
To disable it :
|
||||
|
||||
```yml
|
||||
disableThemeToggle : true
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
### Archives Layout
|
||||
|
||||
Create a page with `archive.md`
|
||||
Add vars below to its page-variables
|
||||
|
||||
```yml
|
||||
layout: "archives"
|
||||
```
|
||||
ex: [here](https://raw.githubusercontent.com/adityatelange/hugo-PaperMod/exampleSite/content/archives.md)
|
||||
|
||||

|
||||
ex: [archives.md](https://raw.githubusercontent.com/adityatelange/hugo-PaperMod/exampleSite/content/archives.md)
|
||||
|
||||
---
|
||||
|
||||
## Home-Info Mode
|
||||
### Home-Info Mode
|
||||
|
||||
Use 1st entry as some Information
|
||||
|
||||
|
@ -78,7 +77,7 @@ ex. [here](https://github.com/adityatelange/hugo-PaperMod/blob/exampleSite/confi
|
|||
|
||||
---
|
||||
|
||||
## Profile Mode
|
||||
### Profile Mode
|
||||
|
||||
Shows Index/Home page as Full Page with Social Links and Image
|
||||
|
||||
|
@ -108,33 +107,28 @@ params:
|
|||
|
||||
---
|
||||
|
||||
## [Draft](https://gohugo.io/getting-started/usage/#draft-future-and-expired-content) Page indication
|
||||
### Draft Page indication
|
||||
|
||||
adds `[draft]` mark to indicate draft pages.
|
||||
|
||||
---
|
||||
|
||||
## Cover for a Post
|
||||
### Post Cover Image
|
||||
|
||||
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:
|
||||
image: '<image path/url>'
|
||||
# can also paste direct link from external site
|
||||
# ex. https://i.ibb.co/K0HVPBd/paper-mod-profilemode.png
|
||||
alt: '<alt text>'
|
||||
caption: '<text>'
|
||||
```
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## Scroll-to-Top Button (by default)
|
||||
|
||||
Displays a Scroll-to-Top button in right-bottom corner
|
||||
|
||||
---
|
||||
|
||||
## Share Buttons on post
|
||||
### Share Buttons on post
|
||||
|
||||
Displays Share Buttons at Bottom of each post
|
||||
|
||||
|
@ -144,11 +138,9 @@ params:
|
|||
ShowShareButtons: true
|
||||
```
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## Show post reading time
|
||||
### Show post reading time
|
||||
|
||||
Displays Reading Time (the estimated time, in minutes, it takes to read the content.)
|
||||
|
||||
|
@ -160,7 +152,7 @@ Params:
|
|||
|
||||
---
|
||||
|
||||
## Show Table of Contents (Toc) on blog post
|
||||
### Show Table of Contents (Toc) on blog post
|
||||
|
||||
Displays ToC on blog-pages
|
||||
|
||||
|
@ -176,7 +168,7 @@ TocOpen: true
|
|||
|
||||
---
|
||||
|
||||
## Comments
|
||||
### Comments
|
||||
|
||||
to add comments, create a html file
|
||||
|
||||
|
@ -195,8 +187,26 @@ read more about this [here](https://gohugo.io/content-management/comments/)
|
|||
|
||||
---
|
||||
|
||||
## Scroll-Bar themed (by default)
|
||||
### Misc
|
||||
|
||||
---
|
||||
#### Scroll-Bar themed (by default)
|
||||
|
||||
## Smooth Scroll between in-page links (by default)
|
||||
#### Smooth Scroll between in-page links (by default)
|
||||
|
||||
#### Scroll-to-Top Button (by default)
|
||||
|
||||
Displays a Scroll-to-Top button in right-bottom corner
|
||||
|
||||
#### Google Analytics integration
|
||||
|
||||
#### Open-Graph support
|
||||
|
||||
#### Twitter Cards Support
|
||||
|
||||
#### Syntax highlighting
|
||||
|
||||
#### Twitter cards and opengraph tags support
|
||||
|
||||
#### RSS feeds
|
||||
|
||||
#### Multilingual Support
|
Loading…
Add table
Add a link
Reference in a new issue