Git Product home page Git Product logo

congo's Introduction

Hey there πŸ‘‹

πŸ‘· Check out what I'm currently working on

🌱 What I'm currently learning

πŸ”­ Latest releases I've contributed to

  • jpanther/lynx (v1.4.0, 3 days ago) - A simple links theme for Hugo built with Tailwind CSS.
  • jpanther/congo (v2.8.2, 2 weeks ago) - A powerful, lightweight theme for Hugo built with Tailwind CSS.

πŸ“œ My recent blog posts

congo's People

Contributors

alejandrgaspar avatar antoinesoetewey avatar canstand avatar cbeauhilton avatar cbelena avatar cgutierr-zgz avatar davidrothera avatar dejavumoe avatar dependabot[bot] avatar fmaida avatar g0rbe avatar gcailly avatar hotlittlewhitedog avatar jh123x avatar jpanther avatar major avatar max-alletsee avatar nunocoracao avatar pomeloy avatar rshmhrj avatar shin-sforzando avatar simonspa avatar slashformotion avatar srisco avatar stereobooster avatar tomy0000000 avatar uschmidt83 avatar wizardbyron avatar wolfspyre avatar zekeriyaay avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

congo's Issues

Code copy doesn't work when set `highlight.noClasses = true`

What happened?

When I set enableCodeCopy = true, the copy button in the code blocks stuck and prompts the following in the browser console:

Uncaught (in promise) TypeError: Cannot read properties of null (reading 'innerText')
at copyCodeToClipboard (main.bundle.min.998bd658c4cc3498df01180704ad0ea16bb3c0d6d118eb8ac6f557a59c86d1304d69e51ba7df5a9d203e2698d28571a422b4cf20f830810d571fee19fbcb55fc.js:11:695)
at HTMLButtonElement. (main.bundle.min.998bd658c4cc3498df01180704ad0ea16bb3c0d6d118eb8ac6f557a59c86d1304d69e51ba7df5a9d203e2698d28571a422b4cf20f830810d571fee19fbcb55fc.js:11:550)

Theme version

2.1.0

Hugo version

v0.94.2

What browsers are you seeing the problem on?

Chrome, Safari

Relevant Hugo log output

No response

CSS issue with short browser viewports

What happened?

There seems to be an issue with the style of the site when the viewport of the browser is relatively short. The whole content div seems to move a few pixels left or right depending on the size of the viewport.

I have attached a small video showing how the style of the page changes depending on the browser viewport, the video is capturing the congo documentation site. I have also experienced this behaviour on my personal site, with the "profile" layout on the homepage.

Because this doesn't seem to happen on all layouts, sometimes when changing from one page to another as a user I notice how the new page is slightly misaligned with the previous one.

congo_css_issue.mov

.

Theme version

1.6.4

Hugo version

v0.91.2

What browsers are you seeing the problem on?

Chrome, Safari

Relevant Hugo log output

No response

hamburger menu when several links in menu

What happened?

Thanks for this nice theme!

I have several links in my menu:

Screenshot 2021-11-22 at 16 42 00

By any chance, do you expect to include a hamburger menu when there are many links?

Regards,
Antoine

Theme version

last

Hugo version

last

What browsers are you seeing the problem on?

Chrome

Relevant Hugo log output

No response

Articles with `externalUrl` accesible through the navigation links

What happened?

Hi @jpanther, as I commented on #88, if an article has externalUrl set, you can access the content of the 'article' through the navigation links.

What is expected to happen

I think there is two choices:

  1. Change the href of the navigation link to point to the externalUrl, instead to the page of the article.
  2. Skip the previous or next article(s) that have externalUrl set until previous or next article without it. This way, the navigation is not "disrupted", and articles with externalUrl are only accesible from article listings.

I have a working little fix for the first option, so I can submit a PR. But if you prefer the second option, I think that I'm not ready for it... yet! πŸ˜€ I'm a begginer in Hugo, and with HTML/CSS in general.

I believe the second option is better, but I'm not sure. What do you think? Maybe start with option 1 to fix the issue and then option 2 as a future improvement?

Thank you!

Theme version

v1.6.4

Hugo version

v0.92

What browsers are you seeing the problem on?

No response

Relevant Hugo log output

No response

Error: add site dependencies: load resources: loading translations

What happened?

Hello!

I've just downloaded Congo Hugo theme and, as I'm a Windows user, followed the manual installation steps to use it.

The problem is whenever I type hugo server to see my site running, I receive the following error message:

Error: add site dependencies: load resources: loading translations: "C:\Users\Daniel\Hugo\sites\mywebsite\themes\congo\i18n\bn.yaml:1:1": failed to load translations: unable to parse translation #0 because invalid plural category input_placeholder map[id:search translation:map[close_button_title:বন্ধ করুন (Esc) input_placeholder:ΰ¦–ΰ§ΰ¦ΰ¦œΰ§ΰ¦¨ open_button_title:ΰ¦–ΰ§ΰ¦ΰ¦œΰ§ΰ¦¨ (/)]]
Important: I have created a blank site to try Congo, by entering hugo new site mywebsite, so no other files or folders resided at that location beforehand. It is, therefore, quite odd to have this message shown.

Can someone please advise me?
Thanks in advance.

Theme version

V2.1.0

Hugo version

v0.91.2

What browsers are you seeing the problem on?

Chrome

Relevant Hugo log output

Error: add site dependencies: load resources: loading translations: "C:\Users\Daniel\Hugo\sites\mywebsite\themes\congo\i18n\bn.yaml:1:1": failed to load translations: unable to parse translation #0 because invalid plural category input_placeholder map[id:search translation:map[close_button_title:বন্ধ করুন (Esc) input_placeholder:ΰ¦–ΰ§ΰ¦ΰ¦œΰ§ΰ¦¨ open_button_title:ΰ¦–ΰ§ΰ¦ΰ¦œΰ§ΰ¦¨ (/)]]

Hugo fails to load translations

What happened?

When trying to build the site with Hugo, I get the following error:

Error: add site dependencies: load resources: loading translations: "/home/mcndt/projects/mcndt-blog-2/themes/congo/i18n/de.yaml:1:1": failed to load translations: unable to parse translation #0 because invalid plural category recent_articles
map[id:shortcode translation:map[icon_none:Icon nicht gefunden. recent_articles:KΓΌrzlich]]

Theme version

1.5.2

Hugo version

v0.68.3/extended linux/amd64

What browsers are you seeing the problem on?

No response

Relevant Hugo log output

No response

Icon in headings break TOC

What happened?

If you use the icon shortcode in headings they doesn't show up correct in the TOC

{{< icon "address-card" >}} Hi, my name is Marco Blessing and I live in the south of Germany near a city called
[Karlsruhe](https://goo.gl/maps/kDpo6bb9V2r).

image

Theme version

2.0.5

Hugo version

v0.91.0++

What browsers are you seeing the problem on?

Chrome

Relevant Hugo log output

No response

Author parameters not rendering at posts

What happened?

I'm just started using Congo, but something went wrong with rendering author parameters on posts pages. That's very frustrating. I'm already tried to downgrade theme version, switched from extended to default Hugo version, reverified .toml files.

Nothing helps. Parameters are just ignored and author blocks and other parameters not rendering.

That's how posts rendering for me.
image

As you can see author block not rendered, and even breadcrumbs. Sharing and edit button too not visible.

# config/_default/config.toml
baseURL = "https://darkpro1337.github.io/"
languageCode = "en"
defaultContentLanguage = "en"
publishDir = "../darkpro1337.github.io"

title = "DarkPro1337"

enableEmoji = true
enableRobotsTXT = true

summaryLength = 0

[author]
  name = "Artem Darkov"
  image = "img/author.jpg"
  bio = "21 y.o. C# Developer"
  links = [
    # links
  ]

# config/_default/params.toml
[article]
  showDate = true
  dateFormat = "2 January 2006"
  showAuthor = true
  showBreadcrumbs = true
  showDraftLabel = true
  showEdit = true
  editURL = "https://github.com/DarkPro1337/main/"
  editAppendPath = true
  showHeadingAnchors = true
  showPagination = true
  showReadingTime = true
  showWordCount = false
  sharingLinks = ["facebook", "twitter", "pinterest", "reddit", "linkedin", "email"]

Full source available here

Theme version

v1.6.4

Hugo version

v0.92.1

What browsers are you seeing the problem on?

Microsoft Edge

Relevant Hugo log output

No response

Icon color

What happened?

I added the google scholar icon. However, the color is different than the ones you provided:

Screenshot 2021-11-22 at 18 17 05

Any idea how I could fix this?

FYI, the repository of my website is available at : https://github.com/AntoineSoetewey/antoinesoetewey.com

Theme version

last

Hugo version

last

What browsers are you seeing the problem on?

Chrome

Relevant Hugo log output

No response

No emojify on list page

What happened?

Titles are emojified in single.html:
image

but not in list.html:
image

Propose updating layouts/partials/article-link.html from >{{ $.Title }}</a to >{{ $.Title | emojify }}</a:

Result:
image

Theme version

v1.6.2

Hugo version

v0.91.1

What browsers are you seeing the problem on?

Chrome

Relevant Hugo log output

No response

Update not working (as Hugo module)

What happened?

Update not working (as Hugo module).

hugo mod get -u
go: module github.com/jpanther/congo/v2: git ls-remote -q origin in /var/folders/gs/m9z38b6d7w9bdp6tgt0r82bh0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/066af87f3ece5bb7d6b6b53ce98f8b34566e9be8285986a3e33bbfe82661fac4: exit status 128:
	fatal: 'origin' does not appear to be a git repository
	fatal: Could not read from remote repository.
	
	Please make sure you have the correct access rights
	and the repository exists.
Error: failed to get ["-d" "-u" "github.com/jpanther/congo/v2"]: failed to execute 'go [get -d -u github.com/jpanther/congo/v2]': failed to execute binary "go" with args [get -d -u github.com/jpanther/congo/v2]: go: module github.com/jpanther/congo/v2: git ls-remote -q origin in /var/folders/gs/m9z38b6d7w9bdp6tgt0r82bh0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/066af87f3ece5bb7d6b6b53ce98f8b34566e9be8285986a3e33bbfe82661fac4: exit status 128:
	fatal: 'origin' does not appear to be a git repository
	fatal: Could not read from remote repository.
	
	Please make sure you have the correct access rights
	and the repository exists.
 *errors.errorString

If you click on the link github.com/jpanther/congo/v2 - Error 404.
How to update now?

Theme version

2.2.3

Hugo version

0.101.0

What browsers are you seeing the problem on?

Safari

Relevant Hugo log output

No response

Are inline code blocks broken?

What happened?

I was writing a paragraph which contained an inline code block using single backticks like this one and the color of the inlined text is changed while the backticks are still rendered, so it doesn't seem like it's working correctly.

congo-inline-code

I was expecting something more like what GitHub does with the markdown in this issue (see "like this one" above), including hiding the backticks.

Inlined code blocks work as expected on another Hugo site I have that doesn't use any third-party theme.

Theme version

v1.6.1

Hugo version

hugo v0.89.4+extended linux/amd64 BuildDate=unknown (Manjaro)

What browsers are you seeing the problem on?

Firefox

Relevant Hugo log output

No response

Multilingual tag page: error

What happened?

There are two pages:
The first page has the tag: tags: ["ΠΏΠ»Π°ΠΊΠ°Ρ‚"]
The second page has the tag: tags: ["poster"]

I want to create a custom tag page (with description and title) in two languages.

  1. I create folder /tags/poster/
  2. Create two files:

/tags/poster/_index.md

---
title: ΠΏΠ»Π°ΠΊΠ°Ρ‚
---

Text

/tags/poster_index.en.md

---
title: poster
---

Text

But I see an error during compilation:

antomal@MacBook-Air-Anton antomalcom % hugo server --buildDrafts
Start building sites … 
hugo v0.101.0+extended darwin/arm64 BuildDate=unknown
Error: Error building site: failed to render pages: render of "term" failed: "/var/folders/gs/m9z38b6d7w9bdp6tgt0r82bh0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/github.com/jpanther/congo/[email protected]/layouts/_default/term.html:16:14": execute of template failed: template: _default/term.html:16:14: executing "main" at <.Paginate>: error calling Paginate: cannot convert type page.PagesGroup to Pages
Built in 95 ms

I tried clearing the cache with command hugo mod clean, but that didn't help.

Theme version

2.3.0

Hugo version

v0.101

What browsers are you seeing the problem on?

No response

Relevant Hugo log output

antomal@MacBook-Air-Anton antomalcom % hugo server --buildDrafts
Start building sites … 
hugo v0.101.0+extended darwin/arm64 BuildDate=unknown
Error: Error building site: failed to render pages: render of "term" failed: "/var/folders/gs/m9z38b6d7w9bdp6tgt0r82bh0000gn/T/hugo_cache/modules/filecache/modules/pkg/mod/github.com/jpanther/congo/[email protected]/layouts/_default/term.html:16:14": execute of template failed: template: _default/term.html:16:14: executing "main" at <.Paginate>: error calling Paginate: cannot convert type page.PagesGroup to Pages
Built in 95 ms

Share buttons do not work as expected.

What happened?

image
Linkedin Page shows something went wrong

image
Facebook page shows invalid parameter href

Theme version

2.3.0

Hugo version

0.101.0

What browsers are you seeing the problem on?

Chrome

Relevant Hugo log output

No response

i can't add comments

What happened?

i add comments.html,but it did not show.

Theme version

lasted

Hugo version

hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66 windows/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio

What browsers are you seeing the problem on?

Chrome

Relevant Hugo log output

no everything

favicon

What happened?

Hello,

Even after following the steps mentioned in the docs, I can't display my favicon.

All files are in /static, is it the right place?

Thanks in advance for your help !

Theme version

last

Hugo version

last

What browsers are you seeing the problem on?

No response

Relevant Hugo log output

No response

Dark and light mode

What happened?

In video:

Screen.Recording.2022-02-04.at.00.57.51.mov

My default mode is dark. When I am in light mode (because I forced it by clicking on the sun icon) and then visit another page, the mode goes back to the initial mode (dark in my case). It is as if it doesn't remember that my choice is light mode.

Is it possible to implement the mode toggle such that it "remembers" my choice ?

FYI my repo is https://github.com/AntoineSoetewey/antoinesoetewey.com

Regards,
Antoine

Theme version

v2.0.1

Hugo version

last

What browsers are you seeing the problem on?

Chrome, Safari

Relevant Hugo log output

No response

Is my disableHugoGeneratorInject config overridden by Congo?

What happened?

I have disableHugoGeneratorInject = true present in my config/_default/config.toml folder and yet the generator meta tag is still inserted both locally and in production.

Theme version

v2.1.1

Hugo version

v0.96.0+extended linux/amd64

What browsers are you seeing the problem on?

Firefox

Relevant Hugo log output

No response

"Scroll To Top" overlaps footer menu on mobile devices

What happened?

If footer menu is activated, the Scroll to top position is above the copyright instead being on the same line:

Webaufnahme_10-4-2022_13827_dev1 kachiri de

For the view on mobile devices it means, that the Scroll to top button overlaps the footer menu:

IMG_3461
29-911c-c988c899d30d.jpeg)

Theme version

v2.1.2

Hugo version

v0.96.0

What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge

Relevant Hugo log output

No response

Search in primary language only?

What happened?

My site is bilingual, but only primary language pages appear in search results.

Theme version

2.2.3

Hugo version

0.101.0

What browsers are you seeing the problem on?

No response

Relevant Hugo log output

No response

"Failed to render shortcode "figure"

What happened?

I'm trying to insert a picture into this file as follows:

{{< figure src="chaotic-compilation.png" >}}

Expected behaviour: hugo server succeeds.
Actual behaviour: An error message is shown as follows: (happens with both stable/-git hugo)

Start building sites …
hugo v0.92.0-DEV+extended linux/amd64 BuildDate=unknown
Error: Error building site: "/home/nico/Documents/misc/website/content/projects/chaotic-aur.md:19:1": failed to render shortcode "figure": failed to process shortcode: "/home/nico/Documents/misc/website/themes/congo/layouts/shortcodes/figure.html:7:21": execute of template failed: template: shortcodes/figure.html:7:21: executing "shortcodes/figure.html" at <$image.RelPermalink>: nil pointer evaluating resource.Resource.RelPermalink
Built in 68 ms

Theme version

Latest

Hugo version

v0.92.0-DEV

What browsers are you seeing the problem on?

No response

Relevant Hugo log output

Start building sites …
hugo v0.92.0-DEV+extended linux/amd64 BuildDate=unknown
Error: Error building site: "/home/nico/Documents/misc/website/content/projects/chaotic-aur.md:19:1": failed to render shortcode "figure": failed to process shortcode: "/home/nico/Documents/misc/website/themes/congo/layouts/shortcodes/figure.html:7:21": execute of template failed: template: shortcodes/figure.html:7:21: executing "shortcodes/figure.html" at <$image.RelPermalink>: nil pointer evaluating resource.Resource.RelPermalink
Built in 68 ms

Congo do not display correctly when deployed to gh-pages

What happened?

When correctly displayed locally, site do not loads correctly when deployed to gh-actions.
see example πŸ‘‰here

Expected (build locally with hugo serve -D):

image

Actually got:

image

Theme version

v2.1.1

Hugo version

v0.96.0-2fd4a7d3d6845e75f8b8ae3a2a7bd91438967bbb

What browsers are you seeing the problem on?

Chrome

Relevant Hugo log output

No response

.LastMod display logic is not useful with .GitInfo

What happened?

a041f09 improved the display of .LastMod so that it's only displayed when different from .Date.

However, when using .GitInfo to automatically populate .LastMod from the date of the last commit touching the file in question, this logic pretty much never fires and .LastMod is always displayed.

What's really needed is to display .LastMod only if the formatted .LastMod is different from the formatted .Date.

If that's difficult, it would help to change the ne here to a lt so that I can manually set the article date to a date after the commit that published the article and prevent the display of .LastMod this way.

Theme version

v2.3.1

Hugo version

v0.101.0

What browsers are you seeing the problem on?

Firefox, Chrome, Safari, Microsoft Edge

Relevant Hugo log output

No response

Troubles with icons

What happened?

This is my home page:

Welcome to my website! I'm really happy you stopped by.

{{< icon "github" >}}
{{< icon "spotify" >}}
{{ partial "icon.html" "github" }}

And this is how it renders:
image

As you can see, the partial does not work at all, while the custom icon does not take the font color.

Since I am already filing an issue, as a feature request, I think it would be nice to include Spotify icon, as it is a very common thing to have on your website.

Theme version

2.0.4

Hugo version

v0.92.1

What browsers are you seeing the problem on?

Firefox

Relevant Hugo log output

No response

Appearance switcher title doesn't update

What happened?

As per #234, the appearance switcher keeps showing "Switching to dark" even when switching from dark to light.

Theme version

v2.3.0

Hugo version

v0.101.0

What browsers are you seeing the problem on?

No response

Relevant Hugo log output

No response

Forcing light mode not working correctly

Discussed in #148

Originally posted by benmatheson March 14, 2022
Hi, I love Congo and was very excited to upgrade to version 2.

I'm trying to force "light mode" but am experiencing the page switching to dark mode on a Mac device that has dark mode in the OS settings. I'm wondering if it's possible to override the OS settings, or whether those will prevail. A live version is here.

My params.toml looks like this:

defaultAppearance = "light" autoSwitchAppearance = false showAppearanceSwitcher = true

When I develop locally and view it on localhost, it indeed appears in light mode. but upon deploying, it switches to dark mode on my Mac with OS preferences for dark mode.

I'm hoping that I'm reading this page correctly and using default and autoSwitchAppearance right.

When I change my Mac OS preferences from light to dark, it switches to light mode. Thanks for any insights!!!

Unparsable structured data issue reported by Google Search Console when using Congo tags

What happened?

Summary

Google Search console reports structured data issues on any pages where I've used tags in the front matter. This is likely due to an additional comma in a JSON array structure for keywords generated as part of the linked data structure on the page.

I removed the tags on the pages, re-generated the site, submitted the sitemap again to Google Search Console, waited for re-indexing, and the issue is reported resolved. I also tested the page via rich results test, and the issue is resolved too.

This is a temporary fix only - I'd like to be able to add tags to pages.

Reproduce

Generate a new post using hugo new blog/my-post.md, and add tags to the page front matter.

---
title: "My Post"
date: 2022-01-03T15:46:51+11:00
author: "Jonny"
tags: ["cereal", "milk", "toast"]
---

Generate the site using hugo, and publish the page to your website. Test it via Google's [rich result test]( (https://search.google.com/test/rich-results). The issue will be reported in the rich result test. You can also have your site re-crawled, and the issue will be reported to you via email

Hugo output

I checked the HTML generated via hugo command at public/blog/my-post/index.html - the JSON linked data structure is:

  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "BlogPosting",
    "articleSection": "Blogs",
    "name": "My Post",
    "headline": "My Post",
    "description": "",
    "inLanguage": "en-AU",
    "author" : {
      "@type": "Person",
      "name": " Jonathan Sagorin"
    },
    "creator" : {
      "@type": "Person",
      "name": " Jonathan Sagorin"
    },
    "copyrightHolder": " Jonathan Sagorin",
    "copyrightYear": "2022",
    "dateCreated": "2022-01-03T15:46:51\u002b11:00",
    "datePublished": "2022-01-03T15:46:51\u002b11:00",
    "dateModified": "2022-01-03T15:46:51\u002b11:00",
    "url" : "https:\/\/sagorin.org\/blog\/my-post\/",
    "wordCount": "0",
    "keywords": ["cereal","milk","toast",]
  }
  </script>

It looks like the keywords tag is generating an extra comma in the array, regardless of its position in the array, which is likely the cause of the issue reported by Google Search Console.
"keywords": ["cereal","milk","toast",]

I checked out the source code for Congo, and narrowed it down to themes/congo/layouts/partials/schema.html, line 37
"keywords": [{{ if .IsPage}}{{ range $index, $tag := .Params.tags }}{{ $tag }},{{ end }}{{ else }}{{ range $plural, $terms := .Site.Taxonomies }}{{ range $term, $val := $terms }}{{ printf "%s," $term }}{{ end }}{{ end }}{{ end }}]
The comma is added regardless of the element in the array.

I was able to reproduce the issue using the exampleSite content too in the Congo theme.

Suggested fix

Add logic to check if the current element is the last element of the array, do not append comma. Similar to what the delimit function does. Possibly use the delimit function, but prepend each element with a double quote? I'm not familiar enough with Go/Hugo, but it would possibly look something like:
{{ with .Params.tags }}{{ delimit . ","}}{{ end }}. Just needs a double quote now! :)

Reference links

https://support.google.com/webmasters/answer/9166415#error_types
https://search.google.com/test/rich-results
https://gohugo.io/functions/delimit/

Theme version

v1.6.0

Hugo version

hugo v0.86.1+extended darwin/amd64 BuildDate=unknown

What browsers are you seeing the problem on?

Chrome

Relevant Hugo log output

No response

Responsive text with tailwind typography

What happened?

Hi, I understand from the tailwind typography docs that type scale can be modified for responsive breakpoints. Yet, when I use this syntax with your your theme, I can't seem to get the body text to render at any scale other than 1rem (using prose-lg or lg:prose-xl inline has no effect).

Is there an override in the stylesheets preventing this change of scale?

I've looked and I can't figure it out.

Btw spectacular job with the theme!

Theme version

2.1.3

Hugo version

v0.97.2+extended

What browsers are you seeing the problem on?

Chrome, Safari

Relevant Hugo log output

No response

lead shordcode should render it's content as markdown formated text

What happened?

I used the lead shortcode with markdown formated text and it didn't render

my input:

{{< lead >}}
The ***pbm*** package implements a Portable Bit Map (PBM) image decoder and encoder. The supported image color model is [color.RGBAModel](https://pkg.go.dev/image/color#RGBAModel).

The PBM specification is at http://netpbm.sourceforge.net/doc/pbm.html.
{{< /lead >}}

the result
image

Theme version

latest

Hugo version

hugo v0.86.1-F6821B88 linux/amd64 BuildDate=2021-07-30T10:13:35Z VendorInfo=gohugoio

What browsers are you seeing the problem on?

Firefox, Chrome

Relevant Hugo log output

No response

Error on inline image using standard markdown notation

What happened?

I have a markdown file with an inline reference to an image. It looks like this:

![image-2.png](/obsidian/image-2.png)

when I try to generate the site or serve locally, I get the following error message:

ERROR 2022/02/16 13:17:04 [CONGO] Markdown image error in "obsidian/write-test.md": Resource "/obsidian/image-2.png" not found. Check the path is correct or remove the image from the content. Error: Error building site: logged 1 error(s)

I've tried putting the file in the correct static dir, and in the content dir, and cannot seem to make this work. I'm assuming this is Congo specific based on the error message, and when I test with a different theme (hugo-bearblog) the image renders correctly with no error messages.

Theme version

2.0.4

Hugo version

0.92.2

What browsers are you seeing the problem on?

No response

Relevant Hugo log output

`ERROR 2022/02/16 13:17:04 [CONGO] Markdown image error in "obsidian/write-test.md": Resource "/obsidian/image-2.png" not found. Check the path is correct or remove the image from the content.
Error: Error building site: logged 1 error(s)`

Underline styles not displaying correctly in some browsers

Discussed in #116

Originally posted by cbelena February 14, 2022
I have tested it on my yet-to-be-published new personal page and I have some comments/suggestions/questions about version 2:

  1. I noticed there are new subtle animations when the cursor moves above links, that's nice! However, in some links I have found that the colour of the underline changes from black/white (depends on appearance) to the correct theme's colour. Is that a design choice or a bug? For example, in exampleSite:
    image
    ...and 150ms later:
    image

The image provided by `params.logo` is not resized.

What happened?

Example:
image

thoses are the exact sames images if you are wondering

It should probably be resized.

Theme version

v1.4.0

Hugo version

v0.86.1

What browsers are you seeing the problem on?

Chrome

Relevant Hugo log output

No response

Search not working when deployed to Netlify

What happened?

Problem

The search bar on my website functions normally when served locally, but does not work when deployed to Netlify. When the search icon is clicked, the search bar appears seemingly as per normal, but it doesn't do anything, no matter what is typed into the search box.

Links

Website: https://utvik.netlify.app
Repo: https://github.com/eliaserland/utviksbygdegard

Investigation

If I do an F12 in my browser I get this error message when I click the search icon:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://utvik.netlify.appindex.json/. (Reason: CORS request did not succeed). Status code: (null).

I do not entirely understand the meaning of this error message, but what I can notice is that there is a missing forward slash between the website URL utvik.netlify.app and the filename index.json, which likely seems to break this URL request.

If I trace this back to the congo repo, the only reference to index.json I can find is appearing in file assets/js/search.js on line 110 where I believe the search index is built:

function buildIndex() {
  var baseURL = wrapper.getAttribute("data-url");
  fetchJSON(baseURL + "index.json", function (data) {
    var options = {
      shouldSort: true,
      ignoreLocation: true,
      threshold: 0.0,
      includeMatches: true,
      keys: [
        { name: "title", weight: 0.8 },
        { name: "section", weight: 0.2 },
        { name: "summary", weight: 0.6 },
        { name: "content", weight: 0.4 },
      ],
    };
    fuse = new Fuse(data, options);
    indexed = true;
  });
}

There seems to be a concatenation of strings between baseURL and "index.json" happening, which is where I believe I would need a forward slash inserted in order for the URL request not to break.

I'm not certain that this will fix my issue of search not working, but it should however likely be a step in the right direction.

Since I don't know JavaScript, I don't feel comfortable enough to open a pull request where I have inserted a single / in front of the index.json string. Spontaneously, I feel like the rigorous solution should be something like verifying that the variable baseURL contains a single trailing forward slash, but I don't know enough JavaScript to implement this myself in a robust way.

Btw, thanks for a great theme with amazing documentation, this deserves major props.

Theme version

v2.2.2

Hugo version

v0.100.2 on Netlify, v0.96.0 locally

What browsers are you seeing the problem on?

Firefox

Relevant Hugo log output

1:26:42 PM: Build ready to start
1:26:44 PM: build-image version: a49edbc55fc722f80f6b85963a5060f8d043a844 (focal)
1:26:44 PM: build-image tag: v4.8.1
1:26:44 PM: buildbot version: f89dd42aa70d76d1da992dc3fa004a4c745208bc
1:26:44 PM: Fetching cached dependencies
1:26:45 PM: Finished downloading cache in 990.146902ms
1:26:45 PM: Starting to extract cache
1:26:47 PM: Finished extracting cache in 2.562187917s
1:26:47 PM: Finished fetching cache in 3.568853487s
1:26:47 PM: Starting to prepare the repo for build
1:26:48 PM: Preparing Git Reference refs/heads/master
1:26:49 PM: Parsing package.json dependencies
1:26:49 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'public' versus '/' in the Netlify UI
1:26:49 PM: Different build command detected, going to use the one specified in the Netlify configuration file: 'hugo --gc --minify -b $URL' versus '' in the Netlify UI
1:26:49 PM: Starting build script
1:26:49 PM: Installing dependencies
1:26:49 PM: Python version set to 2.7
1:26:50 PM: Started restoring cached node version
1:26:51 PM: Finished restoring cached node version
1:26:51 PM: v16.15.1 is already installed.
1:26:51 PM: Now using node v16.15.1 (npm v8.11.0)
1:26:52 PM: Started restoring cached build plugins
1:26:52 PM: Finished restoring cached build plugins
1:26:52 PM: Attempting ruby version 2.7.2, read from environment
1:26:53 PM: Using ruby version 2.7.2
1:26:53 PM: Using PHP version 8.0
1:26:53 PM: Installing Hugo 0.100.2
1:26:53 PM: hugo v0.100.2-d25cb2943fd94ecf781412aeff9682d5dc62e284+extended linux/amd64 BuildDate=2022-06-08T10:25:57Z VendorInfo=gohugoio
1:26:53 PM: Started restoring cached go cache
1:26:53 PM: Finished restoring cached go cache
1:26:53 PM: Installing Go version 1.16 (requested 1.16)
1:26:59 PM: unset GOOS;
1:26:59 PM: unset GOARCH;
1:26:59 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.16.linux.amd64';
1:26:59 PM: export PATH="/opt/buildhome/.gimme/versions/go1.16.linux.amd64/bin:${PATH}";
1:26:59 PM: go version >&2;
1:26:59 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.16.linux.amd64.env"
1:26:59 PM: go version go1.16 linux/amd64
1:26:59 PM: Installing missing commands
1:26:59 PM: Verify run directory
1:27:00 PM: ​
1:27:00 PM: ────────────────────────────────────────────────────────────────
1:27:00 PM:   Netlify Build                                                 
1:27:00 PM: ────────────────────────────────────────────────────────────────
1:27:00 PM: ​
1:27:00 PM: ❯ Version
1:27:00 PM:   @netlify/build 27.1.5
1:27:00 PM: ​
1:27:00 PM: ❯ Flags
1:27:00 PM:   baseRelDir: true
1:27:00 PM:   buildId: 62b1aaf212424e000adab42e
1:27:00 PM:   deployId: 62b1aaf212424e000adab430
1:27:00 PM: ​
1:27:00 PM: ❯ Current directory
1:27:00 PM:   /opt/build/repo
1:27:00 PM: ​
1:27:00 PM: ❯ Config file
1:27:00 PM:   /opt/build/repo/netlify.toml
1:27:00 PM: ​
1:27:00 PM: ❯ Context
1:27:00 PM:   production
1:27:00 PM: ​
1:27:00 PM: ────────────────────────────────────────────────────────────────
1:27:00 PM:   1. build.command from netlify.toml                            
1:27:00 PM: ────────────────────────────────────────────────────────────────
1:27:00 PM: ​
1:27:00 PM: $ hugo --gc --minify -b $URL
1:27:00 PM: Start building sites …
1:27:00 PM: hugo v0.100.2-d25cb2943fd94ecf781412aeff9682d5dc62e284+extended linux/amd64 BuildDate=2022-06-08T10:25:57Z VendorInfo=gohugoio
1:27:08 PM:                    | SV
1:27:08 PM: -------------------+-----
1:27:08 PM:   Pages            | 21
1:27:08 PM:   Paginator pages  |  0
1:27:08 PM:   Non-page files   |  6
1:27:08 PM: Creating deploy upload records
1:27:08 PM:   Static files     | 10
1:27:08 PM:   Processed images | 16
1:27:08 PM:   Aliases          |  3
1:27:08 PM:   Sitemaps         |  1
1:27:08 PM:   Cleaned          |  0
1:27:08 PM: Total in 7895 ms
1:27:08 PM: ​
1:27:09 PM: Starting post processing
1:27:08 PM: (build.command completed in 7.9s)
1:27:08 PM: ​
1:27:08 PM: ────────────────────────────────────────────────────────────────
1:27:09 PM: Post processing - HTML
1:27:08 PM:   2. Deploy site                                                
1:27:08 PM: ────────────────────────────────────────────────────────────────
1:27:08 PM: ​
1:27:08 PM: Starting to deploy site from 'public'
1:27:08 PM: Creating deploy tree 
1:27:09 PM: 0 new files to upload
1:27:09 PM: 0 new functions to upload
1:27:09 PM: Post processing - header rules
1:27:09 PM: Site deploy was successfully initiated
1:27:09 PM: ​
1:27:09 PM: (Deploy site completed in 266ms)
1:27:09 PM: ​
1:27:09 PM: Post processing - redirect rules
1:27:09 PM: ────────────────────────────────────────────────────────────────
1:27:09 PM:   Netlify Build Complete                                        
1:27:09 PM: ────────────────────────────────────────────────────────────────
1:27:09 PM: ​
1:27:09 PM: Post processing done
1:27:09 PM: (Netlify Build completed in 8.2s)
1:27:09 PM: Caching artifacts
1:27:09 PM: Started saving build plugins
1:27:09 PM: Finished saving build plugins
1:27:09 PM: Started saving pip cache
1:27:09 PM: Finished saving pip cache
1:27:09 PM: Started saving emacs cask dependencies
1:27:09 PM: Finished saving emacs cask dependencies
1:27:09 PM: Started saving maven dependencies
1:27:09 PM: Finished saving maven dependencies
1:27:09 PM: Started saving boot dependencies
1:27:09 PM: Finished saving boot dependencies
1:27:09 PM: Started saving rust rustup cache
1:27:09 PM: Finished saving rust rustup cache
1:27:09 PM: Started saving go dependencies
1:27:09 PM: Finished saving go dependencies
1:27:09 PM: Build script success
1:27:13 PM: Site is live ✨
1:27:26 PM: Finished processing build request in 42.472519809s

Make the `page` layout avalible outisde of home page

What is it about the single layout does not meet my needs? A lot of my pages are not blog posts, but just landing pages. I introduce my podcast, my app, etc. If the single template is applied, they show author, date, pagination and reading time by default. This is the desired behavior for blog posts, but I do not want this for my landing pages.

Right now, I just manually disable these for each page separately in the front matter.

showAuthor: false
showDate: false
showReadingTime: false
showPagination: false

First, this is award, as there are multiple pages I need to apply this to separately. Second of all, hiding all the information I want to have for my blog posts creates an awkward empty space below my title.

This is a landing page with layout: single automatically assigned to it.
image

The same page, if I override the layout with layout: list. Notice how the icons are exactly below the title. This is the desired behavior.
image.

If I were able to use the page layout that can be applied to my home page, it would resolve all my problems.

Originally posted by @MikulasVanousek in #128 (reply in thread)

Hugo minify generates sizing problem on multilingual switch

What happened?

Using the latest version of the theme, latest hugo on Netlify, when using the --minify option, this will generate a sizing problem, removing the space between the title and the language switch.

With --minify
chrome_NcP8lCJZ38

On hugo server and without using --minify
chrome_YUZQTBtSes

This problem is also reported when analyzing the webpage with web.dev

chrome_aYl3d9Br7j

This is fixed when modifying netlify.toml and removing the --minify option.

PS: My netlify.toml is modified to use the latest version of hugo + the latest version of go. This error is still happening on the default toml version.

Theme version

v2.3.1

Hugo version

v0.102.3

What browsers are you seeing the problem on?

Chrome

Relevant Hugo log output

10:50:01 PM: Build ready to start
10:50:03 PM: build-image version: d7b3dbfb0846505993c9a131894d1858074c90b4 (focal)
10:50:03 PM: build-image tag: v4.10.1
10:50:03 PM: buildbot version: 1c362ef848ac5e35535bdb572ebca893db28c8a0
10:50:03 PM: Fetching cached dependencies
10:50:03 PM: Starting to download cache of 135.9MB
10:50:04 PM: Finished downloading cache in 1.082591558s
10:50:04 PM: Starting to extract cache
10:50:05 PM: Finished extracting cache in 824.279799ms
10:50:05 PM: Finished fetching cache in 1.986041125s
10:50:05 PM: Starting to prepare the repo for build
10:50:05 PM: Preparing Git Reference refs/heads/main
10:50:06 PM: Parsing package.json dependencies
10:50:06 PM: Different build command detected, going to use the one specified in the Netlify configuration file: 'hugo mod get -u && hugo --gc --minify -b $URL' versus 'hugo mod get -u && hugo' in the Netlify UI
10:50:06 PM: Starting build script
10:50:06 PM: Installing dependencies
10:50:06 PM: Python version set to 2.7
10:50:06 PM: Started restoring cached node version
10:50:07 PM: Finished restoring cached node version
10:50:08 PM: v16.17.0 is already installed.
10:50:08 PM: Now using node v16.17.0 (npm v8.15.0)
10:50:08 PM: Started restoring cached build plugins
10:50:08 PM: Finished restoring cached build plugins
10:50:08 PM: Attempting ruby version 2.7.2, read from environment
10:50:09 PM: Using ruby version 2.7.2
10:50:09 PM: Using PHP version 8.0
10:50:09 PM: Installing Hugo 0.102.3
10:50:10 PM: hugo v0.102.3-b76146b129d7caa52417f8e914fc5b9271bf56fc+extended linux/amd64 BuildDate=2022-09-01T10:16:19Z VendorInfo=gohugoio
10:50:10 PM: Started restoring cached go cache
10:50:10 PM: Finished restoring cached go cache
10:50:10 PM: Installing Go version 1.19.1 (requested 1.19.1)
10:50:16 PM: unset GOOS;
10:50:16 PM: unset GOARCH;
10:50:16 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.19.1.linux.amd64';
10:50:16 PM: export PATH="/opt/buildhome/.gimme/versions/go1.19.1.linux.amd64/bin:${PATH}";
10:50:16 PM: go version >&2;
10:50:16 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.19.1.linux.amd64.env"
10:50:16 PM: go version go1.19.1 linux/amd64
10:50:16 PM: Installing missing commands
10:50:16 PM: Verify run directory
10:50:17 PM: ​
10:50:17 PM: ────────────────────────────────────────────────────────────────
10:50:17 PM:   Netlify Build                                                 
10:50:17 PM: ────────────────────────────────────────────────────────────────
10:50:17 PM: ​
10:50:17 PM: ❯ Version
10:50:17 PM:   @netlify/build 27.18.4
10:50:17 PM: ​
10:50:17 PM: ❯ Flags
10:50:17 PM:   baseRelDir: true
10:50:17 PM:   buildId: 632a6dc9a91c370008a14083
10:50:17 PM:   deployId: 632a6dc9a91c370008a14085
10:50:17 PM: ​
10:50:17 PM: ❯ Current directory
10:50:17 PM:   /opt/build/repo
10:50:17 PM: ​
10:50:17 PM: ❯ Config file
10:50:17 PM:   /opt/build/repo/netlify.toml
10:50:17 PM: ​
10:50:17 PM: ❯ Context
10:50:17 PM:   production
10:50:17 PM: ​
10:50:17 PM: ────────────────────────────────────────────────────────────────
10:50:17 PM:   1. build.command from netlify.toml                            
10:50:17 PM: ────────────────────────────────────────────────────────────────
10:50:17 PM: ​
10:50:17 PM: $ hugo mod get -u && hugo --gc --minify -b $URL
10:50:18 PM: Start building sites …
10:50:18 PM: hugo v0.102.3-b76146b129d7caa52417f8e914fc5b9271bf56fc+extended linux/amd64 BuildDate=2022-09-01T10:16:19Z VendorInfo=gohugoio
10:50:18 PM:                    | EN | ES
10:50:18 PM: -------------------+----+-----
10:50:18 PM:   Pages            | 12 |  8
10:50:18 PM:   Paginator pages  |  0 |  0
10:50:18 PM:   Non-page files   |  0 |  0
10:50:18 PM:   Static files     | 13 | 13
10:50:18 PM:   Processed images |  0 |  0
10:50:18 PM:   Aliases          |  3 |  1
10:50:18 PM:   Sitemaps         |  2 |  1
10:50:18 PM:   Cleaned          |  0 |  0
10:50:18 PM: Total in 70 ms
10:50:18 PM: ​
10:50:18 PM: (build.command completed in 364ms)
10:50:18 PM: ​
10:50:18 PM: ────────────────────────────────────────────────────────────────
10:50:18 PM:   2. Deploy site                                                
10:50:18 PM: ────────────────────────────────────────────────────────────────
10:50:18 PM: ​
10:50:18 PM: Starting to deploy site from 'public'
10:50:18 PM: Creating deploy tree 
10:50:18 PM: Creating deploy upload records
10:50:18 PM: 11 new files to upload
10:50:18 PM: 0 new functions to upload
10:50:18 PM: Site deploy was successfully initiated
10:50:18 PM: ​
10:50:18 PM: (Deploy site completed in 508ms)
10:50:18 PM: ​
10:50:18 PM: ────────────────────────────────────────────────────────────────
10:50:18 PM:   Netlify Build Complete                                        
10:50:18 PM: ────────────────────────────────────────────────────────────────
10:50:18 PM: ​
10:50:18 PM: (Netlify Build completed in 893ms)
10:50:18 PM: Starting post processing
10:50:18 PM: Caching artifacts
10:50:18 PM: Started saving build plugins
10:50:18 PM: Finished saving build plugins
10:50:18 PM: Started saving pip cache
10:50:18 PM: Finished saving pip cache
10:50:18 PM: Started saving emacs cask dependencies
10:50:18 PM: Finished saving emacs cask dependencies
10:50:18 PM: Started saving maven dependencies
10:50:19 PM: Finished saving maven dependencies
10:50:19 PM: Started saving boot dependencies
10:50:19 PM: Post processing - HTML
10:50:19 PM: Finished saving boot dependencies
10:50:19 PM: Started saving rust rustup cache
10:50:19 PM: Finished saving rust rustup cache
10:50:19 PM: Started saving go dependencies
10:50:19 PM: Finished saving go dependencies
10:50:19 PM: Build script success
10:50:19 PM: Uploading Cache of size 152.7MB
10:50:19 PM: Post processing - header rules
10:50:19 PM: Post processing - redirect rules
10:50:20 PM: Post processing done
10:50:20 PM: Finished processing build request in 17.684004733s
10:50:22 PM: Site is live ✨

Building Congo v2.1.0 on Cloudflare Pages

What happened?

Hello,

I'm having a trouble building Congo (manual install method) on Cloudflare Pages.

Build command = npm run build
Build output directory = public

Please see the attached build log.

Would appreciate your comment, please.

Thank you!

Theme version

v2.1.0

Hugo version

v0.95.0

What browsers are you seeing the problem on?

Safari

Relevant Hugo log output

13:29:06.903	Initializing build environment. This may take up to a few minutes to complete
13:29:09.016	Success: Finished initializing build environment
13:29:09.016	Cloning repository...
13:29:10.984	Success: Finished cloning repository files
13:29:11.265	Installing dependencies
13:29:11.277	Python version set to 2.7
13:29:13.528	Attempting node version 'v16.14.2' from .nvmrc
13:29:15.225	Downloading and installing node v16.14.2...
13:29:15.702	Downloading https://nodejs.org/dist/v16.14.2/node-v16.14.2-linux-x64.tar.xz...
13:29:16.130	Computing checksum with sha256sum
13:29:16.263	Checksums matched!
13:29:20.726	Now using node v16.14.2 (npm v8.5.0)
13:29:21.319	Started restoring cached build plugins
13:29:21.335	Finished restoring cached build plugins
13:29:22.061	Attempting ruby version 2.7.1, read from environment
13:29:27.978	Using ruby version 2.7.1
13:29:28.341	Using PHP version 5.6
13:29:28.518	5.2 is already installed.
13:29:28.546	Using Swift version 5.2
13:29:28.547	Started restoring cached node modules
13:29:28.567	Finished restoring cached node modules
13:29:29.037	Installing NPM modules using NPM version 8.5.0
13:29:32.689	npm WARN deprecated @braintree/[email protected]: Potential XSS vulnerability patched in v6.0.0.
13:29:34.506	
13:29:34.506	> [email protected] preinstall
13:29:34.506	> rimraf assets/vendor
13:29:34.506	
13:29:34.615	
13:29:34.615	> [email protected] postinstall
13:29:34.615	> vendor-copy
13:29:34.615	
13:29:34.718	/opt/buildhome/repo/node_modules/mermaid/dist/mermaid.min.js => /opt/buildhome/repo/assets/lib/mermaid/mermaid.min.js
13:29:34.718	/opt/buildhome/repo/node_modules/chart.js/dist/chart.min.js => /opt/buildhome/repo/assets/lib/chart/chart.min.js
13:29:34.718	/opt/buildhome/repo/node_modules/katex/dist/katex.min.js => /opt/buildhome/repo/assets/lib/katex/katex.min.js
13:29:34.718	/opt/buildhome/repo/node_modules/katex/dist/katex.min.css => /opt/buildhome/repo/assets/lib/katex/katex.min.css
13:29:34.718	/opt/buildhome/repo/node_modules/katex/dist/contrib/auto-render.min.js => /opt/buildhome/repo/assets/lib/katex/auto-render.min.js
13:29:34.718	/opt/buildhome/repo/node_modules/katex/dist/fonts/ => /opt/buildhome/repo/assets/lib/katex/fonts/
13:29:34.718	/opt/buildhome/repo/node_modules/fuse.js/dist/fuse.min.js => /opt/buildhome/repo/assets/lib/fuse/fuse.min.js
13:29:34.749	
13:29:34.750	added 203 packages, and audited 204 packages in 5s
13:29:34.750	
13:29:34.750	23 packages are looking for funding
13:29:34.750	  run `npm fund` for details
13:29:34.757	
13:29:34.757	3 vulnerabilities (2 moderate, 1 high)
13:29:34.757	
13:29:34.757	To address issues that do not require attention, run:
13:29:34.757	  npm audit fix
13:29:34.757	
13:29:34.757	To address all issues (including breaking changes), run:
13:29:34.757	  npm audit fix --force
13:29:34.757	
13:29:34.757	Run `npm audit` for details.
13:29:34.768	NPM modules installed
13:29:35.306	Installing Hugo 0.95.0
13:29:36.533	hugo v0.95.0-9F2E76AF+extended linux/amd64 BuildDate=2022-03-16T14:20:19Z VendorInfo=gohugoio
13:29:36.538	Started restoring cached go cache
13:29:36.561	Finished restoring cached go cache
13:29:36.720	go version go1.14.4 linux/amd64
13:29:36.741	go version go1.14.4 linux/amd64
13:29:36.745	Installing missing commands
13:29:36.745	Verify run directory
13:29:36.745	Executing user command: npm run build
13:29:37.217	
13:29:37.217	> [email protected] build
13:29:37.217	> NODE_ENV=production ./node_modules/tailwindcss/lib/cli.js -i ./assets/css/main.css -o ./assets/css/compiled/main.css --jit
13:29:37.217	
13:29:38.426	
13:29:38.426	warn - The RTL features in Tailwind CSS are currently in preview.
13:29:38.427	warn - Preview features are not covered by semver, and may be improved in breaking ways at any time.
13:29:38.676	
13:29:38.676	Done in 599ms.
13:29:38.704	Finished
13:29:38.705	Note: No functions dir at /functions found. Skipping.
13:29:38.705	Validating asset output directory
13:29:38.705	Error: Output directory "public" not found.

Black YouTube embed when returning to the previous page in safari

What happened?

  1. Open the page with the embedded YouTube video.
  2. Go to another page
  3. Going back.

YouTube blocks are black.

Example page https://jpanther.github.io/congo/samples/rich-content/
Kapture 2022-08-11 at 01 47 17

In Chrome everything is fine, but the problem in Safari 15.6 (17613.3.9.1.5)

Tried embedding youtube shortcode and directly embed code (from the site youtube).

Theme version

2.3.1

Hugo version

0.101.1

What browsers are you seeing the problem on?

No response

Relevant Hugo log output

No response

In RTL mode, code blocks aren't rendered correctly

Language

Hebrew

What's the issue?

There are two issues with code blocks on RTL languages.

image

  1. The code block is marked as RTL. In RTL languages (e.g. Hebrew, Arabic, Farsi) we write code in LTR.
  2. The code block does not grow to fill the prose line length.

Here's how it should look like:
image

To solve the RTL code block issue, I've added a new file layouts/_default/_markup/render-codeblock.html that adds a wrapper div that forces the attribute dir="ltr":

{{ $lang  := .Attributes.lang  | default .Type }}
{{ if transform.CanHighlight $lang }}
<div dir="ltr">{{ highlight .Inner $lang }}</div>
{{else}}
<pre dir="ltr"><code>{{.Inner}}</code></pre>
{{end}}

To make the code block grow to the size of the content, I updated layouts\_default\single.html and added the Tailwind class grow to the content:

diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 03e9a9e..873a9e2 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -19,7 +19,7 @@
           </div>
         </div>
       {{ end }}
-      <div class="min-w-0 min-h-0 max-w-prose">
+      <div class="min-w-0 min-h-0 max-w-prose grow">
         {{ .Content | emojify }}
       </div>
     </section>

I don't know if these are the correct ways to fix the rendering issues. If they are, I can submit a PR with these changes.

Theme version

v2.1.0

Hugo version

v0.96.0

Relevant Hugo log output

No response

Background cut off on mobile

What happened?

baseof.html sets h-screen class on body. On my phone, this has the effect that the background is cut off and the background color changes:

image

I fixed it on my site by setting the body height to 100%:

body {
    height: 100% !important;
}

Theme version

v2.3.1

Hugo version

hugo v0.101.0+extended linux/amd64

What browsers are you seeing the problem on?

Fennec

Relevant Hugo log output

No response

Search not cleared after ESC

What happened?

Steps followed:

  1. Upgraded to congo version 2.0
  2. Ran long tailwind command to regenerate all the necessary CSS (had to install postcss from inside themes/congo first though)
  3. Started server and clicked search
    image
  4. Typed in book > proper results display
    image
  5. Pressed ESC on keyboard (without hitting a result or clicking the x) > this closed the modal, as expected
  6. Clicked search again
    Issue is here > the book results display, even though the text box is empty

image

Theme version

latest 2.0

Hugo version

v0.92.1

What browsers are you seeing the problem on?

Chrome

Relevant Hugo log output

N/A

Profile layout doesn't fit to page

What happened?

Recently updated to Congo 2.2, and my homepage (https://jmshrv.com/ - source at https://github.com/UnicornsOnLSD/UnicornsOnLSD.github.io/) no longer expands to fit the whole page. Instead, it fits to the top of the page.

Theme version

2.2.0

Hugo version

0.99.1

What browsers are you seeing the problem on?

Firefox, Chrome

Relevant Hugo log output

Start building sites … 
hugo v0.99.1-d524067382e60ce2a2248c3133a1b3af206b6ef1 linux/amd64 BuildDate=2022-05-18T11:18:14Z VendorInfo=gohugoio

                   | EN-GB  
-------------------+--------
  Pages            |    13  
  Paginator pages  |     0  
  Non-page files   |     0  
  Static files     |     7  
  Processed images |     6  
  Aliases          |     1  
  Sitemaps         |     1  
  Cleaned          |     0  

Total in 399 ms

Broken Link Anchors and Navigation for Headline Links

What happened?

Specifically, if the headline is a link, it breaks the generation of the link anchor and right side navigation.
Here is a page that reproduces it, just place it in /content/test.md so that Hugo doesn't complain about the first link:

---
date: 2022-02-11
title: Test
---

## [Test Page]({{< ref "/test" >}})

Headlines that link to another page on the blog have a messed up anchor with a "HAHA HUGO SHORTCODE" thing in them. The navigation on the right doesn't work for these.

## [Github](https://github.com/)

Links to other websites do generate an anchor, but also append the url to these anchors (might be intentional?). However the navigation on the right doesn't work, and instead links directly to the other website.

### [Smaller Github](https://github.com/)

From what I can tell, it's just the anchor name is being generated with the link included. The "HAHA HUGO SHORTCODE" turns into the appropriate link once you try typing it out in the content. Might be why the right navigation lists out URLs as their links, and then the inter blog one shows the shortcode. I assume we don't want this?

#### [Smallest Github](https://github.com/)

Or if we do want it, the navigation links on the right need to link to these anchors, not be broken or navigate to the URLs themselves.

Theme version

v2.0.4

Hugo version

v0.92.1

What browsers are you seeing the problem on?

Firefox

Relevant Hugo log output

No response

Appearance switcher has no effect on Cloudflare Pages

What happened?

My appearance switcher (sun/moon) worked well when I ran hugo serve locally, but after publishing to Cloudflare pages, the switcher has no effect. I can click it as much as I want in Chrome or Firefox, but nothing happens. There's nothing in my browser's local storage, either.

My site: https://major.io

Theme version

2.3.1

Hugo version

0.101.1

What browsers are you seeing the problem on?

Firefox, Chrome

Relevant Hugo log output

No response

[Bug] Open pages with a sudden dark flash, both in light theme and dark theme.

What happened?

When opening the pages generated by the theme Congo, a sudden dark flash occurred.

screen-record-2022-05-13-00-29

Here it is what it looks like on Safari. Also the problem occurs on Chrome but not that obvious.

Screen Shot 2022-05-13 at 00 29 09

Theme version

2.2.0

Hugo version

0.87.0

What browsers are you seeing the problem on?

Chrome, Safari

Relevant Hugo log output

No response

REF_NOT_FOUND: Ref "docs/shortcodes"

What happened?

Congo theme is installed via git on Windows 11, as folow as https://jpanther.github.io/congo/docs/installation/#install-using-git. and configured the folder config/ .There was no problem at first when try to run it locally, using .\hugo.exe server -t congo --buildDrafts, but adding some files under concent/, the following error occurred. I know that docs/ and samples/ are sample files, so I put the missing files into the folder concent/ , sometimes without error, and more often as a similar error, even though the files are already there.
Hope to solve this trouble.

Change of config file detected, rebuilding site.
2022-05-23 22:40:14.545 +0800
ERROR 2022/05/23 22:40:14 [en] REF_NOT_FOUND: Ref "docs/configuration": "E:\test\BBlog\content\docs\version-2\upgrade\index.md:175:73": page not found
ERROR 2022/05/23 22:40:14 [en] REF_NOT_FOUND: Ref "docs/shortcodes": "E:\test\BBlog\content\docs\version-2\upgrade\index.md:192:30": page not found
ERROR 2022/05/23 22:40:14 [en] REF_NOT_FOUND: Ref "docs/shortcodes": "E:\test\BBlog\content\samples\charts.md:15:32": page not found
ERROR 2022/05/23 22:40:14 [en] REF_NOT_FOUND: Ref "docs/shortcodes": "E:\test\BBlog\content\samples\diagrams-flowcharts.md:15:34": page not found
ERROR 2022/05/23 22:40:14 [en] REF_NOT_FOUND: Ref "docs/partials": "E:\test\BBlog\content\samples\icons.md:15:170": page not found
ERROR 2022/05/23 22:40:14 [en] REF_NOT_FOUND: Ref "docs/shortcodes": "E:\test\BBlog\content\samples\icons.md:15:224": page not found
ERROR 2022/05/23 22:40:14 [en] REF_NOT_FOUND: Ref "docs/shortcodes": "E:\test\BBlog\content\samples\mathematical-notation.md:18:167": page not found
ERROR 2022/05/23 22:40:14 [en] REF_NOT_FOUND: Ref "docs/installation": "E:\test\BBlog\content\_index.md:30:216": page not found
ERROR 2022/05/23 22:40:14 [en] REF_NOT_FOUND: Ref "docs/installation": "E:\test\BBlog\content\docs\version-2\_index.md:96:169": page not found
ERROR 2022/05/23 22:40:14 logged 9 error(s)

Theme version

v2.2

Hugo version

v0.99.1

What browsers are you seeing the problem on?

No response

Relevant Hugo log output

No response

Hugo v0.101 breaks the HOMEPAGE link.

What happened?

When building the site with Hugo v0.99 everything works as expected. But when Hugo v0.101 is used, the link to the home of the page does not lead to the desired ./webiste, but to ./. All other links work as expected. The issue was resolved by switching to the dev branch.

Theme version

v2.2.3

Hugo version

v0.101

What browsers are you seeing the problem on?

Firefox, Chrome

Relevant Hugo log output

No response

Hugo Menu Params Not Respected

What happened?

I am trying to use some of the available Hugo menu parameters (https://gohugo.io/content-management/menus/) but they do not seem to work. That might be expected but the documentation references the Hugo docs and I would expect those parameters to work.

I am specifically trying to add a 'pre' and a custom class to a menu item like shown in the Hugo documentation.

  identifier = 'about'
  name = 'about hugo'
  pre = "<i class='fa fa-heart'></i>"
  url = '/about/'
  weight = -110
  [menu.main.params]
    class = 'highlight-menu-item'

And this is what I have:

[[main]]
  name = "Some name"
  pageRef = "page"
  weight = 11
  pre = "<i class='fa fa-heart'></i>"
  post = "<span class='alert'>New!</span>"
  [main.params]
    class = 'highlight-menu-item'

Is this limitation expected or it is an issue?

Theme version

v1.18

Hugo version

v2.3.1

What browsers are you seeing the problem on?

Microsoft Edge

Relevant Hugo log output

No response

Google Unparsable Structured Data

What happened?

Google's site crawler notified me of an "unparsable structured data" issue, located on the main page.

"publisher" : {
"@type": "Person",
"name": "{{ .Site.Author.name | safeJS }}",
},
{{ with .Site.Params.keywords }}"keywords": {{ . }},{{ end }}
}
</script>

Since I didn't have keywords on my home page, line 15 doesn't happen, leaving line 14 with a trailing comma that Google and JSON doesn't like:

<script type="[application/ld+json]()">
  {
    "@context": "https://schema.org",
    "@type": "WebSite",
    "@id": "http:\/\/localhost:1313\/",
    "name": "My Blog",
    "description": "My description",
    "inLanguage": "en",
    "url": "http:\/\/localhost:1313\/",
    "publisher" : {
      "@type": "Person",
      "name": "PhasecoreX",
    },
    
  }
  </script>

I figured I would try to add keywords to my blog, so I added them to my languages.en.toml like so:

keywords = ["keyword1", "keyword2", "keyword3"]

Not sure if this is where they are supposed to go or if it's the correct format, as I couldn't find any documentation, but it does populate it on the home page. However, it too has a trailing comma:

<script type="[application/ld+json]()">
  {
    "@context": "https://schema.org",
    "@type": "WebSite",
    "@id": "http:\/\/localhost:1313\/",
    "name": "My Blog",
    "description": "My description",
    "inLanguage": "en",
    "url": "http:\/\/localhost:1313\/",
    "publisher" : {
      "@type": "Person",
      "name": "PhasecoreX",
    },
    "keywords": ["keyword1","keyword2","keyword3"],
  }
  </script>

I think maybe it's just taking that whole list and placing it on the page as is, with that extra comma from {{ . }},{{ end }} after it. Thought it would loop over the values, but I guess not.

Theme version

v2.0.4

Hugo version

v0.92.2

What browsers are you seeing the problem on?

Firefox

Relevant Hugo log output

No response

Logo does not link to homepage

When using the logo option, it should link back to the site home.

Discussed in #12

Originally posted by myriahnottage October 19, 2021
I want to implement the logo option that renders in the top left such that it's clickable and will return users to the home page. I'm not seeing an href in the header.html partial, but I'm happy to add one if others would find it useful.

Thanks!

URL not correct when using search

What happened?

First, off you should know I am not a developer but know enough to be dangerous. I usually can figure things out with the help of Google.

When I follow the instructions to install Congo I get the same problem. The search works fine locally using hugo server. Once deployed Netlify, Vercel, Digital Ocean, all give the same error when I look at the the network section of the developer tools in Safari.
The first error is this:
Failed to load resource: A server with the specified hostname could not be found. The server is listed as this https://unruffled-dijkstra-8433e2.netlify.appindex.json/ , which is obviosly wrong since the app should have a forward slash after it then index.json . No matter where it is hosted the error appears. I assumed it was a hosting error, but It happens on any platform it is deployed to.
So I'm not sure how to fix that error.
The next errors are Fusejs errors:

[Error] TypeError: undefined is not an object (evaluating 'fuse.search')
	executeQuery (main.bundle.min.238e7ce9c541b4e7abb5781ad8e736e849e74890fcb8a26e73ea1845f573b3a0cf91418b20ac4401bdbb57d9c6c009d8f6ec50dad6d44b48f3936aea0f95c391.js:1:25485)
	(anonymous function) (main.bundle.min.238e7ce9c541b4e7abb5781ad8e736e849e74890fcb8a26e73ea1845f573b3a0cf91418b20ac4401bdbb57d9c6c009d8f6ec50dad6d44b48f3936aea0f95c391.js:1:24573)

Maybe you can suggest something. I'm at a loss.
Thanks
Paul

Theme version

2.0

Hugo version

0.92.2

What browsers are you seeing the problem on?

Safari

Relevant Hugo log output

No response

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.