Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/2-REC/hugo-myportfolio-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek <42170307+2-REC@users.noreply.github.com>2019-02-11 10:26:43 +0300
committerGitHub <noreply@github.com>2019-02-11 10:26:43 +0300
commit4b5db6230ced1b69feeb0a8b1a796fda35a8cc3b (patch)
treea6d9dda5c2e105b9254fc412af886f61bac03de0
parente8b0f6cdd4efad38d6e1c633dda458f1c67a7732 (diff)
Updated comments (input parameters info)
-rw-r--r--layouts/partials/gallery.html53
1 files changed, 25 insertions, 28 deletions
diff --git a/layouts/partials/gallery.html b/layouts/partials/gallery.html
index e8f2084..fd5e925 100644
--- a/layouts/partials/gallery.html
+++ b/layouts/partials/gallery.html
@@ -2,39 +2,36 @@
Input Parameters:
- Mandatory:
- "page": Page
- - $.Page.Scratch => $.page.Scratch
- - .Site.BaseURL => $.page.Site.BaseURL
- - $.Page.Dir => $.page.Dir
+ - $.Page.Scratch => $.page.Scratch
+ - .Site.BaseURL => $.page.Site.BaseURL
+ - $.Page.Dir => $.page.Dir
- Optional:
- "dir": String (directory)
- - .Get "dir" => $.dir (if defined, else using ".Inner")
+ - .Get "dir" => $.dir (if defined, else using ".Inner")
- "static": Boolean
- - $.Get "static" => $.static (if defined, else "false" by default)
+ - $.Get "static" => $.static (if defined, else "false" by default)
- "thumb": String (suffix)
- - $.Get "thumb" => $.thumb (if defined, else "-thumb" by default)
+ - $.Get "thumb" => $.thumb (if defined, else "-thumb" by default)
+ - "caption_position": Enum (position: "bottom", "center", "none")
+ - .Get "caption-position" => $.caption_position (if defined, else "bottom" by default)
+ - "caption_effect": Enum (effect: "slide", "fade", "none")
+ - .Get "caption-effect" => $.caption_effect (if defined, else "slide" by default)
+ - "hover_effect": Enum (effect: "zoom", "grow", "shrink", "slideup", "slidedown", "none")
+ - .Get "hover-effect" => $.hover_effect (if defined, else "zoom" by default)
+ - "hover_transition": Enum (transition: "none" or not set)
+ - .Get "hover-transition" => $.hover_transition (if defined, else "none" by default)
-(TODO: detail/document...)
-- "images_copyright"
-("MULTITEL")
-- images:
- - "src"
-("1.png")
- - "title"
-("Plan")
- - "copyright"
-(...)
-
-TODO:
-- .Get "caption-position"
- default "bottom"
-- .Get "caption-effect"
- default "slide"
-- .Get "hover-effect"
- default "zoom"
-- .Get "hover-transition"
-
-+captions...
-(& copyrights, etc.)
+New Input Parameters:
+- Optional:
+ - "images_copyright": String (copyright)
+ => General copyright for all images.
+ - "images": Array (images parameters)
+ - "src": String (filename) - MANDATORY
+ => Must correspond to an image in "dir" directory.
+ - "title": String (legend)
+ => Legend of the image.
+ - "copyright": String (copyright)
+ => Specific copyright for the image.
-->
<!--