Azure / azure-monitor-baseline-alerts

Azure Monitor Baseline Alerts
MIT License
160 stars 228 forks source link

[Feedback]: Failed to build site locally using Hugo Server #162

Closed judyer28 closed 7 months ago

judyer28 commented 7 months ago

Check for previous/existing GitHub issues

Description

When trying to run hugo server with latest changes, the following error is occurring: $ hugo server -D Start building sites … hugo v0.111.3-5d4eb5154e1fed125ca8e9b5a0315c4180dab192+extended windows/amd64 BuildDate=2023-03-12T11:40:50Z VendorInfo=gohugoio Error: Error building site: failed to render shortcode: "C:\Users\judyer\source\repos\amba\azure-monitor-baseline-alerts\docs\content\patterns\alz\deploy\Deploy-with-Azure-Pipelines.md:6:1": failed to render shortcode "include": failed to process shortcode: "C:\Users\judyer\source\repos\amba\azure-monitor-baseline-alerts\docs\layouts\shortcodes\include.html:2:5": execute of template failed: template: shortcodes/include.html:2:5: executing "shortcodes/include.html" at <$p.RenderShortcodes>: can't evaluate field RenderShortcodes in type page.Page Built in 6416 ms

Brunoga-MS commented 7 months ago

Hello @judyer28 , thanks for your feedback. Could you please make sure your fork is updated with the latest changes from the official one? I tried the same and got no errors.

Thanks, Bruno.

judyer28 commented 7 months ago

I just made sure and still same issue. To double check I just cloned the AMBA repo and same issue. See here:

image
Brunoga-MS commented 7 months ago

I will try to reach out to you later today to compare files. In my case, with my fork aligned with Main, it is working.

judyer28 commented 7 months ago

@Brunoga-MS let me try updating my Hugo version. I was speaking with Joey and he is using a later version. I'll let you know if that doesn't fix my issue.

judyer28 commented 7 months ago

@Brunoga-MS, upgrading to latest version of Hugo (v0.124.0) worked. Closing this issue.