├── .github └── workflows │ └── gh-pages.yml ├── .gitignore ├── LICENSE ├── README.md ├── assets ├── herman.css ├── images │ ├── social_card_bg.png │ └── social_card_fg.png ├── original.css └── syntax.css ├── exampleSite ├── content.pt │ ├── _index.md │ └── blog │ │ └── _index.md ├── content │ ├── _index.md │ └── blog │ │ ├── _index.md │ │ ├── emoji-support.md │ │ ├── markdown-syntax.md │ │ ├── math-typesetting.md │ │ ├── placeholder-text.md │ │ └── rich-content.md ├── hugo.toml └── static │ └── images │ ├── favicon.png │ └── share.webp ├── i18n ├── de.toml ├── en.toml ├── ko.toml └── pt.toml ├── images ├── pagespeed.webp ├── screenshot.png ├── social_card.webp └── tn.png ├── layouts ├── 404.html ├── _default │ ├── _markup │ │ └── render-codeblock.html │ ├── baseof.html │ ├── list.html │ ├── rss.xml │ └── single.html ├── index.html ├── partials │ ├── custom_body.html │ ├── custom_head.html │ ├── favicon.html │ ├── footer.html │ ├── header.html │ ├── nav.html │ ├── seo_tags.html │ └── social_card.html ├── robots.txt └── shortcodes │ ├── absfigure.html │ ├── highlight.html │ └── rawhtml.html └── theme.toml /.github/workflows/gh-pages.yml: -------------------------------------------------------------------------------- 1 | name: github pages 2 | 3 | on: 4 | push: 5 | branches: 6 | - main # Set a branch that will trigger a deployment 7 | pull_request: 8 | 9 | jobs: 10 | deploy: 11 | runs-on: ubuntu-22.04 12 | steps: 13 | - uses: actions/checkout@v3 14 | with: 15 | submodules: true # Fetch Hugo themes (true OR recursive) 16 | fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod 17 | 18 | - name: Setup Hugo 19 | uses: peaceiris/actions-hugo@v3 20 | with: 21 | hugo-version: 'latest' 22 | extended: true 23 | 24 | - name: Build 25 | run: hugo --minify --gc --destination ../public --source ./exampleSite --themesDir ../.. --baseURL https://clente.github.io/hugo-bearcub/ 26 | 27 | - name: Deploy 28 | uses: peaceiris/actions-gh-pages@v4 29 | if: github.ref == 'refs/heads/main' 30 | with: 31 | github_token: ${{ secrets.GITHUB_TOKEN }} 32 | publish_dir: ./public 33 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .hugo_build.lock 2 | .DS_Store 3 | resources/ 4 | todo.md 5 | exampleSite/public/ -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2020 Jan Raasch 4 | Copyright (c) 2023 Caio Lente 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy of 7 | this software and associated documentation files (the "Software"), to deal in 8 | the Software without restriction, including without limitation the rights to 9 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 10 | the Software, and to permit persons to whom the Software is furnished to do so, 11 | subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in all 14 | copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 18 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 19 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 20 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 21 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ᕦʕ •ᴥ•ʔᕤ Bear Cub 2 | 3 | [![github pages](https://github.com/clente/hugo-bearcub/actions/workflows/gh-pages.yml/badge.svg)](https://github.com/clente/hugo-bearcub/actions/workflows/gh-pages.yml) 4 | [![MIT license](https://img.shields.io/github/license/clente/hugo-bearcub)](https://github.com/clente/hugo-bearcub/blob/main/LICENSE) 5 | 6 | ## Overview 7 | 8 | 🐻 A lightweight [Hugo](https://gohugo.io/) theme based on [Bear 9 | Blog](https://bearblog.dev) and [Hugo Bear 10 | Blog](https://github.com/janraasch/hugo-bearblog). 11 | 12 | **Bear Cub** takes care of speed and optimization, so you can focus on writing 13 | good content. It is free, multilingual, optimized for search engines, 14 | no-nonsense, responsive, light, and fast. Really fast. 15 | 16 | ## Installation 17 | 18 | Follow Hugo's [quick start](https://gohugo.io/getting-started/quick-start/) to 19 | create an empty website and then clone **Bear Cub** into the themes directory as 20 | a [Git submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules): 21 | 22 | ```sh 23 | git submodule add https://github.com/clente/hugo-bearcub themes/hugo-bearcub 24 | ``` 25 | 26 | To finish off, append a line to the site configuration file: 27 | 28 | ```sh 29 | echo 'theme = "hugo-bearcub"' >> hugo.toml 30 | ``` 31 | 32 | ## Features 33 | 34 | Like [Bear Blog](https://bearblog.dev), this theme: 35 | - Is free and open source 36 | - Looks great on any device 37 | - Makes tiny (~5kb), optimized, and awesome pages 38 | - Has no trackers, ads, or scripts 39 | - Automatically generates an RSS feed 40 | 41 | But that's not all! **Bear Cub** is also... 42 | 43 | ### Accessible 44 | 45 | **Bear Cub** has a few accessibility upgrades when compared to its predecessors. 46 | The color palette has been overhauled to make sure everything is 47 | [readable](https://web.dev/color-and-contrast-accessibility/) for users with low 48 | vision impairments or color deficiencies, and some interactive elements were 49 | made bigger to facilitate [clicking](https://web.dev/accessible-tap-targets/) 50 | for users with a motor impairment. 51 | 52 | These small changes mean that **Bear Cub** passes Google's [PageSpeed 53 | test](https://pagespeed.web.dev/report?url=https%3A%2F%2Fclente.github.io%2Fhugo-bearcub%2F) 54 | with flying colors. 55 | 56 | ![PageSpeed score](https://raw.githubusercontent.com/clente/hugo-bearcub/main/images/pagespeed.webp) 57 | 58 | ### Secure 59 | 60 | [**Bear Cub**'s demo](https://clente.github.io/hugo-bearcub/) is hosted on GitHub 61 | and therefore I'm not in control of its [Content Security 62 | Policy](https://infosec.mozilla.org/guidelines/web_security#content-security-policy). 63 | However, the theme itself was made with security in mind: there are no inline 64 | styles and it uses no JavaScript at all. 65 | 66 | If you want to improve your [Mozilla 67 | Observatory](https://observatory.mozilla.org/) score even further, you should be 68 | able to simply add a few headers to your hosting service's configuration (e.g. 69 | [Netlify](https://docs.netlify.com/routing/headers/) or [Cloudflare 70 | Pages](https://developers.cloudflare.com/pages/platform/headers/)) and never 71 | have to think about it again. My `_headers` file, for example, looks like this: 72 | 73 | ``` 74 | /* 75 | X-Content-Type-Options: nosniff 76 | Strict-Transport-Security: "max-age=31536000; includeSubDomains; preload" env=HTTPS 77 | Cache-Control: max-age=31536000, public 78 | X-Frame-Options: deny 79 | Referrer-Policy: no-referrer 80 | Feature-Policy: microphone 'none'; payment 'none'; geolocation 'none'; midi 'none'; sync-xhr 'none'; camera 'none'; magnetometer 'none'; gyroscope 'none' 81 | Content-Security-Policy: default-src 'none'; manifest-src 'self'; font-src 'self'; img-src 'self'; style-src 'self'; form-action 'none'; frame-ancestors 'none'; base-uri 'none' 82 | X-XSS-Protection: 1; mode=block 83 | ``` 84 | 85 | ### Multilingual 86 | 87 | If you need to write a blog that supports more than one language, **Bear Cub** 88 | has you covered! Check out the demo's [`hugo.toml` 89 | file](https://github.com/clente/hugo-bearcub/blob/main/exampleSite/hugo.toml) 90 | for a sample of how you can setup multilingual support. 91 | 92 | By default, the theme creates a translation button that gets disabled when the 93 | current page is only available in any other language. You can also choose to 94 | hide this button (instead of disabling it) by setting `hideUntranslated = 95 | true`. 96 | 97 | ### More 98 | 99 | Every once in a while, as I keep using **Bear Cub**, I notice that there is some 100 | functionality missing. Currently, these are the "advanced features" that I have 101 | already implemented: 102 | 103 | - Full-text RSS feed: an enhanced RSS feed template that includes the (properly 104 | encoded) full content of your posts in the feed itself. 105 | - Static content: you can create empty blog entries that act as links to static 106 | files by including `link: "{url}"` in a post's [front 107 | matter](https://gohugo.io/content-management/front-matter/). You can also add 108 | `render: false` to your [build 109 | options](https://gohugo.io/content-management/build-options/#readout) to avoid 110 | rendering blank posts. 111 | - Skip link: a "skip to main content" link that is temporarily invisible, but 112 | can be focused by people who need a keyboard to navigate the web (see [PR 113 | #5](https://github.com/clente/hugo-bearcub/pull/5) by 114 | [@2kool4idkwhat](https://github.com/2kool4idkwhat) for more information). 115 | - Reply by email: if you supply an email address, the theme creates a "Reply to 116 | this post by email" button at the end of every post (see Kev Quirk's [original 117 | implementation](https://kevquirk.com/adding-the-post-title-to-my-reply-by-email-button)). 118 | This button can be suppressed on a case-by-case by setting `hideReply: true` 119 | in a post's [front matter](https://gohugo.io/content-management/front-matter/) 120 | (see [PR #18](https://github.com/clente/hugo-bearcub/pull/18) by 121 | [@chrsmutti](https://github.com/chrsmutti)). 122 | - `absfigure` shortcode: a shortcut to use the `figure` shortcode that also 123 | converts relative URLs into absolute URLs by using the `absURL` function. 124 | - Single-use CSS (EXPERIMENTAL): you can add some styles to a single page by 125 | writing the CSS you need in `assets/{custom_css}.css` and then including 126 | `style: "{custom_css}.css"` in the [front 127 | matter](https://gohugo.io/content-management/front-matter/) of said page. 128 | - Conditional CSS (EXPERIMENTAL): since **Bear Cub** does syntax highlighting 129 | without inline styles (see `hugo.toml` for more information), it only load its 130 | `syntax.css` if, and only if, a code block is actually present in the current 131 | page. 132 | - Alternative "Herman" style (EXPERIMENTAL): if you want to check out a more 133 | modern CSS style, you can change the `themeStyle` parameter to `"herman"` in 134 | order to activate [Herman Martinus's](https://herman.bearblog.dev/) version of 135 | the [Blogster Minimal](https://blogster-minimal.netlify.app/) theme for 136 | [Astro](https://astro.build/). 137 | - Dynamic social card generation (EXPERIMENTAL): if you don't add preview images 138 | to a post, this template will generate one based on the title. You can see an 139 | example below. 140 | 141 | ![Social card example](https://raw.githubusercontent.com/clente/hugo-bearcub/main/images/social_card.webp) 142 | 143 | ## Configuration 144 | 145 | **Bear Cub** can be customized with a `hugo.toml` file. Check out the 146 | [configuration](https://github.com/clente/hugo-bearcub/blob/main/exampleSite/hugo.toml) 147 | of the [demo](https://clente.github.io/hugo-bearcub/) for more information. 148 | 149 | ```toml 150 | # Basic config 151 | baseURL = "https://example.com" 152 | theme = "hugo-bearcub" 153 | copyright = "John Doe (CC BY 4.0)" 154 | defaultContentLanguage = "en" 155 | 156 | # Generate a nice robots.txt for SEO 157 | enableRobotsTXT = true 158 | 159 | # Setup syntax highlighting without inline styles. For more information about 160 | # why you'd want to avoid inline styles, see 161 | # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src#unsafe_inline_styles 162 | [markup] 163 | [markup.highlight] 164 | lineNos = true 165 | lineNumbersInTable = false 166 | # This allows Bear Cub to use a variation of Dracula that is more accessible 167 | # to people with poor eyesight. For more information about color contrast 168 | # and accessibility, see https://web.dev/color-and-contrast-accessibility/ 169 | noClasses = false 170 | 171 | # Multilingual mode config. More for information about how to setup translation, 172 | # see https://gohugo.io/content-management/multilingual/ 173 | [languages] 174 | [languages.en] 175 | title = "Bear Cub" 176 | languageName = "en-US 🇺🇸" 177 | LanguageCode = "en-US" 178 | contentDir = "content" 179 | [languages.en.params] 180 | madeWith = "Made with [Bear Cub](https://github.com/clente/hugo-bearcub)" 181 | [languages.pt] 182 | title = "Bear Cub" 183 | languageName = "pt-BR 🇧🇷" 184 | LanguageCode = "pt-BR" 185 | contentDir = "content.pt" 186 | [languages.pt.params] 187 | madeWith = "Feito com [Bear Cub](https://github.com/clente/hugo-bearcub)" 188 | 189 | [params] 190 | # The description of your website 191 | description = "Bear Cub Demo" 192 | 193 | # The path to your favicon 194 | favicon = "images/favicon.png" 195 | 196 | # These images will show up when services want to generate a preview of a link 197 | # to your site. Ignored if `generateSocialCard = true`. For more information 198 | # about previews, see https://gohugo.io/templates/internal#twitter-cards and 199 | # https://gohugo.io/templates/internal#open-graph 200 | images = ["images/share.webp"] 201 | 202 | # This title is used as the site_name on the Hugo's internal opengraph 203 | # structured data template 204 | title = "Bear Cub" 205 | 206 | # Dates are displayed following the format below. For more information about 207 | # formatting, see https://gohugo.io/functions/format/ 208 | dateFormat = "2006-01-02" 209 | 210 | # If your blog is multilingual but you haven't translated a page, this theme 211 | # will create a disabled link. By setting `hideUntranslated` to true, you can 212 | # have the theme simply not show any link 213 | hideUntranslated = false 214 | 215 | # (EXPERIMENTAL) This theme has two options for its CSS styles: "original" and 216 | # "herman". The former is what you see on Bear Cub's demo (an optimized 217 | # version of Hugo Bear Blog), while the latter has a more modern look based on 218 | # Herman Martinus's version of the Blogster Minimal theme for Astro. 219 | themeStyle = "original" 220 | 221 | # (EXPERIMENTAL) This theme is capable of dynamically generating social cards 222 | # for posts that don't have `images` defined in their front matter; By setting 223 | # `generateSocialCard` to false, you can prevent this behavior. For more 224 | # information see layouts/partials/social_card.html 225 | generateSocialCard = true 226 | 227 | # Social media. Delete any item you aren't using to make sure it won't show up 228 | # in your website's metadata. 229 | [params.social] 230 | twitter = "example" # Twitter handle (without '@') 231 | facebook_admin = "0000000000" # Facebook Page Admin ID 232 | 233 | # Author metadata. This is mostly used for the RSS feed of your site, but the 234 | # email is also added to the footer of each post. You can hide the "reply to" 235 | # link by using a `hideReply` param in front matter. 236 | [params.author] 237 | name = "John Doe" # Your name as shown in the RSS feed metadata 238 | email = "me@example.com" # Added to the footer so readers can reply to posts 239 | ``` 240 | 241 | ## Contributing 242 | 243 | If you come across any problems while using **Bear Cub**, you can file an 244 | [issue](https://github.com/clente/hugo-bearcub/issues) or create a [pull 245 | request](https://github.com/clente/hugo-bearcub/pulls). 246 | -------------------------------------------------------------------------------- /assets/herman.css: -------------------------------------------------------------------------------- 1 | :root { 2 | font-size: 62.5%; /* 10px */ 3 | --color-dark: #181a20; 4 | --color-light: #fafafa; 5 | --color-primary: #1a8fe3; 6 | --size: 1rem; 7 | --spacing: calc(var(--size) * 2.4); 8 | } 9 | 10 | body { 11 | background: var(--color-dark); 12 | color: var(--color-light); 13 | padding: 4rem; 14 | font-family: Avenir, 'Avenir Next LT Pro', Montserrat, Corbel, 'URW Gothic', 15 | source-sans-pro, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", 16 | "Segoe UI Symbol", "Noto Color Emoji"; 17 | font-size: calc(var(--size) * 1.8); 18 | line-height: 1.5; 19 | min-height: 80vh; 20 | max-width: 1600px; 21 | margin: 0 auto; 22 | word-wrap: break-word; 23 | } 24 | 25 | header, 26 | main, 27 | footer { 28 | max-width: 70ch; 29 | margin-inline: auto; 30 | } 31 | 32 | header { 33 | padding-bottom: var(--spacing); 34 | } 35 | 36 | nav a, a.blog-tags { 37 | margin-right: calc(var(--spacing) / 2); 38 | } 39 | a.blog-tags { 40 | line-height: 2; 41 | } 42 | 43 | main { 44 | padding-bottom: var(--spacing); 45 | } 46 | 47 | footer { 48 | text-align: center; 49 | padding-top: var(--spacing); 50 | } 51 | 52 | a { 53 | color: currentColor; 54 | text-decoration-color: var(--color-primary); 55 | text-decoration-thickness: 0.3ex; 56 | text-underline-offset: 0.3ex; 57 | } 58 | 59 | a:hover { 60 | text-decoration-thickness: 0.4ex; 61 | } 62 | 63 | img { 64 | display: block; 65 | max-width: 100%; 66 | height: auto; 67 | } 68 | 69 | h1, 70 | h2, 71 | h3, 72 | h4 { 73 | font-weight: 700; 74 | line-height: 1.3; 75 | } 76 | 77 | h1 { 78 | font-size: calc(var(--size) * 4.2); 79 | } 80 | h2 { 81 | font-size: calc(var(--size) * 3.4); 82 | } 83 | h3 { 84 | font-size: calc(var(--size) * 2.6); 85 | } 86 | h4 { 87 | font-size: calc(var(--size) * 1.8); 88 | } 89 | 90 | ul, 91 | ol { 92 | padding-inline-start: var(--spacing); 93 | } 94 | li { 95 | margin-block-start: var(--spacing); 96 | } 97 | 98 | blockquote { 99 | padding-inline-start: var(--spacing); 100 | border-inline-start: 0.2em solid; 101 | font-style: italic; 102 | max-width: 50ch; 103 | } 104 | 105 | :is(h1, h2, h3, h4, blockquote) { 106 | margin-block-end: calc(var(--spacing) / 2); 107 | } 108 | :is(h1, h2, h3, h4) + * { 109 | margin-block-start: calc(var(--spacing) / 3); 110 | } 111 | :is(h1, h2, h3, h4) + :where(h2, h3, h4) { 112 | margin-block-start: calc(var(--spacing) * 2); 113 | } 114 | 115 | .title { 116 | text-decoration: none; 117 | } 118 | .title h1 { 119 | font-size: calc(var(--size) * 3.4); 120 | margin-top: calc(var(--spacing) / 2); 121 | } 122 | 123 | ul.blog-posts { 124 | list-style-type: none; 125 | padding: unset; 126 | } 127 | ul.blog-posts li { 128 | display: flex; 129 | flex-direction: column; 130 | } 131 | ul.blog-posts li span { 132 | min-width: 11ch; 133 | } 134 | 135 | p.byline { 136 | opacity: 0.5; 137 | } 138 | 139 | code { 140 | font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', 141 | Menlo, Consolas, 'DejaVu Sans Mono', monospace; 142 | padding: 2px calc(var(--spacing) / 4); 143 | background-color: #282a36; 144 | font-size: calc(var(--size) * 1.4); 145 | } 146 | pre code { 147 | display: block; 148 | padding: var(--spacing); 149 | overflow-x: auto; 150 | -webkit-text-size-adjust: 100%; 151 | -moz-text-size-adjust: 100%; 152 | } 153 | 154 | table { 155 | width: 100%; 156 | } 157 | table, 158 | th, 159 | td { 160 | border: 1px solid; 161 | border-collapse: collapse; 162 | border-color: var(--color-light); 163 | padding: calc(var(--spacing) / 2); 164 | } 165 | 166 | .disabled { 167 | color: currentColor; 168 | cursor: not-allowed; 169 | opacity: 0.5; 170 | } 171 | 172 | @media screen and (min-width: 600px) { 173 | ul.blog-posts li { 174 | flex-direction: row; 175 | gap: calc(var(--spacing) / 2); 176 | } 177 | } 178 | 179 | /* "Skip to main content" link */ 180 | .skip-link { 181 | position: absolute; 182 | top: 5; 183 | transform: translateY(-600%); 184 | transition: transform 0.5s; 185 | background-color: #181a20; 186 | padding: 6px; 187 | } 188 | 189 | .skip-link:focus { 190 | transform: translateY(0%); 191 | } 192 | 193 | figure { 194 | margin-inline-start: 0em; 195 | margin-inline-end: 0em; 196 | } 197 | 198 | figcaption > p { 199 | margin-block-start: 9px; 200 | text-align: center; 201 | font-style: italic; 202 | } 203 | -------------------------------------------------------------------------------- /assets/images/social_card_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clente/hugo-bearcub/7d1bd7911aa76b99b9262d697077ffe4a5a67a7c/assets/images/social_card_bg.png -------------------------------------------------------------------------------- /assets/images/social_card_fg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clente/hugo-bearcub/7d1bd7911aa76b99b9262d697077ffe4a5a67a7c/assets/images/social_card_fg.png -------------------------------------------------------------------------------- /assets/original.css: -------------------------------------------------------------------------------- 1 | body { 2 | font-family: Verdana, sans-serif; 3 | margin: auto; 4 | padding: 20px; 5 | max-width: 720px; 6 | text-align: left; 7 | background-color: #1d1f27; 8 | word-wrap: break-word; 9 | overflow-wrap: break-word; 10 | line-height: 1.5; 11 | color: #c9d1d9; 12 | } 13 | 14 | h1, 15 | h2, 16 | h3, 17 | h4, 18 | h5, 19 | h6, 20 | strong, 21 | b { 22 | color: #eee; 23 | } 24 | 25 | a { 26 | color: #8cc2dd; 27 | } 28 | 29 | .title { 30 | text-decoration: none; 31 | border: 0; 32 | } 33 | .title h1 { 34 | font-size: 24px; 35 | margin: 19.92px 0 19.92px 0; 36 | } 37 | 38 | .title span { 39 | font-weight: 400; 40 | } 41 | 42 | nav a { 43 | margin-right: 10px; 44 | } 45 | 46 | textarea { 47 | background-color: #252525; 48 | color: #ddd; 49 | width: 100%; 50 | font-size: 16px; 51 | } 52 | 53 | input { 54 | background-color: #252525; 55 | color: #ddd; 56 | font-size: 16px; 57 | } 58 | 59 | content { 60 | line-height: 1.6; 61 | } 62 | 63 | table { 64 | width: 100%; 65 | } 66 | 67 | table, 68 | th, 69 | td { 70 | border: 1px solid; 71 | border-collapse: collapse; 72 | border-color: #c9d1d9; 73 | padding: 5px; 74 | } 75 | 76 | img { 77 | max-width: 100%; 78 | height: auto; 79 | } 80 | 81 | code { 82 | padding: 2px 5px; 83 | color: #f8f8f2; 84 | background-color: #282a36; 85 | } 86 | 87 | pre code { 88 | display: block; 89 | padding: 20px; 90 | white-space: pre-wrap; 91 | font-size: 14px; 92 | overflow-x: auto; 93 | text-wrap: nowrap; 94 | } 95 | 96 | blockquote { 97 | border-left: 1px solid #999; 98 | color: #ccc; 99 | padding-left: 20px; 100 | font-style: italic; 101 | } 102 | 103 | footer { 104 | padding: 25px; 105 | text-align: center; 106 | } 107 | 108 | .helptext { 109 | color: #aaa; 110 | font-size: small; 111 | } 112 | 113 | .errorlist { 114 | color: #eba613; 115 | font-size: small; 116 | } 117 | 118 | /* blog posts */ 119 | ul.blog-posts { 120 | list-style-type: none; 121 | padding: unset; 122 | } 123 | 124 | ul.blog-posts li { 125 | display: flex; 126 | margin-bottom: 10px; 127 | } 128 | 129 | ul.blog-posts li span { 130 | flex: 0 0 130px; 131 | } 132 | 133 | ul.blog-posts li a:visited { 134 | color: #8b6fcb; 135 | } 136 | 137 | a.blog-tags { 138 | line-height: 2; 139 | margin-right: 12px; 140 | } 141 | 142 | h3.blog-filter { 143 | margin-bottom: 0; 144 | } 145 | 146 | .disabled { 147 | color: currentColor; 148 | cursor: not-allowed; 149 | opacity: 0.7; 150 | } 151 | 152 | p.byline { 153 | font-style: italic; 154 | } 155 | 156 | /* "Skip to main content" link */ 157 | .skip-link { 158 | position: absolute; 159 | top: 5; 160 | transform: translateY(-600%); 161 | transition: transform 0.5s; 162 | background-color: #1d1f27; 163 | padding: 6px; 164 | } 165 | 166 | .skip-link:focus { 167 | transform: translateY(0%); 168 | } 169 | 170 | figure { 171 | margin-inline-start: 0em; 172 | margin-inline-end: 0em; 173 | } 174 | 175 | figcaption > p { 176 | margin-block-start: 0px; 177 | text-align: center; 178 | font-style: italic; 179 | color: #ccc; 180 | } 181 | -------------------------------------------------------------------------------- /assets/syntax.css: -------------------------------------------------------------------------------- 1 | /* This style is a variant of Dracula that is more accessible to people with poor eyesight */ 2 | /* See https://web.dev/color-and-contrast-accessibility/ */ 3 | /* And https://xyproto.github.io/splash/docs/dracula.html */ 4 | /* And https://github.com/alecthomas/chroma/blob/a40c95e447a577322e20eac58f2f7c0d026665b0/styles/dracula.xml */ 5 | 6 | /* Background */ .bg { color: #f8f8f2; background-color: #282a36; } 7 | /* PreWrapper */ .chroma { color: #f8f8f2; background-color: #282a36; } 8 | /* Other .chroma .x { } */ 9 | /* Error .chroma .err { } */ 10 | /* CodeLine .chroma .cl { } */ 11 | /* LineLink */ .chroma .lnlinks { outline: none; text-decoration: none; color: inherit } 12 | /* LineTableTD */ .chroma .lntd { vertical-align: top; padding: 0; margin: 0; border: 0; } 13 | /* LineTable */ .chroma .lntable { border-spacing: 0; padding: 0; margin: 0; border: 0; } 14 | /* LineHighlight */ .chroma .hl { background-color: #ffffcc } 15 | /* LineNumbersTable */ .chroma .lnt { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #929292 } 16 | /* LineNumbers */ .chroma .ln { white-space: pre; user-select: none; margin-right: 0.4em; padding: 0 0.4em 0 0.4em;color: #929292 } 17 | /* Line */ .chroma .line { display: flex; } 18 | /* Keyword */ .chroma .k { color: #ff79c6 } 19 | /* KeywordConstant */ .chroma .kc { color: #ff79c6 } 20 | /* KeywordDeclaration */ .chroma .kd { color: #8be9fd; font-style: italic } 21 | /* KeywordNamespace */ .chroma .kn { color: #ff79c6 } 22 | /* KeywordPseudo */ .chroma .kp { color: #ff79c6 } 23 | /* KeywordReserved */ .chroma .kr { color: #ff79c6 } 24 | /* KeywordType */ .chroma .kt { color: #8be9fd } 25 | /* Name .chroma .n { } */ 26 | /* NameAttribute */ .chroma .na { color: #50fa7b } 27 | /* NameBuiltin */ .chroma .nb { color: #8be9fd; font-style: italic } 28 | /* NameBuiltinPseudo .chroma .bp { } */ 29 | /* NameClass */ .chroma .nc { color: #50fa7b } 30 | /* NameConstant .chroma .no { } */ 31 | /* NameDecorator .chroma .nd { } */ 32 | /* NameEntity .chroma .ni { } */ 33 | /* NameException .chroma .ne { } */ 34 | /* NameFunction */ .chroma .nf { color: #50fa7b } 35 | /* NameFunctionMagic .chroma .fm { } */ 36 | /* NameLabel */ .chroma .nl { color: #8be9fd; font-style: italic } 37 | /* NameNamespace .chroma .nn { } */ 38 | /* NameOther .chroma .nx { } */ 39 | /* NameProperty .chroma .py { } */ 40 | /* NameTag */ .chroma .nt { color: #ff79c6 } 41 | /* NameVariable */ .chroma .nv { color: #8be9fd; font-style: italic } 42 | /* NameVariableClass */ .chroma .vc { color: #8be9fd; font-style: italic } 43 | /* NameVariableGlobal */ .chroma .vg { color: #8be9fd; font-style: italic } 44 | /* NameVariableInstance */ .chroma .vi { color: #8be9fd; font-style: italic } 45 | /* NameVariableMagic .chroma .vm { } */ 46 | /* Literal .chroma .l { } */ 47 | /* LiteralDate .chroma .ld { } */ 48 | /* LiteralString */ .chroma .s { color: #f1fa8c } 49 | /* LiteralStringAffix */ .chroma .sa { color: #f1fa8c } 50 | /* LiteralStringBacktick */ .chroma .sb { color: #f1fa8c } 51 | /* LiteralStringChar */ .chroma .sc { color: #f1fa8c } 52 | /* LiteralStringDelimiter */ .chroma .dl { color: #f1fa8c } 53 | /* LiteralStringDoc */ .chroma .sd { color: #f1fa8c } 54 | /* LiteralStringDouble */ .chroma .s2 { color: #f1fa8c } 55 | /* LiteralStringEscape */ .chroma .se { color: #f1fa8c } 56 | /* LiteralStringHeredoc */ .chroma .sh { color: #f1fa8c } 57 | /* LiteralStringInterpol */ .chroma .si { color: #f1fa8c } 58 | /* LiteralStringOther */ .chroma .sx { color: #f1fa8c } 59 | /* LiteralStringRegex */ .chroma .sr { color: #f1fa8c } 60 | /* LiteralStringSingle */ .chroma .s1 { color: #f1fa8c } 61 | /* LiteralStringSymbol */ .chroma .ss { color: #f1fa8c } 62 | /* LiteralNumber */ .chroma .m { color: #bd93f9 } 63 | /* LiteralNumberBin */ .chroma .mb { color: #bd93f9 } 64 | /* LiteralNumberFloat */ .chroma .mf { color: #bd93f9 } 65 | /* LiteralNumberHex */ .chroma .mh { color: #bd93f9 } 66 | /* LiteralNumberInteger */ .chroma .mi { color: #bd93f9 } 67 | /* LiteralNumberIntegerLong */ .chroma .il { color: #bd93f9 } 68 | /* LiteralNumberOct */ .chroma .mo { color: #bd93f9 } 69 | /* Operator */ .chroma .o { color: #ff79c6 } 70 | /* OperatorWord */ .chroma .ow { color: #ff79c6 } 71 | /* Punctuation .chroma .p { } */ 72 | /* Comment */ .chroma .c { color: #8491b8 } 73 | /* CommentHashbang */ .chroma .ch { color: #8491b8 } 74 | /* CommentMultiline */ .chroma .cm { color: #8491b8 } 75 | /* CommentSingle */ .chroma .c1 { color: #8491b8 } 76 | /* CommentSpecial */ .chroma .cs { color: #8491b8 } 77 | /* CommentPreproc */ .chroma .cp { color: #ff79c6 } 78 | /* CommentPreprocFile */ .chroma .cpf { color: #ff79c6 } 79 | /* Generic .chroma .g { } */ 80 | /* GenericDeleted */ .chroma .gd { color: #ff5555 } 81 | /* GenericEmph */ .chroma .ge { text-decoration: underline } 82 | /* GenericError .chroma .gr { } */ 83 | /* GenericHeading */ .chroma .gh { font-weight: bold } 84 | /* GenericInserted */ .chroma .gi { color: #50fa7b; font-weight: bold } 85 | /* GenericOutput */ .chroma .go { color: #44475a } 86 | /* GenericPrompt .chroma .gp { } */ 87 | /* GenericStrong .chroma .gs { } */ 88 | /* GenericSubheading */ .chroma .gu { font-weight: bold } 89 | /* GenericTraceback .chroma .gt { } */ 90 | /* GenericUnderline */ .chroma .gl { text-decoration: underline } 91 | /* TextWhitespace .chroma .w { } */ 92 | -------------------------------------------------------------------------------- /exampleSite/content.pt/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Início" 3 | menu: "main" 4 | weight: 1 5 | --- 6 | 7 | # ᕦʕ •ᴥ•ʔᕤ Bear Cub 8 | 9 | Os sites de hoje em dia são pesados, lentos e cheios de scripts, propagandas e 10 | rastreadores. Isso ficou tão comum que nós perdemos toda a perspectiva, tanto 11 | que achamos normal uma página web ter vários megabytes. 12 | 13 | > The internet has become a bloated mess. Huge JavaScript libraries, countless 14 | > client-side queries and overly complex frontend frameworks are par for the 15 | > course these days. 16 | > 17 | > --- [Kev Quirk](https://512kb.club/) 18 | 19 | Vamos mudar isso, um site de cada vez! **Bear Cub** é um tema 20 | [Hugo](https://gohugo.io/) baseado no [Hugo 21 | Bear](https://github.com/janraasch/hugo-bearblog/) que toma conta da velocidade 22 | e otimização para que você possa focar em escrever bons textos. 23 | 24 | Ele é gratuito, multilíngue, otimizado para buscadores, simples, responsivo, 25 | leve e rápido. Muito rápido. 26 | 27 | Quando comparado ao seu predecessor, o **Bear Cub** tem alguns upgrades de 28 | [privacidade](https://themarkup.org/blacklight?url=clente.github.io/hugo-bearcub/) 29 | e 30 | [acessibilidade](https://pagespeed.web.dev/report?url=https%3A%2F%2Fclente.github.io%2Fhugo-bearcub%2F). 31 | Ele também é compatível com as práticas mais modernas de 32 | [segurança](https://github.com/clente/hugo-bearcub#secure) para que seus 33 | usuários possam aproveitar seu site sem medo. 34 | 35 | Feito com 💟 por [Caio lente](https://lente.dev). 36 | -------------------------------------------------------------------------------- /exampleSite/content.pt/blog/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Blog" 3 | menu: "main" 4 | weight: 2 5 | --- -------------------------------------------------------------------------------- /exampleSite/content/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Home" 3 | menu: "main" 4 | weight: 1 5 | --- 6 | 7 | # ᕦʕ •ᴥ•ʔᕤ Bear Cub 8 | 9 | Today's websites are bloated, slow, and full of scripts, ads, and trackers. This 10 | became so commonplace that we lost all sense of perspective, to the point that 11 | we now think multi-megabyte webpages are normal. 12 | 13 | > The internet has become a bloated mess. Huge JavaScript libraries, countless 14 | > client-side queries and overly complex frontend frameworks are par for the 15 | > course these days. 16 | > 17 | > --- [Kev Quirk](https://512kb.club/) 18 | 19 | Let's change this, one website at a time! **Bear Cub** is a 20 | [Hugo](https://gohugo.io/) theme based on [Hugo 21 | Bear](https://github.com/janraasch/hugo-bearblog/) that takes care of speed and 22 | optimization, so you can focus on writing good content. 23 | 24 | It is free, multilingual, optimized for search engines, no-nonsense, responsive, 25 | light, and fast. Really fast. 26 | 27 | When compared to its predecessor, **Bear Cub** has a few 28 | [privacy](https://themarkup.org/blacklight?url=clente.github.io/hugo-bearcub/) 29 | and 30 | [accessibility](https://pagespeed.web.dev/report?url=https%3A%2F%2Fclente.github.io%2Fhugo-bearcub%2F) 31 | upgrades. It's also compatible with modern 32 | [security](https://github.com/clente/hugo-bearcub#secure) standards, so your 33 | users don't have to worry about browsing your website. 34 | 35 | Made with 💟 by [Caio lente](https://lente.dev/en). 36 | -------------------------------------------------------------------------------- /exampleSite/content/blog/_index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "Blog" 3 | menu: "main" 4 | weight: 2 5 | --- -------------------------------------------------------------------------------- /exampleSite/content/blog/emoji-support.md: -------------------------------------------------------------------------------- 1 | +++ 2 | author = "Hugo Authors" 3 | title = "Emoji Support" 4 | date = "2019-03-05" 5 | description = "Guide to emoji usage in Hugo" 6 | tags = [ 7 | "emoji", 8 | ] 9 | +++ 10 | 11 | Emoji can be enabled in a Hugo project in a number of ways. 12 | 13 | The [`emojify`](https://gohugo.io/functions/emojify/) function can be called directly in templates or [Inline Shortcodes](https://gohugo.io/templates/shortcode-templates/#inline-shortcodes). 14 | 15 | To enable emoji globally, set `enableEmoji` to `true` in your site's [configuration](https://gohugo.io/getting-started/configuration/) and then you can type emoji shorthand codes directly in content files; e.g. 16 | 17 |

🙈 :see_no_evil: 🙉 :hear_no_evil: 🙊 :speak_no_evil:

18 |
19 | 20 | The [Emoji cheat sheet](http://www.emoji-cheat-sheet.com/) is a useful reference for emoji shorthand codes. 21 | 22 | *** 23 | 24 | **N.B.** The above steps enable Unicode Standard emoji characters and sequences in Hugo, however the rendering of these glyphs depends on the browser and the platform. To style the emoji you can either use a third party emoji font or a font stack; e.g. 25 | 26 | {{< highlight html >}} 27 | .emoji { 28 | font-family: Apple Color Emoji, Segoe UI Emoji, NotoColorEmoji, Segoe UI Symbol, Android Emoji, EmojiSymbols; 29 | } 30 | {{< /highlight >}} 31 | 32 | {{< css.inline >}} 33 | 46 | {{< /css.inline >}} 47 | -------------------------------------------------------------------------------- /exampleSite/content/blog/markdown-syntax.md: -------------------------------------------------------------------------------- 1 | +++ 2 | author = "Hugo Authors" 3 | title = "Markdown Syntax Guide" 4 | date = "2019-03-11" 5 | description = "Sample article showcasing basic Markdown syntax and formatting for HTML elements." 6 | tags = [ 7 | "markdown", 8 | "css", 9 | "html", 10 | ] 11 | categories = [ 12 | "themes", 13 | "syntax", 14 | ] 15 | series = ["Themes Guide"] 16 | aliases = ["migrate-from-jekyl"] 17 | +++ 18 | 19 | This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. 20 | 21 | 22 | ## Headings 23 | 24 | The following HTML `

`—`

` elements represent six levels of section headings. `

` is the highest section level while `

` is the lowest. 25 | 26 | # H1 27 | ## H2 28 | ### H3 29 | #### H4 30 | ##### H5 31 | ###### H6 32 | 33 | ## Paragraph 34 | 35 | Xerum, quo qui aut unt expliquam qui dolut labo. Aque venitatiusda cum, voluptionse latur sitiae dolessi aut parist aut dollo enim qui voluptate ma dolestendit peritin re plis aut quas inctum laceat est volestemque commosa as cus endigna tectur, offic to cor sequas etum rerum idem sintibus eiur? Quianimin porecus evelectur, cum que nis nust voloribus ratem aut omnimi, sitatur? Quiatem. Nam, omnis sum am facea corem alique molestrunt et eos evelece arcillit ut aut eos eos nus, sin conecerem erum fuga. Ri oditatquam, ad quibus unda veliamenimin cusam et facea ipsamus es exerum sitate dolores editium rerore eost, temped molorro ratiae volorro te reribus dolorer sperchicium faceata tiustia prat. 36 | 37 | Itatur? Quiatae cullecum rem ent aut odis in re eossequodi nonsequ idebis ne sapicia is sinveli squiatum, core et que aut hariosam ex eat. 38 | 39 | ## Blockquotes 40 | 41 | The blockquote element represents content that is quoted from another source, optionally with a citation which must be within a `footer` or `cite` element, and optionally with in-line changes such as annotations and abbreviations. 42 | 43 | #### Blockquote without attribution 44 | 45 | > Tiam, ad mint andaepu dandae nostion secatur sequo quae. 46 | > **Note** that you can use *Markdown syntax* within a blockquote. 47 | 48 | #### Blockquote with attribution 49 | 50 | > Don't communicate by sharing memory, share memory by communicating.
51 | > — Rob Pike[^1] 52 | 53 | [^1]: The above quote is excerpted from Rob Pike's [talk](https://www.youtube.com/watch?v=PAAkCSZUG1c) during Gopherfest, November 18, 2015. 54 | 55 | ## Tables 56 | 57 | Tables aren't part of the core Markdown spec, but Hugo supports supports them out-of-the-box. 58 | 59 | Name | Age 60 | --------|------ 61 | Bob | 27 62 | Alice | 23 63 | 64 | #### Inline Markdown within tables 65 | 66 | | Italics | Bold | Code | 67 | | -------- | -------- | ------ | 68 | | *italics* | **bold** | `code` | 69 | 70 | ## Code Blocks 71 | 72 | #### Code block with backticks 73 | 74 | ```html 75 | 76 | 77 | 78 | 79 | Example HTML5 Document 80 | 81 | 82 |

Test

83 | 84 | 85 | ``` 86 | 87 | #### Code block indented with four spaces 88 | 89 | 90 | 91 | 92 | 93 | Example HTML5 Document 94 | 95 | 96 |

Test

97 | 98 | 99 | 100 | #### Code block with Hugo's internal highlight shortcode 101 | {{< highlight html >}} 102 | 103 | 104 | 105 | 106 | Example HTML5 Document 107 | 108 | 109 |

Test

110 | 111 | 112 | {{< /highlight >}} 113 | 114 | ## List Types 115 | 116 | #### Ordered List 117 | 118 | 1. First item 119 | 2. Second item 120 | 3. Third item 121 | 122 | #### Unordered List 123 | 124 | * List item 125 | * Another item 126 | * And another item 127 | 128 | #### Nested list 129 | 130 | * Fruit 131 | * Apple 132 | * Orange 133 | * Banana 134 | * Dairy 135 | * Milk 136 | * Cheese 137 | 138 | ## Other Elements — abbr, sub, sup, kbd, mark 139 | 140 | GIF is a bitmap image format. 141 | 142 | H2O 143 | 144 | Xn + Yn = Zn 145 | 146 | Press CTRL+ALT+Delete to end the session. 147 | 148 | Most salamanders are nocturnal, and hunt for insects, worms, and other small creatures. 149 | -------------------------------------------------------------------------------- /exampleSite/content/blog/math-typesetting.md: -------------------------------------------------------------------------------- 1 | --- 2 | author: Hugo Authors 3 | title: Math Typesetting 4 | date: 2019-03-08 5 | description: A brief guide to setup KaTeX 6 | math: true 7 | --- 8 | 9 | Mathematical notation in a Hugo project can be enabled by using third party JavaScript libraries. 10 | 11 | 12 | In this example we will be using [KaTeX](https://katex.org/) 13 | 14 | - Create a partial under `/layouts/partials/math.html` 15 | - Within this partial reference the [Auto-render Extension](https://katex.org/docs/autorender.html) or host these scripts locally. 16 | - Include the partial in your templates like so: 17 | 18 | ```bash 19 | {{ if or .Params.math .Site.Params.math }} 20 | {{ partial "math.html" . }} 21 | {{ end }} 22 | ``` 23 | 24 | - To enable KaTex globally set the parameter `math` to `true` in a project's configuration 25 | - To enable KaTex on a per page basis include the parameter `math: true` in content files 26 | 27 | **Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html) 28 | 29 | {{< math.inline >}} 30 | {{ if or .Page.Params.math .Site.Params.math }} 31 | 32 | 33 | 34 | 35 | {{ end }} 36 | {{}} 37 | 38 | ### Examples 39 | 40 | {{< math.inline >}} 41 |

42 | Inline math: \(\varphi = \dfrac{1+\sqrt5}{2}= 1.6180339887…\) 43 |

44 | {{}} 45 | 46 | Block math: 47 | $$ 48 | \varphi = 1+\frac{1} {1+\frac{1} {1+\frac{1} {1+\cdots} } } 49 | $$ 50 | -------------------------------------------------------------------------------- /exampleSite/content/blog/placeholder-text.md: -------------------------------------------------------------------------------- 1 | +++ 2 | author = "Hugo Authors" 3 | title = "Placeholder Text" 4 | date = "2019-03-09" 5 | description = "Lorem Ipsum Dolor Si Amet" 6 | tags = [ 7 | "markdown", 8 | "text", 9 | ] 10 | +++ 11 | 12 | Lorem est tota propiore conpellat pectoribus de pectora summo. Redit teque digerit hominumque toris verebor lumina non cervice subde tollit usus habet Arctonque, furores quas nec ferunt. Quoque montibus nunc caluere tempus inhospita parcite confusaque translucet patri vestro qui optatis lumine cognoscere flos nubis! Fronde ipsamque patulos Dryopen deorum. 13 | 14 | 1. Exierant elisi ambit vivere dedere 15 | 2. Duce pollice 16 | 3. Eris modo 17 | 4. Spargitque ferrea quos palude 18 | 19 | Rursus nulli murmur; hastile inridet ut ab gravi sententia! Nomine potitus silentia flumen, sustinet placuit petis in dilapsa erat sunt. Atria tractus malis. 20 | 21 | 1. Comas hunc haec pietate fetum procerum dixit 22 | 2. Post torum vates letum Tiresia 23 | 3. Flumen querellas 24 | 4. Arcanaque montibus omnes 25 | 5. Quidem et 26 | 27 | # Vagus elidunt 28 | 29 | 30 | 31 | [The Van de Graaf Canon](https://en.wikipedia.org/wiki/Canons_of_page_construction#Van_de_Graaf_canon) 32 | 33 | ## Mane refeci capiebant unda mulcebat 34 | 35 | Victa caducifer, malo vulnere contra dicere aurato, ludit regale, voca! Retorsit colit est profanae esse virescere furit nec; iaculi matertera et visa est, viribus. Divesque creatis, tecta novat collumque vulnus est, parvas. **Faces illo pepulere** tempus adest. Tendit flamma, ab opes virum sustinet, sidus sequendo urbis. 36 | 37 | Iubar proles corpore raptos vero auctor imperium; sed et huic: manus caeli Lelegas tu lux. Verbis obstitit intus oblectamina fixis linguisque ausus sperare Echionides cornuaque tenent clausit possit. Omnia putatur. Praeteritae refert ausus; ferebant e primus lora nutat, vici quae mea ipse. Et iter nil spectatae vulnus haerentia iuste et exercebat, sui et. 38 | 39 | Eurytus Hector, materna ipsumque ut Politen, nec, nate, ignari, vernum cohaesit sequitur. Vel **mitis temploque** vocatus, inque alis, *oculos nomen* non silvis corpore coniunx ne displicet illa. Crescunt non unus, vidit visa quantum inmiti flumina mortis facto sic: undique a alios vincula sunt iactata abdita! Suspenderat ego fuit tendit: luna, ante urbem Propoetides **parte**. 40 | 41 | {{< css.inline >}} 42 | 45 | {{< /css.inline >}} 46 | -------------------------------------------------------------------------------- /exampleSite/content/blog/rich-content.md: -------------------------------------------------------------------------------- 1 | +++ 2 | author = "Hugo Authors" 3 | title = "Rich Content" 4 | date = "2019-03-10" 5 | description = "A brief description of Hugo Shortcodes" 6 | tags = [ 7 | "shortcodes", 8 | "privacy", 9 | ] 10 | +++ 11 | 12 | Hugo ships with several [Built-in Shortcodes](https://gohugo.io/content-management/shortcodes/#use-hugos-built-in-shortcodes) for rich content, along with a [Privacy Config](https://gohugo.io/about/hugo-and-gdpr/) and a set of Simple Shortcodes that enable static and no-JS versions of various social media embeds. 13 | 14 | --- 15 | 16 | ## YouTube Privacy Enhanced Shortcode 17 | 18 | {{< youtube ZJthWmvUzzc >}} 19 | 20 |
21 | 22 | --- 23 | 24 | ## Twitter Simple Shortcode 25 | 26 | {{< x user="DesignReviewed" id="1085870671291310081" >}} 27 | 28 |
29 | 30 | --- 31 | 32 | ## Vimeo Simple Shortcode 33 | 34 | {{< vimeo_simple 48912912 >}} 35 | -------------------------------------------------------------------------------- /exampleSite/hugo.toml: -------------------------------------------------------------------------------- 1 | # Basic config 2 | baseURL = "https://example.com" 3 | theme = "hugo-bearcub" 4 | copyright = "John Doe (CC BY 4.0)" 5 | defaultContentLanguage = "en" 6 | 7 | # Generate a nice robots.txt for SEO 8 | enableRobotsTXT = true 9 | 10 | # Setup syntax highlighting without inline styles. For more information about 11 | # why you'd want to avoid inline styles, see 12 | # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src#unsafe_inline_styles 13 | [markup] 14 | [markup.highlight] 15 | lineNos = true 16 | lineNumbersInTable = false 17 | # This allows Bear Cub to use a variation of Dracula that is more accessible 18 | # to people with poor eyesight. For more information about color contrast 19 | # and accessibility, see https://web.dev/color-and-contrast-accessibility/ 20 | noClasses = false 21 | 22 | # Multilingual mode config. More for information about how to setup translation, 23 | # see https://gohugo.io/content-management/multilingual/ 24 | [languages] 25 | [languages.en] 26 | title = "Bear Cub" 27 | languageName = "en-US 🇺🇸" 28 | LanguageCode = "en-US" 29 | contentDir = "content" 30 | [languages.en.params] 31 | madeWith = "Made with [Bear Cub](https://github.com/clente/hugo-bearcub)" 32 | [languages.pt] 33 | title = "Bear Cub" 34 | languageName = "pt-BR 🇧🇷" 35 | LanguageCode = "pt-BR" 36 | contentDir = "content.pt" 37 | [languages.pt.params] 38 | madeWith = "Feito com [Bear Cub](https://github.com/clente/hugo-bearcub)" 39 | 40 | [params] 41 | # The description of your website 42 | description = "Bear Cub Demo" 43 | 44 | # The path to your favicon 45 | favicon = "images/favicon.png" 46 | 47 | # These images will show up when services want to generate a preview of a link 48 | # to your site. Ignored if `generateSocialCard = true`. For more information 49 | # about previews, see https://gohugo.io/templates/internal#twitter-cards and 50 | # https://gohugo.io/templates/internal#open-graph 51 | images = ["images/share.webp"] 52 | 53 | # This title is used as the site_name on the Hugo's internal opengraph 54 | # structured data template 55 | title = "Bear Cub" 56 | 57 | # Dates are displayed following the format below. For more information about 58 | # formatting, see https://gohugo.io/functions/format/ 59 | dateFormat = "2006-01-02" 60 | 61 | # If your blog is multilingual but you haven't translated a page, this theme 62 | # will create a disabled link. By setting `hideUntranslated` to true, you can 63 | # have the theme simply not show any link 64 | hideUntranslated = false 65 | 66 | # (EXPERIMENTAL) This theme has two options for its CSS styles: "original" and 67 | # "herman". The former is what you see on Bear Cub's demo (an optimized 68 | # version of Hugo Bear Blog), while the latter has a more modern look based on 69 | # Herman Martinus's version of the Blogster Minimal theme for Astro. 70 | themeStyle = "original" 71 | 72 | # (EXPERIMENTAL) This theme is capable of dynamically generating social cards 73 | # for posts that don't have `images` defined in their front matter; By setting 74 | # `generateSocialCard` to false, you can prevent this behavior. For more 75 | # information see layouts/partials/social_card.html 76 | generateSocialCard = true 77 | 78 | # Social media. Delete any item you aren't using to make sure it won't show up 79 | # in your website's metadata. 80 | [params.social] 81 | twitter = "example" # Twitter handle (without '@') 82 | facebook_admin = "0000000000" # Facebook Page Admin ID 83 | 84 | # Author metadata. This is mostly used for the RSS feed of your site, but the 85 | # email is also added to the footer of each post. You can hide the "reply to" 86 | # link by using a `hideReply` param in front matter. 87 | [params.author] 88 | name = "John Doe" # Your name as shown in the RSS feed metadata 89 | email = "me@example.com" # Added to the footer so readers can reply to posts 90 | -------------------------------------------------------------------------------- /exampleSite/static/images/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clente/hugo-bearcub/7d1bd7911aa76b99b9262d697077ffe4a5a67a7c/exampleSite/static/images/favicon.png -------------------------------------------------------------------------------- /exampleSite/static/images/share.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clente/hugo-bearcub/7d1bd7911aa76b99b9262d697077ffe4a5a67a7c/exampleSite/static/images/share.webp -------------------------------------------------------------------------------- /i18n/de.toml: -------------------------------------------------------------------------------- 1 | [filtering-for] 2 | other = "Filtern nach" 3 | 4 | [no-posts] 5 | other = "Noch keine Beträge" 6 | 7 | [email-subject] 8 | other = "Antwort auf " 9 | 10 | [email-reply] 11 | other = "Auf diesen Beitrag per Email antworten " 12 | 13 | [skip-link] 14 | other = "Zum Hauptinhalt" 15 | -------------------------------------------------------------------------------- /i18n/en.toml: -------------------------------------------------------------------------------- 1 | [filtering-for] 2 | other = "Filtering for" 3 | 4 | [no-posts] 5 | other = "No posts yet" 6 | 7 | [email-subject] 8 | other = "Reply to " 9 | 10 | [email-reply] 11 | other = "Reply to this post by email" 12 | 13 | [skip-link] 14 | other = "Skip to main content" -------------------------------------------------------------------------------- /i18n/ko.toml: -------------------------------------------------------------------------------- 1 | [filtering-for] 2 | other = "태그 검색:" 3 | 4 | [no-posts] 5 | other = "아직 작성된 게시물이 없습니다!" 6 | 7 | [email-subject] 8 | other = "댓글: " 9 | 10 | [email-reply] 11 | other = "이메일로 댓글 달기" 12 | 13 | [skip-link] 14 | other = "본문으로 바로 가기" 15 | -------------------------------------------------------------------------------- /i18n/pt.toml: -------------------------------------------------------------------------------- 1 | [filtering-for] 2 | other = "Filtrando para" 3 | 4 | [no-posts] 5 | other = "Nenhum post ainda" 6 | 7 | [email-subject] 8 | other = "Resposta a " 9 | 10 | [email-reply] 11 | other = "Responda a este post por email" 12 | 13 | [skip-link] 14 | other = "Pular para conteúdo principal" -------------------------------------------------------------------------------- /images/pagespeed.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clente/hugo-bearcub/7d1bd7911aa76b99b9262d697077ffe4a5a67a7c/images/pagespeed.webp -------------------------------------------------------------------------------- /images/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clente/hugo-bearcub/7d1bd7911aa76b99b9262d697077ffe4a5a67a7c/images/screenshot.png -------------------------------------------------------------------------------- /images/social_card.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clente/hugo-bearcub/7d1bd7911aa76b99b9262d697077ffe4a5a67a7c/images/social_card.webp -------------------------------------------------------------------------------- /images/tn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/clente/hugo-bearcub/7d1bd7911aa76b99b9262d697077ffe4a5a67a7c/images/tn.png -------------------------------------------------------------------------------- /layouts/404.html: -------------------------------------------------------------------------------- 1 | {{ define "title" }}404{{ end }} 2 | 3 | {{ define "main" }} 4 |

404

5 |

ʕノ•ᴥ•ʔノ ︵ ┻━┻

6 | {{ end }} 7 | -------------------------------------------------------------------------------- /layouts/_default/_markup/render-codeblock.html: -------------------------------------------------------------------------------- 1 | 2 | {{ .Page.Store.Set "hasCodeBlock" true }} 3 | 4 | 5 | {{ $result := transform.HighlightCodeBlock . }} 6 | {{ $result.Wrapped }} -------------------------------------------------------------------------------- /layouts/_default/baseof.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | {{- partial "favicon.html" . -}} 9 | {{- block "title" . }}{{ with .Title }}{{ . }} | {{ end }}{{ .Site.Title }}{{- end }} 10 | 11 | {{- partial "seo_tags.html" . -}} 12 | 13 | 14 | {{ $style := print (default "original" .Site.Params.themeStyle) ".css" | resources.Get | minify }} 15 | 16 | 17 | {{ if (.Page.Store.Get "hasCodeBlock") }} 18 | {{ $syntax := resources.Get "syntax.css" | minify }} 19 | 20 | {{ end }} 21 | 22 | {{ with .Params.style }} 23 | {{ $extra := resources.Get . | minify }} 24 | 25 | {{ end }} 26 | 27 | {{ with .OutputFormats.Get "rss" -}} 28 | {{ printf `` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} 29 | {{ end -}} 30 | 31 | 34 | {{- partial "custom_head.html" . -}} 35 | 36 | 37 | 38 |
39 | {{- partial "header.html" . -}} 40 |
41 |
42 | {{- block "main" . }}{{- end }} 43 |
44 | 47 | 48 | 51 | {{- partial "custom_body.html" . -}} 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /layouts/_default/list.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 | 3 | {{ if .Data.Singular }} 4 |

{{ i18n "filtering-for" }} "{{ .Title }}"

5 | {{ end }} 6 | 28 | {{ if not .Data.Singular }} 29 |
30 | {{ range .Site.Taxonomies.tags }} 31 | #{{ lower .Page.Title }} 32 | {{ end }} 33 |
34 | {{ end }} 35 |
36 | {{ end }} 37 | -------------------------------------------------------------------------------- /layouts/_default/rss.xml: -------------------------------------------------------------------------------- 1 | {{- /* Deprecate site.Author.email in favor of site.Params.author.email */}} 2 | {{- $authorEmail := "" }} 3 | {{- with site.Params.author }} 4 | {{- if reflect.IsMap . }} 5 | {{- with .email }} 6 | {{- $authorEmail = . }} 7 | {{- end }} 8 | {{- end }} 9 | {{- else }} 10 | {{- with site.Author.email }} 11 | {{- $authorEmail = . }} 12 | {{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }} 13 | {{- end }} 14 | {{- end }} 15 | 16 | {{- /* Deprecate site.Author.name in favor of site.Params.author.name */}} 17 | {{- $authorName := "" }} 18 | {{- with site.Params.author }} 19 | {{- if reflect.IsMap . }} 20 | {{- with .name }} 21 | {{- $authorName = . }} 22 | {{- end }} 23 | {{- else }} 24 | {{- $authorName = . }} 25 | {{- end }} 26 | {{- else }} 27 | {{- with site.Author.name }} 28 | {{- $authorName = . }} 29 | {{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }} 30 | {{- end }} 31 | {{- end }} 32 | 33 | {{- $pctx := . }} 34 | {{- if .IsHome }}{{ $pctx = .Site }}{{ end }} 35 | {{- $pages := slice }} 36 | {{- if or $.IsHome $.IsSection }} 37 | {{- $pages = $pctx.RegularPages }} 38 | {{- else }} 39 | {{- $pages = $pctx.Pages }} 40 | {{- end }} 41 | {{- $limit := .Site.Config.Services.RSS.Limit }} 42 | {{- if ge $limit 1 }} 43 | {{- $pages = $pages | first $limit }} 44 | {{- end }} 45 | {{- printf "" | safeHTML }} 46 | 47 | 48 | {{ if .IsHome }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }} 49 | {{ .Permalink }} 50 | Recent content {{ if not .IsHome }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}on {{ .Site.Title }} 51 | Hugo -- gohugo.io 52 | {{ site.Language.LanguageCode }}{{ with $authorEmail }} 53 | {{.}}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with $authorEmail }} 54 | {{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }}{{ with .Site.Copyright }} 55 | {{ . }}{{ end }}{{ if not .Date.IsZero }} 56 | {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }} 57 | {{- with .OutputFormats.Get "RSS" }} 58 | {{ printf "" .Permalink .MediaType | safeHTML }} 59 | {{- end }} 60 | {{- range $pages }} 61 | 62 | {{ .Title }} 63 | {{ .Permalink }} 64 | {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} 65 | {{- with $authorEmail }}{{ . }}{{ with $authorName }} ({{ . }}){{ end }}{{ end }} 66 | {{ .Permalink }} 67 | {{ .Summary | transform.XMLEscape | safeHTML }} 68 | {{ `` | safeHTML }} 69 | 70 | {{- end }} 71 | 72 | 73 | -------------------------------------------------------------------------------- /layouts/_default/single.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 | {{ if not .Params.menu }} 3 |

{{ .Title }}

4 |

5 | 8 | {{ with .Params.author }}· {{.}}{{ end }} 9 |

10 | {{ end }} 11 | 12 | {{ .Content }} 13 | 14 |

15 | {{ range (.GetTerms "tags") }} 16 | #{{ lower .LinkTitle }} 17 | {{ end }} 18 |

19 | {{ if not .Params.hideReply }} 20 | {{ with .Site.Params.author.email }} 21 |

22 | 23 | {{ i18n "email-reply" }} ↪ 24 | 25 |

26 | {{ end }} 27 | {{ end }} 28 | {{ end }} 29 | -------------------------------------------------------------------------------- /layouts/index.html: -------------------------------------------------------------------------------- 1 | {{ define "main" }} 2 | {{ .Content }} 3 | {{ end }} 4 | -------------------------------------------------------------------------------- /layouts/partials/custom_body.html: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /layouts/partials/custom_head.html: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /layouts/partials/favicon.html: -------------------------------------------------------------------------------- 1 | {{ with .Site.Params.favicon }} 2 | {{ end }} 3 | -------------------------------------------------------------------------------- /layouts/partials/footer.html: -------------------------------------------------------------------------------- 1 | 2 | {{ .Site.Copyright }} | {{ markdownify .Site.Params.madeWith }} 3 | -------------------------------------------------------------------------------- /layouts/partials/header.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

{{ .Site.Title }}

4 | 5 | -------------------------------------------------------------------------------- /layouts/partials/nav.html: -------------------------------------------------------------------------------- 1 | {{ range .Site.Menus.main.ByWeight }} 2 | {{ .Name }} 3 | {{ end }} 4 | RSS 5 | 6 | 7 | {{ $translations := dict }} 8 | {{ range .Translations }} 9 | {{ $translations = merge $translations (dict .Language.Lang .) }} 10 | {{ end }} 11 | 12 | 13 | {{ range where .Site.Languages "Lang" "!=" .Page.Lang }} 14 | {{ with (index $translations .Lang) }} 15 | {{ .Language.LanguageName }} 16 | {{ else }} 17 | 18 | {{ if not .Params.hideUntranslated }} 19 | {{ .LanguageName }} 20 | {{ end }} 21 | {{ end }} 22 | {{ end }} 23 | -------------------------------------------------------------------------------- /layouts/partials/seo_tags.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | {{ if and (and (default false .Site.Params.generateSocialCard) (not (isset .Params "images"))) (eq .Kind "page") }} 12 | {{ partial "social_card.html" . }} 13 | {{ else }} 14 | 15 | {{ template "_internal/opengraph.html" . }} 16 | 17 | 18 | {{ template "_internal/twitter_cards.html" . }} 19 | 20 | 21 | {{ template "_internal/schema.html" . }} 22 | {{ end }} 23 | -------------------------------------------------------------------------------- /layouts/partials/social_card.html: -------------------------------------------------------------------------------- 1 | 2 | {{ $font := resources.GetRemote "https://github.com/google/fonts/raw/main/ofl/firamono/FiraMono-Bold.ttf" }} 3 | {{ $fg := resources.Get "images/social_card_fg.png"}} 4 | {{ $bg := resources.Get "images/social_card_bg.png"}} 5 | 6 | {{ if gt (len .Title) 45 }} 7 | {{ $fg = $fg.Filter (images.Text .Title (dict 8 | "font" $font 9 | "color" "#fafafa" 10 | "size" 95 11 | "linespacing" 16 12 | "x" 0 13 | "y" 0 14 | )) }} 15 | {{ else }} 16 | {{ $fg = $fg.Filter (images.Text .Title (dict 17 | "font" $font 18 | "color" "#fafafa" 19 | "size" 130 20 | "linespacing" 20 21 | "x" 0 22 | "y" 0 23 | )) }} 24 | {{ end }} 25 | 26 | {{ $date := .Date.Format (default "2006-01-02" .Site.Params.dateFormat) }} 27 | {{ $author := (default $.Site.Params.author.name ($.Param "author") ) }} 28 | {{ $byline := (printf "%s | %s" $author $date) }} 29 | 30 | {{ $fg = $fg.Filter (images.Text $byline (dict 31 | "font" $font 32 | "color" "#898a8d" 33 | "size" 60 34 | "linespacing" 30 35 | "x" 0 36 | "y" 425 37 | )) }} 38 | 39 | {{ $card := $bg.Filter (images.Overlay $fg 112 140 ) }} 40 | {{ $card := $card.Resize "900x webp q100" }} 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | {{- if .IsPage }} 52 | {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} 53 | 54 | {{ with .PublishDate }}{{ end }} 55 | {{ with .Lastmod }}{{ end }} 56 | {{- end -}} 57 | 58 | {{- with .Params.audio }}{{ end }} 59 | {{- with .Params.locale }}{{ end }} 60 | {{- with .Site.Params.title }}{{ end }} 61 | {{- with .Params.videos }}{{- range . }} 62 | 63 | {{ end }}{{ end }} 64 | 65 | {{- /* If it is part of a series, link to related articles */}} 66 | {{- $permalink := .Permalink }} 67 | {{- $siteSeries := .Site.Taxonomies.series }} 68 | {{- if $siteSeries }} 69 | {{ with .Params.series }}{{- range $name := . }} 70 | {{- $series := index $siteSeries ($name | urlize) }} 71 | {{- range $page := first 6 $series.Pages }} 72 | {{- if ne $page.Permalink $permalink }}{{ end }} 73 | {{- end }} 74 | {{ end }}{{ end }} 75 | {{- end }} 76 | 77 | {{- /* Deprecate site.Social.facebook_admin in favor of site.Params.social.facebook_admin */}} 78 | {{- $facebookAdmin := "" }} 79 | {{- with site.Params.social }} 80 | {{- if reflect.IsMap . }} 81 | {{- $facebookAdmin = .facebook_admin }} 82 | {{- end }} 83 | {{- else }} 84 | {{- with site.Social.facebook_admin }} 85 | {{- $facebookAdmin = . }} 86 | {{- warnf "The social key in site configuration is deprecated. Use params.social.facebook_admin instead." }} 87 | {{- end }} 88 | {{- end }} 89 | 90 | {{- /* Facebook Page Admin ID for Domain Insights */}} 91 | {{ with $facebookAdmin }}{{ end }} 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | {{- /* Deprecate site.Social.twitter in favor of site.Params.social.twitter */}} 101 | {{- $twitterSite := "" }} 102 | {{- with site.Params.social }} 103 | {{- if reflect.IsMap . }} 104 | {{- $twitterSite = .twitter }} 105 | {{- end }} 106 | {{- else }} 107 | {{- with site.Social.twitter }} 108 | {{- $twitterSite = . }} 109 | {{- warnf "The social key in site configuration is deprecated. Use params.social.twitter instead." }} 110 | {{- end }} 111 | {{- end }} 112 | 113 | {{- with $twitterSite }} 114 | {{- $content := . }} 115 | {{- if not (strings.HasPrefix . "@") }} 116 | {{- $content = printf "@%v" $twitterSite }} 117 | {{- end }} 118 | 119 | {{- end }} 120 | 121 | 122 | 123 | 124 | 125 | 126 | {{- if .IsPage -}} 127 | {{- $iso8601 := "2006-01-02T15:04:05-07:00" -}} 128 | {{ with .PublishDate }}{{ end}} 129 | {{ with .Lastmod }}{{ end}} 130 | 131 | 132 | 133 | 134 | 135 | 136 | {{- end -}} 137 | -------------------------------------------------------------------------------- /layouts/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Allow: / 3 | Sitemap: {{ "sitemap.xml" | absURL }} 4 | -------------------------------------------------------------------------------- /layouts/shortcodes/absfigure.html: -------------------------------------------------------------------------------- 1 | 2 | {{- if .Get "link" -}} 3 | 4 | {{- end -}} 5 | {{ with .Get 13 | {{- if .Get "link" }}{{ end -}} 14 | {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} 15 |
16 | {{ with (.Get "title") -}} 17 |

{{ . }}

18 | {{- end -}} 19 | {{- if or (.Get "caption") (.Get "attr") -}}

20 | {{- .Get "caption" | markdownify -}} 21 | {{- with .Get "attrlink" }} 22 | 23 | {{- end -}} 24 | {{- .Get "attr" | markdownify -}} 25 | {{- if .Get "attrlink" }}{{ end }}

26 | {{- end }} 27 |
28 | {{- end }} 29 | -------------------------------------------------------------------------------- /layouts/shortcodes/highlight.html: -------------------------------------------------------------------------------- 1 | 2 | {{ .Page.Store.Set "hasCodeBlock" true }} 3 | 4 | 5 | {{ if len .Params | eq 2 }}{{ highlight (trim .InnerDeindent "\n\r") (.Get 0) (.Get 1) }}{{ else }}{{ highlight (trim .InnerDeindent "\n\r") (.Get 0) "" }}{{ end }} -------------------------------------------------------------------------------- /layouts/shortcodes/rawhtml.html: -------------------------------------------------------------------------------- 1 | 2 | {{.Inner}} -------------------------------------------------------------------------------- /theme.toml: -------------------------------------------------------------------------------- 1 | name = "Bear Cub" 2 | license = "MIT" 3 | licenselink = "https://github.com/clente/hugo-bearcub/blob/master/LICENSE" 4 | description = "A lightweight Hugo theme based on Bear Blog and Hugo Bear Blog. It is free, multilingual, optimized for search engines, no-nonsense, responsive, light, and fast. Really fast." 5 | 6 | # The home page of the theme, where the source can be found. 7 | homepage = "https://github.com/clente/hugo-bearcub" 8 | 9 | # If you have a running demo of the theme. 10 | demosite = "https://clente.github.io/hugo-bearcub" 11 | 12 | tags = ["blog", "responsive", "minimal", "personal", "dark", "multilingual"] 13 | features = ["favicon", "seo", "no javascript", "rss", "social cards"] 14 | 15 | # If the theme has a single author 16 | [author] 17 | name = "Caio Lente" 18 | homepage = "https://lente.dev" 19 | 20 | # If porting an existing theme 21 | [original] 22 | author = "Jan Raasch" 23 | homepage = "https://www.janraasch.com" 24 | repo = "https://github.com/janraasch/hugo-bearblog" 25 | 26 | # Hugo versions the theme supports 27 | [module] 28 | [module.hugoVersion] 29 | min = "0.90" 30 | --------------------------------------------------------------------------------