matcornic / matcornic/hugo-theme-learn
Changing the logo / custom logo broken on sub page in live view
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1.6k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
sorry I don't know if this is a bug or a mistake on my side but following https://themes.gohugo.io//theme/hugo-theme-learn/en/basics/style-customization/ the logo I want to add is not recognized.
I've added
MyHugoWebsite/layouts/partials/logo.htmlMyHugoWebsite/static/media/mylogo.jpg
and added in MyHugoWebsite/layouts/partials/logo.html:
<img src="../../static/media/mylogo.jpg" alt="mylogo.jpg">
http://localhost:1313/ just lists "mylogo.jpg". Did I miss something?
My hugo version:
$ snap run hugo version
Hugo Static Site Generator v0.51 linux/amd64 BuildDate: 2018-11-07T12:22:45Z
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the documented logo customization with layouts/partials/logo.html and static/media/mylogo.jpg, then inspect the rendered output on the root and a subpage. The work is done when the custom logo renders as an image rather than the text "mylogo.jpg" on both views.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- html
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100