Skip to content

Commit 715a2ce

Browse files
committed
Fotorama directive to display a gallery using http://fotorama.io jQuery plugin
Usage: .. fotorama:: ⌨️ true :allowfullscreen: native image0.jpg image1.jpg image2.jpg image3.jpg
1 parent 0546186 commit 715a2ce

File tree

8 files changed

+228
-0
lines changed

8 files changed

+228
-0
lines changed

v7/fotorama_directive/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Fotorama directive to display a gallery using http://fotorama.io jQuery plugin
2+
3+
# Usage
4+
5+
```
6+
.. fotorama::
7+
:keyboard: true
8+
:allowfullscreen: native
9+
10+
image0.jpg
11+
image1.jpg
12+
image2.jpg
13+
image3.jpg
14+
```
15+
16+
# Gallery centered
17+
18+
If you want to get your fotorama images centered on the web page you
19+
can add this code to your `custom.css`:
20+
21+
```
22+
.fotorama__wrap {
23+
margin: 0 auto;
24+
}
25+
```

v7/fotorama_directive/conf.py.sample

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Default options for fotorama_directive plugin
2+
# To see all the options go to: http://fotorama.io
3+
FOTORAMA_OPTIONS = {
4+
'nav': 'thumbs',
5+
'ratio': '16/9',
6+
'keyboard': 'true',
7+
'thumbwidth': 256,
8+
'thumbheight': 256,
9+
'allowfullscreen': 'native'
10+
}

v7/fotorama_directive/files/assets/css/fotorama.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Loading

v7/fotorama_directive/files/assets/js/fotorama.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Core]
2+
Name = fotorama_directive
3+
Module = fotorama_directive
4+
5+
[Nikola]
6+
MinVersion = 7.4.0
7+
8+
[Documentation]
9+
Author = Manuel Kaufmann
10+
Version = 0.1
11+
Website = http://plugins.getnikola.com/#fotorama_directive
12+
Description = Fotorama directive to display a gallery using http://fotorama.io jQuery plugin

0 commit comments

Comments
 (0)