diff options
author | Justin Berthault <justin.berthault@zaclys.net> | 2017-12-06 10:38:33 +0300 |
---|---|---|
committer | Justin Berthault <justin.berthault@zaclys.net> | 2017-12-06 10:38:33 +0300 |
commit | e26f0ff5754cbca6f937914139600a2e252b38ae (patch) | |
tree | dd3d2de732fc1adae30d8f21ab4dda4479122274 /README.md | |
parent | 4f226e88120a9f603aec05941845c2454995c30b (diff) |
Update README
- Featherlight > BaguetteBox
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -12,7 +12,7 @@ As of today **Huginn** supports : - Related Content - Rss feeds (tweaked layout to allow full-text rendering) - Code Highlighting powered by Pygments (might need to install python's pygments package on your computer) - - Javascript lightbox powered by Featherlight + - Javascript lightbox powered by [baguetteBox.js](https://github.com/feimosi/baguetteBox.js) - A `lightbox` shortcode for simple one-image display (activated in frontmatter with `lightbox = True`) - A `gallery` shortcode to display all images in a directory(activated in frontmatter with `gallery = True`) - Displaying a link and the name of a song you were listening at while writing a post (activated in frontmatter with `song: [title](link)`) @@ -26,7 +26,7 @@ As of today **Huginn** supports : The `lightbox` shortcode is pretty simple and looks like this : ``` {{- $thumb := .Get "src" | default (printf "%s." ("-thumb") | replace (.Get "img") ".") }} -<a href={{ .Get "img" }} data-featherlight="{{ .Get "img" }}"> +<a href={{ .Get "img" }}> <img class="thumbnail {{ .Get "align" }}" src="{{ $thumb }}"> </a> ``` @@ -59,7 +59,7 @@ The `gallery` shortcode is even more simplier than the previous one. All you hav {{- $thumbexists := where $files "Name" $thumb }} {{- $thumbURL := print "/img/" ($.Get "dir") "/" $thumb | absURL }} <div class="gallery-item"> - <a href="{{ $linkURL }}" data-featherlight-gallery="#gallery"> + <a href="{{ $linkURL }}" > <img class="thumbnail" src="{{ $thumbURL }}"> </a> </div> |