-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PDF always loading, never displaying. #36
Comments
For me it is working only locally when I run the hugo server. On my website https://sysadmin.info.pl/pl/blog/moja-praca-inzynierska/ it does not work. the repository from github is taken by netlify and I added my custom domain. I have no idea is it possible to add CORS to netlify. |
I know the solution. First of all in my case I had to change in config.toml a base URL to this Then in the netlify.toml (because I am using netlify) I had to define headers this way:
After that in my md file where I am using a shortcode I defined it this way:
Because I keep the PDF file in the directory
And my md file where I am using the shortcode is located here:
This way I solved the problem. I think you can try. If you have any questions, do not hesitate to ask me, please. |
@corei8 @sysadmin-info You can take a look at how the shortcode is embedded and the Hugo site config in the demo site here This site is built with the minimal theme and is deployed using Netlify. |
I figured it out. In the config.toml where the base url is defined instead of / it has to be https://example.com/ not https://example.com or / The / at the end of the address is crucial. |
I figured it out. In the config.toml where the base url is defined instead of / it has to be https://example.com/ not https://example.com or / The / at the end of the address is crucial. |
I also have this issue even when using
|
Read one more time carefully my answer. |
The initial installation did not work at all. But then I ran across this guide and I can get the shortcode to start loading the PDF, but it never actually loads it: the wheel just keeps on spinning.
The text was updated successfully, but these errors were encountered: