You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While playing with the theme, I noticed that in header.html and footer.html partials the addresses for css and js files are absolute, which breaks the page when deploying on an external webserver.
Easy fix is to change <script src="/js/hugo-academic.js"></script>
to <script src="{{ $.Site.BaseURL }}js/hugo-academic.js"></script>
et cetera
The text was updated successfully, but these errors were encountered:
Thank you for reporting this bug with non-root base URLs. (Otherwise, the assets should load fine if deployed with the baseurl setting defined for the domain root e.g. baseurl = http://www.example.org/.)
Commit a55f766 should fix this issue for the main asset URLs. I am now checking if any general links can be fixed/improved.
While playing with the theme, I noticed that in header.html and footer.html partials the addresses for css and js files are absolute, which breaks the page when deploying on an external webserver.
Easy fix is to change
<script src="/js/hugo-academic.js"></script>
to
<script src="{{ $.Site.BaseURL }}js/hugo-academic.js"></script>
et cetera
The text was updated successfully, but these errors were encountered: