Skip to content

aniav/gitbook-plugin-sidebar-ads

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitBook Sidebar Ad with Carousel plugin

Add a nice sidebar ad to your GitBook with a carousel to cater for sponsored ads. This is based on the GitBook Sidebar Ad plugin developed by Ola Sitarska for the Django Girls Tutorial.

Example:

Example

See demo

How to use it:

Add this to your "book.json":

{
    "plugins": ["sidebar-ads"],
    "pluginsConfig": {
        "sidebar-ads": {
            "your-ad'": {
                "imageUrl": "http://i.imgur.com/K3HPXzm.png", // Url to your ad
                "url": "http://google.com/", // Url that image will be linked to, optional
                "description": "text", // Text next to the add, optional
                "btnText": "Buy me!" // Text for the Call to Action button, optional
            },
            "sponsor-ads" : [
                {
                    "imageUrl": "http://i.imgur.com/K3HPXzm.png", // Url to your sponsor ad
                    "url": "http://google.com/", // Url that image will be linked to, optional
                    "description": "text", // Text next to the add, optional
                    "btnText": "Buy me again!" // Text for the Call to Action button, optional
                }
            ]
        }
    }
}

License

BSD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 80.3%
  • CSS 17.2%
  • JavaScript 2.5%