Merge pull request #659 from nunocoracao/646-add-telegram-and-whatsapp-share-icon

 Add telegram and whatsapp share icons
This commit is contained in:
Nuno Coração 2023-04-10 21:49:00 +01:00 committed by GitHub
commit ae3b8d9933
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 27 additions and 3 deletions

View file

@ -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;
}

View file

@ -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

View file

@ -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"
}
}

View file

@ -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

View file

@ -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