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 /exampleSite | |
parent | a98c11f5f75c3e1f0b85e74521d088c7dd3a9958 (diff) | |
download | hugo-bearcub-f9ba6222e4278479a6eb221d644abdeca9dc4583.tar.gz hugo-bearcub-f9ba6222e4278479a6eb221d644abdeca9dc4583.tar.bz2 |
Dynamically generated social cards
Diffstat (limited to 'exampleSite')
-rw-r--r-- | exampleSite/config.toml | 20 | ||||
-rw-r--r-- | exampleSite/content.pt/_index.md | 1 | ||||
-rw-r--r-- | exampleSite/content.pt/blog/_index.md | 1 | ||||
-rw-r--r-- | exampleSite/content/_index.md | 1 | ||||
-rw-r--r-- | exampleSite/content/blog/_index.md | 1 |
5 files changed, 17 insertions, 7 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index d487ac0..34e7702 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -48,8 +48,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"] @@ -61,14 +61,20 @@ enableRobotsTXT = true # formatting, see https://gohugo.io/functions/format/ dateFormat = "2006-01-02" + # If your blog is multilingual but you haven't translated a page, this theme + # will create a disabled link. By setting `hideUntranslated` to true, you can + # have the theme simply not show any link + hideUntranslated = false + + # (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 - - # (EXPERIMENTAL) If your blog is multilingual but you haven't translated a - # page, this theme will create a disabled link. By setting `hideUntranslated` - # to true, you can have the theme simply not show any link - hideUntranslated = false diff --git a/exampleSite/content.pt/_index.md b/exampleSite/content.pt/_index.md index 4cf0d7e..badc5fe 100644 --- a/exampleSite/content.pt/_index.md +++ b/exampleSite/content.pt/_index.md @@ -1,6 +1,7 @@ --- title: "Início" menu: "main" +images: ["/images/share.webp"] weight: 1 --- diff --git a/exampleSite/content.pt/blog/_index.md b/exampleSite/content.pt/blog/_index.md index 7588ac1..fc46376 100644 --- a/exampleSite/content.pt/blog/_index.md +++ b/exampleSite/content.pt/blog/_index.md @@ -1,5 +1,6 @@ --- title: "Blog" menu: "main" +images: ["/images/share.webp"] weight: 2 ---
\ No newline at end of file diff --git a/exampleSite/content/_index.md b/exampleSite/content/_index.md index 10c388f..d0d54ef 100644 --- a/exampleSite/content/_index.md +++ b/exampleSite/content/_index.md @@ -1,6 +1,7 @@ --- title: "Home" menu: "main" +images: ["/images/share.webp"] weight: 1 --- diff --git a/exampleSite/content/blog/_index.md b/exampleSite/content/blog/_index.md index 7588ac1..fc46376 100644 --- a/exampleSite/content/blog/_index.md +++ b/exampleSite/content/blog/_index.md @@ -1,5 +1,6 @@ --- title: "Blog" menu: "main" +images: ["/images/share.webp"] weight: 2 ---
\ No newline at end of file |