QardsJs / qards

Qards is a blogging platform focused on performance and on closing the gap between content publishers and developers: https://qards.io
MIT License
239 stars 16 forks source link

Allow using external image in Image card #82

Open fr0der1c opened 5 years ago

fr0der1c commented 5 years ago

Sometimes users want to use external images instead of uploading the image to the repository. Using external image is very painful at the moment. If I use markdown grammar(![]()) to insert external images, it will be converted to !\[]() and broken after switching back to rich text mode. I think this conversion should be disabled and maybe the image card should allow users to use external image.

ciokan commented 5 years ago

screenshot from 2018-12-31 16-50-52

You get a penalty for that I hope you know. If you want to serve your blog closer to China for better latency I think you would be better off using a custom CDN (something closer to your readers) instead of Netlify.

You can run gatsby build to create the public/ folder with your app and deploy that to a CDN of your choice.

fr0der1c commented 5 years ago

I did think about deploying to another CDN. But I gave up since I cannot use Netlify CMS panel if I build on my own. If I don't use Netlify CMS, it would be very hard to use Qards widgets. Am I right?

ciokan commented 5 years ago

you can use localhost to be able to create your posts and then build and deploy wherever you like.

gatsby develop http://localhost:8000/admin git pull origin master gatsby build

....deploy to your cdn

fr0der1c commented 5 years ago

Is Linux required for running this project? I tried npm install on my Mac and run into following error:

npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for inotify@1.4.6: wanted {"os":"linux","arch":"any"} (current: {"os":"darwin","arch":"x64"})
npm ERR! notsup Valid OS:    linux
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   darwin
npm ERR! notsup Actual Arch: x64
ciokan commented 5 years ago

Can you try removing the dev package from package.json. I don't think it's required.

On Wed, Jan 2, 2019 at 5:39 AM Frederic Chan notifications@github.com wrote:

Is Linux required for running this project? I tried npm install on my Mac and run into following error:

npm ERR! code EBADPLATFORM npm ERR! notsup Unsupported platform for inotify@1.4.6: wanted {"os":"linux","arch":"any"} (current: {"os":"darwin","arch":"x64"}) npm ERR! notsup Valid OS: linux npm ERR! notsup Valid Arch: any npm ERR! notsup Actual OS: darwin npm ERR! notsup Actual Arch: x64

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/QardsJs/qards/issues/82#issuecomment-450782386, or mute the thread https://github.com/notifications/unsubscribe-auth/AAc_RBPswB_52008mjvf-xpYrtjuXBaSks5u_CnXgaJpZM4ZkX3Q .

fr0der1c commented 5 years ago

Unfortunately, the problem persists after removing devDependencies part.