hugo-PaperMod
hugo-PaperMod copied to clipboard
Handle cover image URL in partials when image is a resource
What does this PR change? What problem does it solve?
I noticed that the image URLs for cover images were not properly generated when the cover image is a reference to a page resource. Google Search Console notified me of this issue.
The logic was taken from the cover.html partial.
I've double checked the images work properly now using this site .
Was the change discussed in an issue or in the Discussions before?
No
PR Checklist
- [ ] This change adds/updates translations and I have used the template present here.
- [X] I have enabled maintainer edits for this PR.
- [X] I have verified that the code works as described/as intended.
- [ ] This change adds a Social Icon which has a permissive license to use it.
- [X] This change does not include any CDN resources/links.
- [X] This change does not include any unrelated scripts such as bash and python scripts.
- [ ] This change updates the overridden internal templates from HUGO's repository.
Kudos, SonarCloud Quality Gate passed! 
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication