matcornic / matcornic/hugo-theme-learn

Changing the logo / custom logo broken on sub page in live view

Open
#202 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

support
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.html
  • MyHugoWebsite/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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.