mirror of
https://github.com/Wonderfall/hugo-WonderMod.git
synced 2024-11-26 04:21:38 +01:00
update docs from wiki
This commit is contained in:
parent
2dae7281f3
commit
b85471e946
@ -327,6 +327,47 @@ ShowBreadCrumbs: false
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
### Edit Link for Posts
|
||||||
|
|
||||||
|
Add a button to suggest changes by using the file path of the post to link to a edit destination.
|
||||||
|
|
||||||
|
For site config use:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
Params:
|
||||||
|
editPost:
|
||||||
|
URL: "https://github.com/<path_to_repo>/content"
|
||||||
|
Text: "Suggest Changes" # edit text
|
||||||
|
appendFilePath: true # to append file path to Edit link
|
||||||
|
```
|
||||||
|
|
||||||
|
Can be modified for individual pages
|
||||||
|
|
||||||
|
```yml
|
||||||
|
---
|
||||||
|
editPost:
|
||||||
|
URL: "https://github.com/<path_to_repo>/content"
|
||||||
|
Text: "Suggest Changes" # edit text
|
||||||
|
appendFilePath: true # to append file path to Edit link
|
||||||
|
---
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
The example above would yield the following link for the post file `posts/post-name.md`:
|
||||||
|
https://github.com/<path_to_repo>/content/posts/post-name.md
|
||||||
|
|
||||||
|
| Parameter | Required | Default Value |
|
||||||
|
| ----------------------- | -------- | ------------- |
|
||||||
|
| editPost.URL | true | - |
|
||||||
|
| editPost.appendFilePath | false | false |
|
||||||
|
| editPost.Text | false | "Edit" |
|
||||||
|
|
||||||
|
Since the link generated is a regular HTML anchor tag `<a href=...>`, you can
|
||||||
|
also use other URL schemas like `mailto://`, e.g.
|
||||||
|
`URL: "mailto://mail@example.com?subject=Suggesting changes for "`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
### Other Posts suggestion below a post
|
### Other Posts suggestion below a post
|
||||||
|
|
||||||
Adds a Previous / Next post suggestion under a single post
|
Adds a Previous / Next post suggestion under a single post
|
||||||
|
@ -29,34 +29,37 @@ draft: true
|
|||||||
| 14 | `freepik` | freepik.com |
|
| 14 | `freepik` | freepik.com |
|
||||||
| 15 | `github` | github.com |
|
| 15 | `github` | github.com |
|
||||||
| 16 | `gitlab` | gitlab.com |
|
| 16 | `gitlab` | gitlab.com |
|
||||||
| 17 | `hackerrank` | hackerrank.com |
|
| 17 | `gitea` | gitea.io |
|
||||||
| 18 | `hackthebox` | hackthebox.eu |
|
| 18 | `hackerrank` | hackerrank.com |
|
||||||
| 19 | `instagram` | instagram.com |
|
| 19 | `hackthebox` | hackthebox.eu |
|
||||||
| 20 | `kakaotalk` | kakaocorp.com/service/KakaoTalk |
|
| 20 | `instagram` | instagram.com |
|
||||||
| 21 | `keybase` | keybase.io |
|
| 21 | `itchio` | itch.io |
|
||||||
| 22 | `kofi` | ko-fi.com |
|
| 22 | `kakaotalk` | kakaocorp.com/service/KakaoTalk |
|
||||||
| 23 | `lastfm` | last.fm |
|
| 23 | `keybase` | keybase.io |
|
||||||
| 24 | `linkedin` | linkedin.com |
|
| 24 | `kofi` | ko-fi.com |
|
||||||
| 25 | `mastodon` | mastodon.social |
|
| 25 | `lastfm` | last.fm |
|
||||||
| 26 | `medium` | medium.com |
|
| 26 | `linkedin` | linkedin.com |
|
||||||
| 27 | `mixcloud` | mixcloud.com |
|
| 27 | `mastodon` | mastodon.social |
|
||||||
| 28 | `nuget` | nuget.org |
|
| 28 | `medium` | medium.com |
|
||||||
| 29 | `paypal` | paypal.com |
|
| 29 | `mixcloud` | mixcloud.com |
|
||||||
| 30 | `qq` | qq.com |
|
| 30 | `nuget` | nuget.org |
|
||||||
| 31 | `reddit` | reddit.com |
|
| 31 | `paypal` | paypal.com |
|
||||||
| 32 | `rss` | - |
|
| 32 | `qq` | qq.com |
|
||||||
| 33 | `soundcloud` | soundcloud.com |
|
| 33 | `reddit` | reddit.com |
|
||||||
| 34 | `shutterstock` | shutterstock.com |
|
| 34 | `rss` | - |
|
||||||
| 35 | `slack` | slack.com |
|
| 35 | `soundcloud` | soundcloud.com |
|
||||||
| 36 | `snapchat` | snapchat.com/add |
|
| 36 | `shutterstock` | shutterstock.com |
|
||||||
| 37 | `sourcerer` | sourcerer.io |
|
| 37 | `slack` | slack.com |
|
||||||
| 38 | `stackoverflow` | stackoverflow.com |
|
| 38 | `snapchat` | snapchat.com/add |
|
||||||
| 39 | `steam` | steampowered.com |
|
| 39 | `sourcerer` | sourcerer.io |
|
||||||
| 40 | `telegram` | telegram.org |
|
| 40 | `stackoverflow` | stackoverflow.com |
|
||||||
| 41 | `twitch` | twitch.tv |
|
| 41 | `steam` | steampowered.com |
|
||||||
| 42 | `twitter` | twitter.com |
|
| 42 | `telegram` | telegram.org |
|
||||||
| 43 | `youtube` | youtube.com |
|
| 43 | `twitch` | twitch.tv |
|
||||||
| 44 | `other` | - |
|
| 44 | `twitter` | twitter.com |
|
||||||
|
| 45 | `unsplash` | unsplash.com |
|
||||||
|
| 46 | `youtube` | youtube.com |
|
||||||
|
| 47 | `other` | - |
|
||||||
|
|
||||||
Usage :
|
Usage :
|
||||||
|
|
||||||
|
@ -14,33 +14,37 @@ weight: 5
|
|||||||
|
|
||||||
### Site Variables under `Params`
|
### Site Variables under `Params`
|
||||||
|
|
||||||
| name | type | example | Description |
|
| name | type | example | Description |
|
||||||
| -------------------------------------- | ------------- | ------------------------ | ----------------------------------------------------------------------------------- |
|
| -------------------------------------- | ------------- | ------------------------ | ----------------------------------------------------------------------------------------- |
|
||||||
| `env` | string | 'production' | To set env to production |
|
| `env` | string | 'production' | To set env to production |
|
||||||
| `title` | string | 'My Blog' | To set title |
|
| `title` | string | 'My Blog' | To set title |
|
||||||
| `description` | string | 'This is a blog of mine' | To set site description |
|
| `description` | string | 'This is a blog of mine' | To set site description |
|
||||||
| `author` | string \|list | 'Me' \| ['Me','You'] | To show multiple Authors |
|
| `author` | string \|list | 'Me' \| ['Me','You'] | To show multiple Authors |
|
||||||
| `images` | string | 'myimage.png' | Link or path of image for opengraph, twitter-cards |
|
| `images` | string | 'myimage.png' | Link or path of image for opengraph, twitter-cards |
|
||||||
| `ShowReadingTime` | boolean | true \| false | To show read time in post meta |
|
| `DateFormat` | string | "January 2, 2006" | The format of date strings in the website. [Details](https://gohugo.io/functions/format/) |
|
||||||
| `ShowShareButtons` | boolean | true \| false | To show/hide share buttons under post |
|
| `ShowReadingTime` | boolean | true \| false | To show read time in post meta |
|
||||||
| `defaultTheme` | string | light \| dark \| auto | To set default theme |
|
| `ShowShareButtons` | boolean | true \| false | To show/hide share buttons under post |
|
||||||
| `disableThemeToggle` | boolean | true \| false | To disable theme toggle icon shown besides label |
|
| `defaultTheme` | string | light \| dark \| auto | To set default theme |
|
||||||
| `disableSpecial1stPost` | boolean | true \| false | To disable no-card special appearance of 1st post |
|
| `disableThemeToggle` | boolean | true \| false | To disable theme toggle icon shown besides label |
|
||||||
| `hidemeta` | boolean | true \| false | To Hide meta elements : date, read-time, author and available-translations for page |
|
| `disableSpecial1stPost` | boolean | true \| false | To disable no-card special appearance of 1st post |
|
||||||
| `showtoc` | boolean | true \| false | To show/hide Table of Contents |
|
| `disableScrollToTop` | boolean | true \| false | To disable ScrollToTop button |
|
||||||
| `tocopen` | boolean | true \| false | To keep open ToC by default on page load |
|
| `hidemeta` | boolean | true \| false | To Hide meta elements : date, read-time, author and available-translations for page |
|
||||||
| `ShowPostNavLinks` | boolean | true \| false | Show Previous and Next Posts below a Post |
|
| `hideSummary` | boolean | true \| false | To Hide summary being shown in list pages |
|
||||||
| `ShowBreadCrumbs` | boolean | true \| false | Show BreadCrumb Navigation above single post/page |
|
| `showtoc` | boolean | true \| false | To show/hide Table of Contents |
|
||||||
| `comments` | boolean | true \| false | To show/hide comments |
|
| `tocopen` | boolean | true \| false | To keep open ToC by default on page load |
|
||||||
| `analytics.google.SiteVerificationTag` | string | "XYZabc" | Site Verification Tag for Google Analytics |
|
| `ShowPostNavLinks` | boolean | true \| false | Show Previous and Next Posts below a Post |
|
||||||
| `analytics.bing.SiteVerificationTag` | string | "XYZabc" | Site Verification Tag for Bing |
|
| `ShowBreadCrumbs` | boolean | true \| false | Show BreadCrumb Navigation above single post/page |
|
||||||
| `analytics.yandex.SiteVerificationTag` | string | "XYZabc" | Site Verification Tag for Yandex |
|
| `comments` | boolean | true \| false | To show/hide comments |
|
||||||
| `fuseOpts` | - | - | [Details](#fuseOpts) |
|
| `analytics.google.SiteVerificationTag` | string | "XYZabc" | Site Verification Tag for Google Analytics |
|
||||||
| `socialIcons` | - | - | [Details](#socialIcons) |
|
| `analytics.bing.SiteVerificationTag` | string | "XYZabc" | Site Verification Tag for Bing |
|
||||||
| `label` | - | - | [Details](#label) |
|
| `analytics.yandex.SiteVerificationTag` | string | "XYZabc" | Site Verification Tag for Yandex |
|
||||||
| `assets` | - | - | [Details](#assets) |
|
| `fuseOpts` | - | - | [Details](#fuseOpts) |
|
||||||
| `cover` | - | - | [Details](#cover) |
|
| `socialIcons` | - | - | [Details](#socialIcons) |
|
||||||
| `profileMode` | - | - | [Details](#profilemode) |
|
| `label` | - | - | [Details](#label) |
|
||||||
|
| `assets` | - | - | [Details](#assets) |
|
||||||
|
| `cover` | - | - | [Details](#cover) |
|
||||||
|
| `profileMode` | - | - | [Details](#profilemode) |
|
||||||
|
| `editPost` | - | - | [Details](#editPost) |
|
||||||
|
|
||||||
#### label
|
#### label
|
||||||
|
|
||||||
@ -117,25 +121,39 @@ socialIcons:
|
|||||||
url: "<link2>"
|
url: "<link2>"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### editPost
|
||||||
|
|
||||||
|
```yml
|
||||||
|
editPost:
|
||||||
|
URL: "https://github.com/<path_to_repo>/content"
|
||||||
|
Text: "Suggest Changes" # edit text
|
||||||
|
appendFilePath: true # to append file path to Edit link
|
||||||
|
```
|
||||||
|
|
||||||
|
> Note: Same format is being used by Page Variables
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
### Page Variables
|
### Page Variables
|
||||||
|
|
||||||
| Name | Type | Example | Description |
|
| Name | Type | Example | Description |
|
||||||
| ----------------- | ------------- | --------------------- | ----------------------------------------------------------------------------------- |
|
| ------------------ | ------------- | --------------------- | ----------------------------------------------------------------------------------- |
|
||||||
| `showtoc` | boolean | true \| false | To show/hide Table of Contents |
|
| `showtoc` | boolean | true \| false | To show/hide Table of Contents |
|
||||||
| `tocopen` | boolean | true \| false | To keep open ToC by default on page load |
|
| `tocopen` | boolean | true \| false | To keep open ToC by default on page load |
|
||||||
| `hidemeta` | boolean | true \| false | To Hide meta elements : date, read-time, author and available-translations for page |
|
| `hidemeta` | boolean | true \| false | To Hide meta elements : date, read-time, author and available-translations for page |
|
||||||
| `comments` | boolean | true \| false | To show/hide comments |
|
| `comments` | boolean | true \| false | To show/hide comments |
|
||||||
| `description` | string | 'description text' | Show Post Description under Title |
|
| `description` | string | 'description text' | Show Post Description under Title |
|
||||||
| `disableShare` | boolean | true \| false | To hide/show share icons under a page |
|
| `disableShare` | boolean | true \| false | To hide/show share icons under a page |
|
||||||
| `disableHLJS` | boolean | true \| false | To disable Highlight.js loading |
|
| `disableHLJS` | boolean | true \| false | To disable Highlight.js loading |
|
||||||
| `searchHidden` | boolean | true \| false | Hide page from search |
|
| `searchHidden` | boolean | true \| false | Hide page from search |
|
||||||
| `ShowBreadCrumbs` | boolean | true \| false | Show BreadCrumb Navigation above single post/page |
|
| `hideSummary` | boolean | true \| false | To Hide summary being shown in list pages |
|
||||||
| `author` | string \|list | 'Me' \| ['Me','You'] | To show multiple Authors |
|
| `ShowReadingTime` | boolean | true \| false | To show read time in post meta |
|
||||||
| `cover.image` | string | 'featured.jpg' | To add a cover image |
|
| `ShowBreadCrumbs` | boolean | true \| false | Show BreadCrumb Navigation above single post/page |
|
||||||
| `cover.caption ` | string | 'caption for image' | To add caption to cover image |
|
| `ShowPostNavLinks` | boolean | true \| false | Show Previous and Next Posts below a Post |
|
||||||
| `cover.alt` | string | 'this is cover image' | Alternate text to show if image doesn't load/show up |
|
| `author` | string \|list | 'Me' \| ['Me','You'] | To show multiple Authors |
|
||||||
| `cover.relative` | boolean | true \| false | To use relative path for cover image, used in hugo Page-bundles |
|
| `cover.image` | string | 'featured.jpg' | To add a cover image |
|
||||||
| `cover.hidden ` | boolean | true \| false | To hide on current single page |
|
| `cover.caption ` | string | 'caption for image' | To add caption to cover image |
|
||||||
| `weight ` | integer | 5 | To set page order or to pin a post to Top of list |
|
| `cover.alt` | string | 'this is cover image' | Alternate text to show if image doesn't load/show up |
|
||||||
|
| `cover.relative` | boolean | true \| false | To use relative path for cover image, used in hugo Page-bundles |
|
||||||
|
| `cover.hidden ` | boolean | true \| false | To hide on current single page |
|
||||||
|
| `weight ` | integer | 5 | To set page order or to pin a post to Top of list |
|
||||||
|
Loading…
Reference in New Issue
Block a user