gohugoio / hugo

The world’s fastest framework for building websites.
https://gohugo.io
Apache License 2.0
74.82k stars 7.46k forks source link

Cannot test simple mode shortcodes with the latest Hugo. #4772

Closed onedrawingperday closed 6 years ago

onedrawingperday commented 6 years ago

Just submitted PR #4771

I was unable to test the youtube_simple shortcode locally with the latest Hugo out-of-the-box.

The console was throwing the following error: Unable to locate template for shortcode "youtube_simple" in page "test/youtube.md" I had to manually add a youtube_simple shortcode in a test project.

My config had the following:

[privacy]
[privacy.youtube]
disable = false
privacyEnhanced = false
simple = true

Other new features like the one in #4745 work as expected.

bep commented 6 years ago

Your PR has an error in it, which most likely explains this behaviour.

onedrawingperday commented 6 years ago

@bep Not sure if the error in #4771 was the cause.

Before I committed anything I compiled from gohugo/master with

git checkout master 
git pull
go build -o hugo main.go

hugo version: Hugo Static Site Generator v0.41-DEV linux/amd64

Then cloned your repo from https://github.com/bep/hugotest to test it locally.

I got the following

Building sites … ERROR 2018/05/25 11:07:22 Unable to locate template for shortcode "instagram_simple" in page "scodes/embedded-unstyled.md"
ERROR 2018/05/25 11:07:22 Unable to locate template for shortcode "instagram_simple" in page "scodes/embedded.md"
ERROR 2018/05/25 11:07:22 Unable to locate template for shortcode "instagram_simple" in page "section1/s1_1/hugo-rocks.md"
Total in 930 ms
Error: Error building site: logged 3 error(s)
github-actions[bot] commented 2 years ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.