Skip to content

使得ghost的图片可以全屏查看,支持缩放; Makes images on ghost post zoomable.

License

Notifications You must be signed in to change notification settings

hoyt-tian/ghost-image-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A plugin that makes all images on ghost are zoomable. Click the image and then you can zoom in or zoom out the image in a popup view. 缩放图片的插件

Demon

Online demon: https://www.hoyt-tian.com/reactde-shi-wu-ji-zhi/

Click any Image you can zoom in and zoom out the image. 点击任意图片,就可以缩放它。

Usage

Add the following code in ghost Code Inject -> "Blog Footer" 在Ghost的设置中,找到Code Inject,并添加如下的代码。

<script src="https://rawgit.com/hoyt-tian/ghost-image-viewer/master/dist/ghost-image-viewers.js"></script>

完成以后,就可以通过点击图片,弹出缩放图片的视图。 After that, you're able to click images in the posts and zoom in/out the image.

Github

https://github.com/hoyt-tian/ghost-image-viewer/

More…

这样比较大的图片传到Ghost上,就可以很方便查看了。 It's a rough version to make all images zoomable, I just make this plugin so that I could upload very big images on Ghost and see all content clear.

About

使得ghost的图片可以全屏查看,支持缩放; Makes images on ghost post zoomable.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published