Images and URLs in the markdown posts after importing jekyll github page

I’ve just converted my github page from jekyll to hugo. It basically works, but I have a few issues:

In the MD files I had links embedded in text in the following way:

Text text text text text text text text text text text text text 
text text text [text text text text][1] text text text text text.

Then at the end of the post I had:

[1]: https://ulrurlurlurl.tld

But this doesn’t seem to work with hugo. What should be done to make this work?

The next thing are images. With github-jekyll I had:

![]({{ site.baseurl }}/img/image.png){:width="640px"}

But in hugo this also doesn’t work. The {{ site.baseurl }}/ variable has to be deleted, which isn’t a big deal, but what about the size?

Also, if this {{ site.baseurl }} can’t be used, how to link to some other posts on this page? With jekyll, I did it in the following way:

[1]: {{ site.baseurl }}/post/name-of-the-markdown-file/

Try using the footnote syntax

text lorem[^1]

[^1]: lorem

You could try using shortcodes or render hooks (if using goldmark)

Have a read about ref / relref.

I’ve managed to fix the URL problems but still can’t figure out how to fix the image size.