Merge pull request #89 from QSchulz/fix-english
docs: fix a few English mistakes
This commit is contained in:
commit
c0efbba51c
@ -20,12 +20,12 @@ In a root folder launch this command::
|
|||||||
|
|
||||||
prosopopee preview
|
prosopopee preview
|
||||||
|
|
||||||
After you can check your website on http://localhost:9000
|
Then, you can check your website at http://localhost:9000
|
||||||
|
|
||||||
Deployment
|
Deployment
|
||||||
----------
|
----------
|
||||||
|
|
||||||
Prosopopee can upload your website with rsync, for do it run::
|
Prosopopee can upload your website with rsync, to do so, run::
|
||||||
|
|
||||||
prosopopee deploy
|
prosopopee deploy
|
||||||
|
|
||||||
|
@ -1,24 +1,22 @@
|
|||||||
Configuration
|
Configuration
|
||||||
=============
|
=============
|
||||||
|
|
||||||
Files organisation
|
|
||||||
|
|
||||||
The files organisation is quite simple:
|
The files organisation is quite simple:
|
||||||
|
|
||||||
* in the root directory of your project you need a settings.yaml file that will contains the title and subtitle of your gallery
|
* in the root directory of your project you need a settings.yaml file that contains the title and subtitle of your gallery
|
||||||
* for each gallery you'll need a folder that also contains a settings.yaml file that will describe how to display the content on your gallery
|
* for each gallery you need a folder that also contains a settings.yaml file that describes how to display the content in your gallery
|
||||||
* and you put the pictures of the gallery inside the gallery folder
|
* and you put the pictures of the gallery inside the gallery folder
|
||||||
* or other directory, in the gallery became an index (so pictures won't be display, only cover of child gallery)
|
* or other directory, in the gallery became an index (so pictures won't be display, only cover of child gallery)
|
||||||
|
|
||||||
Root settings.yaml
|
Root settings.yaml
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
The root settings.yaml should contains 2 keys: one for the title of your website and one for the subtitle. It should looks like that::
|
The root settings.yaml should contain 2 keys: one for the title of your website and one for the subtitle. It should look like that::
|
||||||
|
|
||||||
title: My exploration of the outside world
|
title: My exploration of the outside world
|
||||||
sub_title: it's a scary place, don't go there
|
sub_title: it's a scary place, don't go there
|
||||||
|
|
||||||
It can also optionally contain a menu and global settings.`
|
It can also optionally contain a menu and global settings.
|
||||||
|
|
||||||
Menu
|
Menu
|
||||||
____
|
____
|
||||||
@ -42,23 +40,22 @@ For example, this could be the content of `settings.yaml` in `about` folder::
|
|||||||
|
|
||||||
You can use the `static` option to get a template closer to the one of the
|
You can use the `static` option to get a template closer to the one of the
|
||||||
homepage that is better suited for a static page. You'll need to specify
|
homepage that is better suited for a static page. You'll need to specify
|
||||||
"public: false" if you don't want to list this page on the homepage. On
|
"public: false" if you don't want to list this page on the homepage. If
|
||||||
case you didn't specified "public: false" you'll **need** to specify a "cover:"
|
you don't specify "public: false" you **need** to specify a "cover:"
|
||||||
entry like any other gallery.
|
entry like any other gallery.
|
||||||
|
|
||||||
**NOTE**: expect the "static: " option to disappear quite soon for a more
|
**NOTE**: expect the "static: " option to disappear quite soon for a more
|
||||||
generic approach to "choose your page style".
|
generic approach to "choose your page style".
|
||||||
|
|
||||||
|
|
||||||
Global settings
|
Global settings
|
||||||
_______________
|
_______________
|
||||||
|
|
||||||
Global settings can be set in your root `settings.yaml`, under the `settings` key.
|
Global settings can be put in your root `settings.yaml`, under the `settings` key.
|
||||||
|
|
||||||
GM
|
GM
|
||||||
~~
|
~~
|
||||||
|
|
||||||
Currently a `gm` settings key allows to customize the default GraphicsMagick's behavior. It looks like ::
|
Currently a `gm` setting key allows to customize the default GraphicsMagick's behaviour. It looks like::
|
||||||
|
|
||||||
title: Gallery
|
title: Gallery
|
||||||
settings:
|
settings:
|
||||||
@ -72,17 +69,17 @@ Currently a `gm` settings key allows to customize the default GraphicsMagick's b
|
|||||||
The meaning of the currently supported GraphicsMagick's settings is as follows:
|
The meaning of the currently supported GraphicsMagick's settings is as follows:
|
||||||
|
|
||||||
* `quality` allows to customize the compression level of thumbnails (between 0 and 100)
|
* `quality` allows to customize the compression level of thumbnails (between 0 and 100)
|
||||||
* `auto-orient` change the orientation of pictures so they are upright (based on corresponding EXIF tags if present)
|
* `auto-orient` changes the orientation of pictures so they are upright (based on corresponding EXIF tags if present)
|
||||||
* `strip` removes all profiles and text attributes from the image (good for privacy, slightly reduce file size)
|
* `strip` removes all profiles and text attributes from the image (good for privacy, slightly reduce file size)
|
||||||
* `resize` can be used to resize the fullsize version of pictures. by default, input image size is preserved
|
* `resize` can be used to resize the full-size version of pictures. By default, input image size is preserved
|
||||||
* `progressive` converts classic baseline JPEG files to progressive JPEG, and interlace PNG/GIF files (improve the page loading impression, slightly reduce file size)
|
* `progressive` converts classic baseline JPEG files to progressive JPEG, and interlaces PNG/GIF files (improves the page loading impression, slightly reduces file size)
|
||||||
|
|
||||||
Any GraphicsMagick setting can be customized on a per-image basis (either `cover` or `image`, see below).
|
Any GraphicsMagick setting can be customized on a per-image basis (either `cover` or `image`, see below).
|
||||||
|
|
||||||
Video convertor
|
Video converter
|
||||||
~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Prosopopée can use ffmpeg or libav and if you want you can customize the settings::
|
Prosopopée can use ffmpeg or libav and each can be configured if needed::
|
||||||
|
|
||||||
title: Gallery
|
title: Gallery
|
||||||
settings:
|
settings:
|
||||||
@ -99,16 +96,16 @@ Prosopopée can use ffmpeg or libav and if you want you can customize the settin
|
|||||||
|
|
||||||
The meaning of the currently supported FFMEG or LIBAV's settings is as follows :
|
The meaning of the currently supported FFMEG or LIBAV's settings is as follows :
|
||||||
|
|
||||||
* `binary` the binary you will use for convert the video (ffmpeg or avconv)
|
* `binary` sets the binary to use to convert the video (ffmpeg or avconv)
|
||||||
* `loglevel` Set the logging level used by the library
|
* `loglevel` sets the logging level used by the library
|
||||||
* `format` Force input or output file format
|
* `format` forces input or output file format
|
||||||
* `resolution` Set frame size
|
* `resolution` sets frame size
|
||||||
* `vbitrate` Set video bitrate
|
* `vbitrate` sets video bitrate
|
||||||
* `abitrate` Set audio bitrate
|
* `abitrate` sets audio bitrate
|
||||||
* `audio` Set the audio codec
|
* `audio` sets the audio codec
|
||||||
* `video` Set the video codec
|
* `video` sets the video codec
|
||||||
* `extension` Set the extension of output file
|
* `extension` sets the extension of output file
|
||||||
* `other` Set different options if you need more
|
* `other` sets different options if you need more
|
||||||
|
|
||||||
example for MP4::
|
example for MP4::
|
||||||
|
|
||||||
@ -121,39 +118,38 @@ example for MP4::
|
|||||||
video: "libx264"
|
video: "libx264"
|
||||||
extension: mp4
|
extension: mp4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Light Mode
|
Light Mode
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
||||||
For enabled the light mode::
|
To enable the light mode::
|
||||||
|
|
||||||
title: Gallery
|
title: Gallery
|
||||||
settings:
|
settings:
|
||||||
light_mode: true
|
light_mode: true
|
||||||
|
|
||||||
With this option Prospopee make a sub directory with light version of your gallery.
|
With this option Prospopee makes a subdirectory with light version of your gallery.
|
||||||
This light gallery use less JS, picture in low size etc..
|
This light gallery uses less JS, pictures in low size, etc.
|
||||||
|
|
||||||
For access to this light gallery, add /light in the url of the gallery.
|
To access this light gallery, add /light at the end of the URL of the gallery.
|
||||||
|
|
||||||
If you want only light theme you can see below.
|
If you want only light theme, see :ref:`themes`.
|
||||||
|
|
||||||
Night Mode
|
Night Mode
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
||||||
For enabled the night mode only available for exposure theme (default theme)::
|
To enable the night mode, which is only available for exposure theme (default theme)::
|
||||||
|
|
||||||
title: Gallery
|
title: Gallery
|
||||||
settings:
|
settings:
|
||||||
night_mode: true
|
night_mode: true
|
||||||
|
|
||||||
After that you will can choose dark theme or light theme during visiting the website.
|
After that you will be able to choose between dark theme or light theme when visiting the website.
|
||||||
|
|
||||||
|
.. themes:
|
||||||
Themes
|
Themes
|
||||||
~~~~~~
|
~~~~~~
|
||||||
|
|
||||||
Prosopopée has a support for various themes. As for now, only 3 themes are available:
|
Prosopopée supports different themes. As for now, only 3 themes are available:
|
||||||
|
|
||||||
* the default one called "exposure"
|
* the default one called "exposure"
|
||||||
* "material" based on materialcss
|
* "material" based on materialcss
|
||||||
@ -167,12 +163,11 @@ To specify the theme, add the "theme" key in your "settings" key or your
|
|||||||
settings:
|
settings:
|
||||||
theme: material
|
theme: material
|
||||||
|
|
||||||
|
|
||||||
Licence
|
Licence
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
|
|
||||||
By default Prosopopée use CC-BY-SA for all the content, if you want use a another licence
|
By default Prosopopée uses CC-BY-SA for all the content. If you want to use another licence,
|
||||||
you need add key in **root** settings.yaml. For example::
|
you need to add a "licence" key in **root** settings.yaml. For example::
|
||||||
|
|
||||||
title: Gallery
|
title: Gallery
|
||||||
licence:
|
licence:
|
||||||
@ -182,68 +177,67 @@ you need add key in **root** settings.yaml. For example::
|
|||||||
Share
|
Share
|
||||||
~~~~~
|
~~~~~
|
||||||
|
|
||||||
If you want enable the share content on social network, add key in **root** settings.yaml. For example:
|
If you want to enable content sharing on social networks, add the "share" key in **root** settings.yaml. For example::
|
||||||
By defaut you can share on facebook, twitter, pinterest, google+::
|
|
||||||
|
|
||||||
title: Gallery
|
title: Gallery
|
||||||
share: true
|
share: true
|
||||||
url: "http://prosopopee.com"
|
url: "http://prosopopee.com"
|
||||||
|
|
||||||
|
By default you can share on facebook, twitter, pinterest, google+.
|
||||||
|
|
||||||
RSS
|
RSS
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
For activate the RSS you need add this key in **root** settings.yaml::
|
To activate the RSS feed you need to add the "rss" key in **root** settings.yaml::
|
||||||
|
|
||||||
title: Gallery
|
title: Gallery
|
||||||
rss: true
|
rss: true
|
||||||
url: "http://prosopopee.com"
|
url: "http://prosopopee.com"
|
||||||
|
|
||||||
|
|
||||||
Open Graph Meta
|
Open Graph Meta
|
||||||
~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
For activate the Open Graph Meta you need add this key in **root** settings.yaml::
|
To activate the Open Graph Meta you need to add the "og" key in **root** settings.yaml::
|
||||||
|
|
||||||
title: Sur les chemins
|
title: Sur les chemins
|
||||||
settings:
|
settings:
|
||||||
og: true
|
og: true
|
||||||
|
|
||||||
Optionnal: You need use description and lang key in settings gallery.
|
You can also specify a description and a language ("lang" key) for a gallery.
|
||||||
|
|
||||||
for more informations about Open Graph http://ogp.me/
|
For more information about Open Graph http://ogp.me/
|
||||||
|
|
||||||
Deployment
|
Deployment
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
||||||
If you wanna configure the deployement of your website by rsync::
|
If you want to configure the deployment of your website with rsync::
|
||||||
|
|
||||||
title: Gallery
|
title: Gallery
|
||||||
settings:
|
settings:
|
||||||
deploy:
|
deploy:
|
||||||
ssh: true (optional need for ssh)
|
ssh: true (optional, for ssh)
|
||||||
username: username (optional need for ssh)
|
username: username (optional, for ssh)
|
||||||
hostname: server.com (optional need for ssh)
|
hostname: server.com (optional, for ssh)
|
||||||
dest: /var/www/website/build/
|
dest: /var/www/website/build/
|
||||||
others: --delete-afte (optional)
|
others: --delete-after (optional)
|
||||||
|
|
||||||
Reverse
|
Reverse order
|
||||||
~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
Normally Prosopopee build the gallery index in Anti-chronological, if you wanna reverse it::
|
Normally Prosopopee builds the gallery index in anti-chronological. If you want to have it in chronological order, use the "reverse" key::
|
||||||
|
|
||||||
settings:
|
settings:
|
||||||
reverse: true
|
reverse: true
|
||||||
|
|
||||||
Is option can be use too in gallery settings if you use multi level gallery::
|
This option can also be used in a gallery settings.yaml if you use multi-level galleries::
|
||||||
|
|
||||||
title: Multi level gallery
|
title: Multi level gallery
|
||||||
reverse: true
|
reverse: true
|
||||||
|
|
||||||
|
|
||||||
Password access
|
Password access
|
||||||
~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
If you wanna protect all the website by password::
|
If you want to protect all the website by password::
|
||||||
|
|
||||||
title: Gallery
|
title: Gallery
|
||||||
password: my_super_password
|
password: my_super_password
|
||||||
@ -254,10 +248,10 @@ Gallery settings.yaml
|
|||||||
This settings.yaml will describe:
|
This settings.yaml will describe:
|
||||||
|
|
||||||
* the title, subtitle and cover picture of your gallery that will be used on the homepage
|
* the title, subtitle and cover picture of your gallery that will be used on the homepage
|
||||||
* the tags is optional
|
* the tags, which are optional
|
||||||
* if your gallery is public (if not, it will still be built but won't appear on the homepage)
|
* if your gallery is public (if not, it will still be built but won't appear on the homepage)
|
||||||
* the date of your gallery: this will be used on the homepage since **galleries are sorted anti chronologically** on it
|
* the date of your gallery that will be used on the homepage since **galleries are sorted anti-chronologically**
|
||||||
* the list of sections that will contains your gallery. A section will represent either one picture, a group of pictures or text. The different kind of sections will be explained in the next README section.
|
* the list of sections that represents your gallery. A section represents either one picture, a group of pictures or text. The different kinds of sections will be explained in the next README section.
|
||||||
|
|
||||||
Example
|
Example
|
||||||
_______
|
_______
|
||||||
@ -307,7 +301,7 @@ And here is an example of a **private** gallery (notice the ``public`` keyword):
|
|||||||
Advanced settings
|
Advanced settings
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
Images handling
|
Image handling
|
||||||
_______________
|
_______________
|
||||||
|
|
||||||
Images go into the `cover` or `image` keys.
|
Images go into the `cover` or `image` keys.
|
||||||
@ -332,10 +326,9 @@ by::
|
|||||||
Password access
|
Password access
|
||||||
_______________
|
_______________
|
||||||
|
|
||||||
You can protect access of gallery with password::
|
You can restrict access to a gallery with a password::
|
||||||
|
|
||||||
title: Gallery title
|
title: Gallery title
|
||||||
sub_title: Gallery sub-title
|
sub_title: Gallery sub-title
|
||||||
password: my_super_password
|
password: my_super_password
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,9 +1,8 @@
|
|||||||
Prosopopee
|
Prosopopee
|
||||||
##########
|
##########
|
||||||
|
|
||||||
|
More or less a small clone of exposure.co in form of a static website generator.
|
||||||
More or less a small clone of exposure.co in form of a static generator.
|
For those of you who don't know what exposure.co is, it allows you to tell a story with your pictures.
|
||||||
For those of you who don't know what exposure.co is, this allows you to tell a story with your pictures.
|
|
||||||
|
|
||||||
You can find example usages here:
|
You can find example usages here:
|
||||||
|
|
||||||
|
@ -7,16 +7,16 @@ Requirements
|
|||||||
Ubuntu/Debian
|
Ubuntu/Debian
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
Installation needs Python, pip and virtualenv::
|
We need Python, pip and virtualenv::
|
||||||
|
|
||||||
apt-get install python-pip python-virtualenv
|
apt-get install python-pip python-virtualenv
|
||||||
|
|
||||||
Gallery building needs graphicsmagick library::
|
and graphicsmagick library for building the gallery::
|
||||||
|
|
||||||
# graphicsmagick need to have a version of gcc-5-base in 5.3.1
|
# graphicsmagick requires to have the 5.3.1 version of gcc-5-base
|
||||||
apt-get install graphicsmagick
|
apt-get install graphicsmagick
|
||||||
|
|
||||||
An video convertor like ffmpeg::
|
A video converter like ffmpeg::
|
||||||
|
|
||||||
apt-get install ffmpeg
|
apt-get install ffmpeg
|
||||||
|
|
||||||
@ -24,32 +24,29 @@ or::
|
|||||||
|
|
||||||
apt-get install libav-tools
|
apt-get install libav-tools
|
||||||
|
|
||||||
The deployment need rsync::
|
For deployment, we need rsync::
|
||||||
|
|
||||||
apt-get install rsync
|
apt-get install rsync
|
||||||
|
|
||||||
Mac
|
Mac
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
Installation needs Brew::
|
We need Brew::
|
||||||
|
|
||||||
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
|
|
||||||
|
and graphicsmagick library for building the gallery::
|
||||||
Gallery building needs graphicsmagick library::
|
|
||||||
|
|
||||||
brew install graphicsmagick
|
brew install graphicsmagick
|
||||||
|
|
||||||
|
A video converter like ffmpeg::
|
||||||
An video convertor like ffmpeg::
|
|
||||||
|
|
||||||
brew install ffmpeg
|
brew install ffmpeg
|
||||||
|
|
||||||
The deployment need rsync::
|
For deployment, we need rsync::
|
||||||
|
|
||||||
brew install rsync
|
brew install rsync
|
||||||
|
|
||||||
|
|
||||||
Installation in virtualenv
|
Installation in virtualenv
|
||||||
--------------------------
|
--------------------------
|
||||||
|
|
||||||
@ -73,5 +70,4 @@ Run::
|
|||||||
|
|
||||||
docker run --rm -v $(pwd):/site prosopopee
|
docker run --rm -v $(pwd):/site prosopopee
|
||||||
|
|
||||||
|
|
||||||
More informations https://hub.docker.com/r/beudbeud/prosopopee/
|
More informations https://hub.docker.com/r/beudbeud/prosopopee/
|
||||||
|
@ -3,20 +3,20 @@ Sections
|
|||||||
|
|
||||||
A gallery is composed of a succession of sections as you can see on this `wonderfully
|
A gallery is composed of a succession of sections as you can see on this `wonderfully
|
||||||
totally uninteresting example
|
totally uninteresting example
|
||||||
gallery <http://psycojoker.github.io/prosopopee/first_gallery/>`_ the gallery is
|
gallery <http://psycojoker.github.io/prosopopee/first_gallery/>`_. This gallery is
|
||||||
composed of 5 sections:
|
split in 5 sections:
|
||||||
|
|
||||||
* a full screen picture with text written on it
|
* a full screen picture with text written on it
|
||||||
* a picture with borders around it
|
* a picture with borders around it
|
||||||
* a group of 5 pictures
|
* a group of 5 pictures
|
||||||
* and a fullscreen picture without text on it this time
|
* and a full-screen picture without text on it this time
|
||||||
|
|
||||||
In your settings.yaml, a section will **always** have a ``type`` key
|
In your settings.yaml, a section will **always** have a ``type`` key
|
||||||
that will describe its kind and additional data. Underneath, the
|
that will describe its kind and additional data. Underneath, the
|
||||||
``type`` key is actually the name of an HTML template and the other
|
``type`` key is actually the name of an HTML template and the other
|
||||||
data will be passed to this template.
|
data will be passed to this template.
|
||||||
|
|
||||||
You can find all the sections templates here:
|
You can find all the section templates here:
|
||||||
|
|
||||||
https://github.com/Psycojoker/prosopopee/tree/master/prosopopee/themes/exposure/templates/sections
|
https://github.com/Psycojoker/prosopopee/tree/master/prosopopee/themes/exposure/templates/sections
|
||||||
|
|
||||||
@ -46,8 +46,7 @@ Without text::
|
|||||||
- type: full-picture
|
- type: full-picture
|
||||||
image: big_picture.jpg
|
image: big_picture.jpg
|
||||||
|
|
||||||
|
If you want a fixed background you can use this option (only with the exposure theme)::
|
||||||
If you want fixed backgroup use can use this optionnal option (only with the exposure theme)::
|
|
||||||
|
|
||||||
- type: full-picture
|
- type: full-picture
|
||||||
fixed: true
|
fixed: true
|
||||||
@ -55,7 +54,7 @@ If you want fixed backgroup use can use this optionnal option (only with the exp
|
|||||||
Bordered picture
|
Bordered picture
|
||||||
________________
|
________________
|
||||||
|
|
||||||
This displays a centered picture that is surrounded by white (the background) as
|
This displays a centred picture that is surrounded by white (the background) as
|
||||||
shown in the second position of the `example
|
shown in the second position of the `example
|
||||||
gallery <http://psycojoker.github.io/prosopopee/first_gallery/>`_.
|
gallery <http://psycojoker.github.io/prosopopee/first_gallery/>`_.
|
||||||
|
|
||||||
@ -81,16 +80,16 @@ gallery <http://psycojoker.github.io/prosopopee/first_gallery/>`_::
|
|||||||
- image4.jpg
|
- image4.jpg
|
||||||
- image5.jpg
|
- image5.jpg
|
||||||
|
|
||||||
The first level `-` represent a line of pictures.
|
The first level `-` represents a row of pictures.
|
||||||
The second level `-` represent the list of images in this line.
|
The second level `-` represents the list of images in this line.
|
||||||
|
|
||||||
**Know bug**: the images are left aligned, so if you don't put enough images on
|
**Known bug**: the images are left aligned, so if you don't put enough images on
|
||||||
a line, you'll have white space on the right.
|
a row, you'll have some white space on the right.
|
||||||
|
|
||||||
Text
|
Text
|
||||||
____
|
____
|
||||||
|
|
||||||
This displays some centered text as shown on the third position of the `example
|
This displays some centred text as shown on the third position of the `example
|
||||||
gallery <http://psycojoker.github.io/prosopopee/first_gallery/>`_. HTML is
|
gallery <http://psycojoker.github.io/prosopopee/first_gallery/>`_. HTML is
|
||||||
allowed inside the text.
|
allowed inside the text.
|
||||||
|
|
||||||
@ -102,7 +101,7 @@ How to use it::
|
|||||||
Paragraph
|
Paragraph
|
||||||
_________
|
_________
|
||||||
|
|
||||||
This displays a h2 title followed by text. HTML is allowed inside of the text.
|
This displays a h2 title followed by text. HTML is allowed inside the text.
|
||||||
If no title is declared, a separator is added.
|
If no title is declared, a separator is added.
|
||||||
|
|
||||||
How to use it::
|
How to use it::
|
||||||
@ -111,7 +110,7 @@ How to use it::
|
|||||||
title: the title
|
title: the title
|
||||||
text: Some text, HTML <b>is allowed</b>.
|
text: Some text, HTML <b>is allowed</b>.
|
||||||
|
|
||||||
Since 0.5 you can add a floating image in paragraph::
|
Since version 0.5 you can add a floating image in the paragraph::
|
||||||
|
|
||||||
- type: paragraph
|
- type: paragraph
|
||||||
title: the title
|
title: the title
|
||||||
@ -120,12 +119,12 @@ Since 0.5 you can add a floating image in paragraph::
|
|||||||
float: right
|
float: right
|
||||||
size: 150px
|
size: 150px
|
||||||
|
|
||||||
By default if you don't set float and size the image will be on left with a size of 250px
|
By default if you don't set float and size the image will be on left with a size of 250px.
|
||||||
|
|
||||||
HTML
|
HTML
|
||||||
____
|
____
|
||||||
|
|
||||||
This section is for raw html that will be centered (for example: inlining an OSM iframe).
|
This section is for raw html that will be centred (for example: inlining an OSM iframe).
|
||||||
|
|
||||||
How to use it::
|
How to use it::
|
||||||
|
|
||||||
@ -135,8 +134,7 @@ How to use it::
|
|||||||
Panorama
|
Panorama
|
||||||
________
|
________
|
||||||
|
|
||||||
|
This displays a very large picture that can be drag-and-dropped.
|
||||||
This displays a very large picture with a drag-and-drop possibility on it.
|
|
||||||
|
|
||||||
How to use it::
|
How to use it::
|
||||||
|
|
||||||
@ -146,18 +144,17 @@ How to use it::
|
|||||||
Audio
|
Audio
|
||||||
_____
|
_____
|
||||||
|
|
||||||
This section is for add audio file with HTML5 player.::
|
This section is for adding an audio file playable with the HTML5 player.::
|
||||||
|
|
||||||
- type: audio
|
- type: audio
|
||||||
title: Title of song
|
title: Title of song
|
||||||
image: song.ogg
|
image: song.ogg
|
||||||
color: "#000" (optional)
|
color: "#000" (optional)
|
||||||
|
|
||||||
|
|
||||||
Author
|
Author
|
||||||
______
|
______
|
||||||
|
|
||||||
This section is for describe the author of the story::
|
This section is for describing the author of the story::
|
||||||
|
|
||||||
- type: author
|
- type: author
|
||||||
name: Adrien Beudin
|
name: Adrien Beudin
|
||||||
@ -170,7 +167,7 @@ This section is for describe the author of the story::
|
|||||||
Iframe
|
Iframe
|
||||||
______
|
______
|
||||||
|
|
||||||
This section make your embeds iframe responsive::
|
This section makes your embed iframes responsive::
|
||||||
|
|
||||||
- type: iframe
|
- type: iframe
|
||||||
name: <iframe width="560" height="315" src="https://www.youtube.com/embed/nshFXWEKxs4" frameborder="0" allowfullscreen></iframe>
|
name: <iframe width="560" height="315" src="https://www.youtube.com/embed/nshFXWEKxs4" frameborder="0" allowfullscreen></iframe>
|
||||||
@ -178,7 +175,7 @@ This section make your embeds iframe responsive::
|
|||||||
Quote
|
Quote
|
||||||
_____
|
_____
|
||||||
|
|
||||||
For use quoteblock easily::
|
To use quote blocks easily::
|
||||||
|
|
||||||
- type: quote
|
- type: quote
|
||||||
text: This is a quote
|
text: This is a quote
|
||||||
@ -186,12 +183,12 @@ For use quoteblock easily::
|
|||||||
Advanced options
|
Advanced options
|
||||||
________________
|
________________
|
||||||
|
|
||||||
Images caption
|
Image caption
|
||||||
~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~
|
||||||
|
|
||||||
Prosopopée has a support of caption in images, you can use it on bordered-picture and pictures-group.
|
Prosopopée supports captions for images, you can use it on bordered-picture and pictures-group.
|
||||||
|
|
||||||
Exemple on bordered-picture::
|
Example on bordered-picture::
|
||||||
|
|
||||||
- type: bordered-picture
|
- type: bordered-picture
|
||||||
image: another_picture.jpg
|
image: another_picture.jpg
|
||||||
@ -213,15 +210,15 @@ And on pictures-group::
|
|||||||
Background settings
|
Background settings
|
||||||
~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
For all section you can define the background.
|
For all sections, you can define the background.
|
||||||
|
|
||||||
Exemple for background color::
|
Example for background colour::
|
||||||
|
|
||||||
- type: bordered-picture
|
- type: bordered-picture
|
||||||
background: "#555"
|
background: "#555"
|
||||||
image: another_picture.jpg
|
image: another_picture.jpg
|
||||||
|
|
||||||
or you can use picture::
|
or you can use a picture::
|
||||||
|
|
||||||
- type: text
|
- type: text
|
||||||
background: "url(background_picture.jpg)"
|
background: "url(background_picture.jpg)"
|
||||||
@ -230,9 +227,9 @@ or you can use picture::
|
|||||||
Text color settings
|
Text color settings
|
||||||
~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
For text, html and paragraph section you can define the text color.
|
For text, html and paragraph sections, you can also define the text colour.
|
||||||
|
|
||||||
Exemple::
|
Example::
|
||||||
|
|
||||||
- type: bordered-picture
|
- type: bordered-picture
|
||||||
color: "#333"
|
color: "#333"
|
||||||
@ -240,14 +237,14 @@ Exemple::
|
|||||||
Video support
|
Video support
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
For bordered-picture, full-picture and pictures-group it's possible to use
|
For bordered-picture, full-picture and pictures-group, it's possible to use
|
||||||
video instead of pictures. You have to specify with the "type" key that it's a
|
video instead of pictures. You have to specify with the "type" key that it's a
|
||||||
video.
|
video.
|
||||||
|
|
||||||
The video will be converted using either ffmpeg or avconv (depending on the one
|
The video will be converted using either ffmpeg or avconv (depending on the one
|
||||||
specified in the settings, ffmpeg being the default one).
|
specified in the settings, ffmpeg being the default one).
|
||||||
|
|
||||||
Exemple for pictures-group::
|
Example for pictures-group::
|
||||||
|
|
||||||
- type: pictures-group
|
- type: pictures-group
|
||||||
images:
|
images:
|
||||||
@ -260,7 +257,7 @@ Exemple for pictures-group::
|
|||||||
- image3.jpeg
|
- image3.jpeg
|
||||||
- image4.jpeg
|
- image4.jpeg
|
||||||
|
|
||||||
Exemple for bordered-picture::
|
Example for bordered-picture::
|
||||||
|
|
||||||
- type: bordered-picture
|
- type: bordered-picture
|
||||||
image:
|
image:
|
||||||
@ -279,7 +276,7 @@ And for full-picture::
|
|||||||
date: 2016-03-11
|
date: 2016-03-11
|
||||||
date_end: 2016-03-25
|
date_end: 2016-03-25
|
||||||
|
|
||||||
You can also use a video for a gallery cover::
|
You can also use a video as a gallery cover::
|
||||||
|
|
||||||
title: pouet
|
title: pouet
|
||||||
sub_title: plop
|
sub_title: plop
|
||||||
|
@ -4,19 +4,18 @@ Theming
|
|||||||
Custom css and js
|
Custom css and js
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
You can add easily css code and js code. You need create custom.css or custom.js
|
You can easily add css code and js code. You just need to create a custom.css or custom.js
|
||||||
in root directory.
|
in root directory.
|
||||||
|
|
||||||
Override template
|
Override template
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
If you wanna override template, you need create a "templates" directory and create your own template.
|
If you want to override a template, you need to create a "templates" directory and add your own template.
|
||||||
|
|
||||||
* home page : index.html
|
* home page : index.html
|
||||||
* gallery page: gallery-index.html
|
* gallery page: gallery-index.html
|
||||||
|
|
||||||
And for override sections you need create file in "templates/sections".
|
And to override sections you need to create a file in "templates/sections".
|
||||||
|
|
||||||
|
|
||||||
Create theme
|
Create theme
|
||||||
------------
|
------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user