Comments (3)
I experienced the same problem.
The problem is you are using an absolute URL.
Use a relative url and it'll work just fine.
from hugo-embed-pdf-shortcode.
Describe the bug It is working fine while I run hugo on my local server. But it does not work (and keep rotating) on the hosted hugo site.
To Reproduce Visit -> https://www.sribharathi.tech/about/
Expected behavior It should work in both the modes.
@srigurubyo Could you please share the link to your repo?
As @Hesbadami mentioned above, the location of the file should be specified with relative URL.
You can check the code for the demo site here to see how this works.
Let me know if it worked.
from hugo-embed-pdf-shortcode.
I checked the website and seems like you have used another solution.
If you do wish to use the shortcode again please do reach out.
Until then I will be closing this issue. Please feel free to reopen again.
from hugo-embed-pdf-shortcode.
Related Issues (20)
- Add a progress loader before displaying the pdf file
- Scroll through pages HOT 9
- I'm sorry but, it doesn't work for me HOT 7
- PDF.js library loading broken HOT 6
- Please make PDF resizable
- Allow multiple PDF embeddings in one page HOT 10
- It doesn't work HOT 14
- Provide option to allow users to download the PDF file HOT 12
- Undefined is not an object HOT 2
- Install as a Theme Component HOT 3
- PDF always loading, never displaying. HOT 7
- [Feature Request] Add GitHub action to implement a CI for the shortcode
- Users can view PDFs but preventing them the download HOT 2
- [Feature Request] Add translation option to add language for Next and prev buttons. HOT 4
- PDF not loading on Netlify but is OK on localhost HOT 8
- If there are pictures in the pdf, they cannot be displayed. HOT 2
- hidePaginator option does not work
- how to set a pdf file so that it can display? HOT 14
- Deploy pdf is not working HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hugo-embed-pdf-shortcode.