diff options
Diffstat (limited to 'exampleSite/hugo.toml')
-rw-r--r-- | exampleSite/hugo.toml | 114 |
1 files changed, 72 insertions, 42 deletions
diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index d67e845..3c8b0d0 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -1,52 +1,82 @@ -# Base URL used when generating links to your pages -# Set to the URL for your site +# Basic config baseURL = "https://example.com" - -# The name of this wonderful theme ;-). -theme = 'hugo-bearblog' - -# Basic metadata configuration for your blog. -title = "Hugo ʕ•ᴥ•ʔ Bear Blog" -author = "Jane Doe" -copyright = "Copyright © 2020, Jane Doe." -languageCode = "en-US" +theme = "hugo-bearcub" +copyright = "John Doe (CC BY 4.0)" +defaultContentLanguage = "en" # Generate a nice robots.txt for SEO enableRobotsTXT = true -# Generate "Bearblog"-like URLs !only!, see https://bearblog.dev/. -disableKinds = ["taxonomy"] -ignoreErrors = ["error-disable-taxonomy"] -[permalinks] - blog = "/:slug/" - tags = "/blog/:slug" +# Setup syntax highlighting without inline styles. For more information about +# why you'd want to avoid inline styles, see +# https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src#unsafe_inline_styles +[markup] + [markup.highlight] + lineNos = true + lineNumbersInTable = false + # This allows Bear Cub to use a variation of Dracula that is more accessible + # to people with poor eyesight. For more information about color contrast + # and accessibility, see https://web.dev/color-and-contrast-accessibility/ + noClasses = false + +# Multilingual mode config. More for information about how to setup translation, +# see https://gohugo.io/content-management/multilingual/ +[languages] + [languages.en] + title = "Bear Cub" + languageName = "en-US 🇺🇸" + LanguageCode = "en-US" + contentDir = "content" + [languages.en.params] + madeWith = "Made with [Bear Cub](https://github.com/clente/hugo-bearcub)" + [languages.pt] + title = "Bear Cub" + languageName = "pt-BR 🇧🇷" + LanguageCode = "pt-BR" + contentDir = "content.pt" + [languages.pt.params] + madeWith = "Feito com [Bear Cub](https://github.com/clente/hugo-bearcub)" [params] - # The "description" of your website. This is used in the meta data of your generated html. - description = "Hugo + Bear = :heart:" + # The description of your website + description = "Bear Cub Demo" - # The path to your "favicon". This should be a square (at least 32px x 32px) png-file. - # Hint: It's good practise to also put a "favicon.ico"-file into your "static"-folder. + # The path to your favicon favicon = "images/favicon.png" - # These "images" are used for the structured data templates. This will show up, when - # services like Twitter or Slack want to generate a preview of a link to your site. - # See https://gohugo.io/templates/internal#twitter-cards and - # https://gohugo.io/templates/internal#open-graph. - images = ["images/share.png"] - - # Another "title" :-). This one is used as the site_name on the Hugo's internal - # opengraph structured data template. - # See https://ogp.me/ and https://gohugo.io/templates/internal#open-graph. - title = "Hugo ʕ•ᴥ•ʔ Bear" - - # This theme will, by default, inject a made-with-line at the bottom of the page. - # You can turn it off, but we would really appreciate if you don’t :-). - # hideMadeWithLine = true - - # By default, this theme displays dates with a format like "02 Jan, 2006", but - # you can customize it by setting the `dateFormat` param in your site's config - # file. See [Hugo's Format function docs](https://gohugo.io/functions/format/) - # for details. An example TOML config that uses [ISO - # 8601](https://en.wikipedia.org/wiki/ISO_8601) format: - # dateFormat = "2006-01-02" + # These images will show up when services want to generate a preview of a link + # 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"] + + # This title is used as the site_name on the Hugo's internal opengraph + # structured data template + title = "Bear Cub" + + # Dates are displayed following the format below. For more information about + # 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 see layouts/partials/social_card.html + generateSocialCard = true + + # Social media. Delete any item you aren't using to make sure it won't show up + # in your website's metadata. + [params.social] + twitter = "example" # Twitter handle (without '@') + facebook_admin = "0000000000" # Facebook Page Admin ID + + # Author metadata. This is mostly used for the RSS feed of your site, but the + # email is also added to the footer of each post + [params.author] + name = "John Doe" # Your name as shown in the RSS feed metadata + email = "me@example.com" # Added to the footer so readers can reply to posts |