Comments (4)
I've only tested this on Chrome.
- Add this in gatsby-config inside plugins array with the other resolve objects:
{
resolve: 'gatsby-source-filesystem',
options: {
name: 'pdf',
path: '${__dirname}/src/pdf/',
},
},
- Create directory in
src
folder calledpdf
and drop your resume in there:/src/pdf/My-Resume.pdf
- In
/src/Components/About/About.jsx
add to the top of the page:import File from '../../pdf/My-Resume.pdf'
- On line 58 of About.jsx, change to :
<span className="d-flex mt-3">
<a
target="_blank"
rel="noopener noreferrer"
className="cta-btn cta-btn--resume"
href={File}
>
Resume
</a>
</span>
- In data.js, change to
resume: "My-Resume.pdf"
under aboutData. I'm pretty sure you can put anything here as long as it's not empty so the button shows up, I haven't tested it.
Browser's download option is in the top right when clicked.
from simplefolio.
@ap-dev1 do you want this feature for Simplefolio V1 or Gatsby Simplefolio?
@hadi-mirza suggest a solution but for Gatsby version.
Let me know your response, if you already solved it or not. So I can start working on that feature and update the Documentation.
from simplefolio.
@ap-dev1 Hi,
Let me know if you solved this or the status.
So I can close the issue.
from simplefolio.
I remade the entire app but I forget to close the issue. Thank you for the reminder. Best, -a.
from simplefolio.
Related Issues (20)
- Thanks!
- Upon updating node, an Error occurs. HOT 1
- MY PORTFOLIO
- Query required Using This Template
- The URL not working HOT 1
- Font Color. HOT 1
- CSS not showing while deploying in Netlify HOT 4
- Help HOT 1
- Error building react native project through parcel
- Parcel issue - one of many possible solutions
- yarn run auto reload?
- @parcel/transformer-js: (0 , _native.transform) is not a function
- Expected content key 200e56f57b917197 to exist
- Change favicon HOT 3
- Cannot load the CSS part HOT 3
- Issue with modifying favicon using RealFaviconGenerator HOT 1
- Navigation Bar HOT 1
- /well-known file HOT 3
- scrollRevealConfig.js BUILD FAILED
- Demo not working
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 simplefolio.