Footer logo image is broken on non-home pages
amanda-hi opened this issue · 4 comments
The footer (containing the SomaLogic logo) appears as expected on the pkgdown site home page, but the logo image is broken on all vignette and function reference pages, e.g. Articles and Reference. The footer text appears as expected, but the image is broken. This does not occur on the Citation or License pages.
I'm aware of this issue and will begin looking into it shortly; this issue is being filed for tracking purposes.
Tried removing the HTML footer (found in inst/pkgdown/templates/footer.html
) and replacing it with a YAML footer in inst/pkgdown/_pkgdown.yml
, but the same pattern was observed: footer image broken on non-home pages.
This issue may not be specific to somatemplate
: I'm seeing the same problem in the pkgdown sites for SomaDataIO and SomaPlotr.
I think I've tracked down the problem, it's similar to the one reported in this StackOverflow post. Their solution also worked for me: copying the favicon-16x16.png
file (used to add the image to the footer) into all subdirectories of docs/
caused the footer to render the image correctly for that page (ex. copying the Favicon image into docs/articles/
results in the footer image appearing in all "Articles" pages on the pkgdown site). The docs/
directory is included in the .gitignore
file, however, so modifying it won't affect the GitHub repo and won't fix the problem. But it does seem like the image not being copied recursively into docs/
is the root issue.