hugo-PaperMod icon indicating copy to clipboard operation
hugo-PaperMod copied to clipboard

Handle cover image URL in partials when image is a resource

Open LordGaav opened this issue 2 years ago • 1 comments

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.

LordGaav avatar Aug 09 '23 10:08 LordGaav

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

sonarqubecloud[bot] avatar Aug 09 '23 10:08 sonarqubecloud[bot]