CodeYourFuture / CodeYourFuture/curriculum

Running org-cyf-itp locally on Win 10 got error

Open
#750 0 comments 0 reactions 0 assignees View on GitHub
Hugo lore
Dominant language
HTML
Stars
76
Forks
135
Avg merge
1d 3h
Merged PRs (30d)
20

Description

**Describe the bug**

I tried to run it on a Win 10 laptop but got an error

**What is wrong with this content?**

I tried to run [org-cyf-itp](https://github.com/CodeYourFuture/curriculum/tree/main/org-cyf-itp) on a Win 10 laptop but got the below error:
`execute of template failed: template: _default/_markup/render-image.html:43:21: executing "_default/_markup/render-image.html" at : error calling Get: CreateFile`

It gives some error log like below:
`calling Get: CreateFile C:\....\curriculum\org-cyf-itp\assets\custom-images\https:\[raw.githubusercontent.com](http://raw.githubusercontent.com/)\CodeYourFuture\Module-JS2\assets\122883928\07cc2f19-79dd-435f-b70d-d8c3b2173877`

Below listed Hugo and Go version:
- hugo v0.127.0-74e0f3bd63c51f3c7a0f07a7c779eec9e922957e+extended windows/amd64 BuildDate=2024-06-05T10:27:59Z VendorInfo=gohugoio
- go version go1.22.4 windows/amd64

**How could this be fixed?**

It may need some fix for [common-theme/layouts/_default/_markup/render-image.html](https://github.com/CodeYourFuture/curriculum/blob/main/common-theme/layouts/_default/_markup/render-image.html)
The issue was bypassed by removing line 33 - line 50 in the HTML.

**Link to content**
N/A

**Additional context**
N/A

**Who else might need to know about this?**
N/A

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.