diff --git a/assets/css/compiled/main.css b/assets/css/compiled/main.css index 797f2da8..9a567b43 100644 --- a/assets/css/compiled/main.css +++ b/assets/css/compiled/main.css @@ -1928,6 +1928,11 @@ select { height: 100%; } +.h-max { + height: -moz-max-content; + height: max-content; +} + .h-screen { height: 100vh; } @@ -1960,6 +1965,15 @@ select { min-height: auto; } +.min-h-full { + min-height: 100%; +} + +.min-h-fit { + min-height: -moz-fit-content; + min-height: fit-content; +} + .\!w-px { width: 1px !important; } diff --git a/config/_default/params.toml b/config/_default/params.toml index 5d5f35ce..852c18d8 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -69,7 +69,7 @@ disableImageOptimization = false showAuthorsBadges = false showWordCount = true showSummary = true - # sharingLinks = [ "linkedin", "twitter", "reddit", "pinterest", "facebook", "email"] + # sharingLinks = [ "linkedin", "twitter", "reddit", "pinterest", "facebook", "email", "whatsapp", "telegram"] [list] showHero = false diff --git a/data/sharing.json b/data/sharing.json index 5c89852b..b43eb3fe 100644 --- a/data/sharing.json +++ b/data/sharing.json @@ -28,5 +28,15 @@ "icon": "twitter", "title": "sharing.twitter", "url": "https://twitter.com/intent/tweet/?url=%s&text=%s" + }, + "whatsapp": { + "icon": "whatsapp", + "title": "sharing.whatsapp", + "url": "https://api.whatsapp.com/send?text=%s&resubmit=true&title=%s" + }, + "telegram": { + "icon": "telegram", + "title": "sharing.telegram", + "url": "https://t.me/share/url?url=%s&resubmit=true&title=%s" } } \ No newline at end of file diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml index 406813f3..2f1f1a83 100644 --- a/exampleSite/config/_default/params.toml +++ b/exampleSite/config/_default/params.toml @@ -68,7 +68,7 @@ smartTOCHideUnfocusedChildren = true showAuthorsBadges = true showWordCount = false showSummary = true - sharingLinks = [ "linkedin", "twitter", "reddit", "pinterest", "facebook", "email"] + sharingLinks = [ "linkedin", "twitter", "reddit", "whatsapp", "telegram", "pinterest", "facebook", "email"] [list] showHero = true diff --git a/exampleSite/content/docs/configuration/index.md b/exampleSite/content/docs/configuration/index.md index ebf15705..da01b965 100644 --- a/exampleSite/content/docs/configuration/index.md +++ b/exampleSite/content/docs/configuration/index.md @@ -207,7 +207,7 @@ Many of the article defaults here can be overridden on a per article basis by sp | `article.showWordCount` | `false` | Whether or not article word counts are displayed. | | `article.showComments` | `false` | Whether or not the [comments partial]({{< ref "partials#comments" >}}) is included after the article footer. | | `article.showSummary` | `false` | Whether or not article summaries are displayed on list pages. If a summary is not provided in the [front matter]({{< ref "front-matter" >}}), one will be auto generated using the `summaryLength` parameter in the [site configuration](#site-configuration). | -| `article.sharingLinks` | _Not set_ | Which sharing links to display at the end of each article. When not provided, or set to `false` no links will be displayed. | +| `article.sharingLinks` | _Not set_ | Which sharing links to display at the end of each article. When not provided, or set to `false` no links will be displayed. Available values are: "linkedin", "twitter", "reddit", "pinterest", "facebook", "email", "whatsapp", and "telegram" | ### List