Skip to content

Commit

Permalink
Fotorama directive to display a gallery using http://fotorama.io jQue…
Browse files Browse the repository at this point in the history
…ry plugin

Usage:

.. fotorama::
   ⌨️ true
   :allowfullscreen: native

   image0.jpg
   image1.jpg
   image2.jpg
   image3.jpg
  • Loading branch information
humitos committed Aug 4, 2015
1 parent 0546186 commit 715a2ce
Show file tree
Hide file tree
Showing 8 changed files with 228 additions and 0 deletions.
25 changes: 25 additions & 0 deletions v7/fotorama_directive/README.md
@@ -0,0 +1,25 @@
Fotorama directive to display a gallery using http://fotorama.io jQuery plugin

# Usage

```
.. fotorama::
:keyboard: true
:allowfullscreen: native
image0.jpg
image1.jpg
image2.jpg
image3.jpg
```

# Gallery centered

If you want to get your fotorama images centered on the web page you
can add this code to your `custom.css`:

```
.fotorama__wrap {
margin: 0 auto;
}
```
10 changes: 10 additions & 0 deletions v7/fotorama_directive/conf.py.sample
@@ -0,0 +1,10 @@
# Default options for fotorama_directive plugin
# To see all the options go to: http://fotorama.io
FOTORAMA_OPTIONS = {
'nav': 'thumbs',
'ratio': '16/9',
'keyboard': 'true',
'thumbwidth': 256,
'thumbheight': 256,
'allowfullscreen': 'native'
}
4 changes: 4 additions & 0 deletions v7/fotorama_directive/files/assets/css/fotorama.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions v7/fotorama_directive/files/assets/js/fotorama.js

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions v7/fotorama_directive/fotorama_directive.plugin
@@ -0,0 +1,12 @@
[Core]
Name = fotorama_directive
Module = fotorama_directive

[Nikola]
MinVersion = 7.4.0

[Documentation]
Author = Manuel Kaufmann
Version = 0.1
Website = http://plugins.getnikola.com/#fotorama_directive
Description = Fotorama directive to display a gallery using http://fotorama.io jQuery plugin

0 comments on commit 715a2ce

Please sign in to comment.