Skip to content

Fotorama directive to display a gallery using http://fotorama.io jQue… #94

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions v7/fotorama_directive/README.md
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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.

Loading
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
Original file line number Diff line number Diff line change
@@ -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
Loading