diff options
author | C. Lente <7017340+clente@users.noreply.github.com> | 2023-03-04 15:08:11 -0300 |
---|---|---|
committer | C. Lente <7017340+clente@users.noreply.github.com> | 2023-03-04 15:08:11 -0300 |
commit | f9ba6222e4278479a6eb221d644abdeca9dc4583 (patch) | |
tree | 4eeb8b132aa44fd21f914dc828c6e7c6c57594f1 /README.md | |
parent | a98c11f5f75c3e1f0b85e74521d088c7dd3a9958 (diff) | |
download | hugo-bearcub-f9ba6222e4278479a6eb221d644abdeca9dc4583.tar.gz hugo-bearcub-f9ba6222e4278479a6eb221d644abdeca9dc4583.tar.bz2 |
Dynamically generated social cards
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -107,6 +107,11 @@ already implemented: writing the CSS you need in `assets/{custom_css}.css` and then including `style: "{custom_css}.css"` in the [front matter](https://gohugo.io/content-management/front-matter/) of said page. +- Dynamic social card generation (EXPERIMENTAL): if you don't add preview images + to a post, this template will generate one based on the title. You can see an + example below. + + ## Configuration @@ -165,8 +170,8 @@ enableRobotsTXT = true favicon = "images/favicon.png" # These images will show up when services want to generate a preview of a link - # to your site. For more information about previews, see - # https://gohugo.io/templates/internal#twitter-cards and + # to your site. Ignored if `generateSocialCard = true`. For more information + # about previews, see https://gohugo.io/templates/internal#twitter-cards and # https://gohugo.io/templates/internal#open-graph images = ["/images/share.webp"] @@ -183,8 +188,18 @@ enableRobotsTXT = true # have the theme simply not show any link hideUntranslated = false - # Your email, added to the navbar so readers can reply to your posts - email = "me@example.com" + # (EXPERIMENTAL) This theme is capable of dynamically generating social cards + # for posts that don't have `images` defined in their front matter. By setting + # `generateSocialCard` to false, you can prevent this behavior. For more + # information about images, see https://gohugo.io/functions/images/ + generateSocialCard = true + + # Social media. Delete any item you aren't using to make sure it won't show up + # in your website's metadata. + [social] + email = "me@example.com" # Added to the navbar so readers can reply to posts + twitter = "example" # Twitter handle (without '@') + facebook_admin = "0000000000" # Facebook Page Admin ID ``` ## Contributing |