Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Codeblock broken in Hugo v0.71.1 #429

Closed
py-crash opened this issue May 29, 2020 · 2 comments
Closed

Codeblock broken in Hugo v0.71.1 #429

py-crash opened this issue May 29, 2020 · 2 comments
Assignees
Labels
bug Something isn't working hugo issue The issue is linked to upstream Hugo issues or limitations
Milestone

Comments

@py-crash
Copy link

Configuration

  • Operating system with its version: Manjaro 20.0.1
  • Hugo version: v0.71.1
  • Tranquilpeak version: 0.4.7-BETA, 0.5.0-SNAPSHOT
  • Do you reproduce on https://tranquilpeak.kakawait.com demo?: Yes, also breaks when trying to build example site

Actual behavior

When trying to build the site using hugo v0.71.1 (obtained from the snap), it breaks throwing the following message:

Error: Error building site: "$PATH/exampleSite/content/posts/Tags-plugins-showcase.md:77:1": failed to render shortcode "codeblock": failed to process shortcode: $PATH/exampleSite/themes/hugo-tranquilpeak-theme/layouts/shortcodes/codeblock.html:23:15": execute of template failed: template: shortcodes/codeblock.html:23:15: executing "shortcodes/codeblock.html" at <($.Scratch.Get "c-url") ($.Scratch.Get "c-title")>: can't give argument to non-function $.Scratch.Get "c-url"

Note: I replaced the actual path with $PATH

Expected behavior

Hugo builds the site without problems, as it happens with hugo v0.70.0 (current version in the Manjaro repo)

Steps to reproduce the behavior

Just run hugo.

@kakawait kakawait self-assigned this May 29, 2020
@kakawait kakawait added bug Something isn't working hugo issue The issue is linked to upstream Hugo issues or limitations labels May 29, 2020
@kakawait kakawait added this to the 0.4.8-BETA milestone May 29, 2020
kakawait added a commit that referenced this issue May 29, 2020
Regression from hugo 0.71

fixes #429
@kakawait
Copy link
Owner

Could you please test new release 0.4.8-BETA?

@py-crash
Copy link
Author

It works! Thank you for fixing it so fast. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hugo issue The issue is linked to upstream Hugo issues or limitations
Projects
None yet
Development

No branches or pull requests

2 participants