diff options
author | Vincent Tam <sere@live.hk> | 2019-05-20 22:18:35 +0300 |
---|---|---|
committer | Vincent Tam <sere@live.hk> | 2019-05-20 22:18:35 +0300 |
commit | 37c259fc127f562561d5c90c145b61f90eee2070 (patch) | |
tree | 1c5438ee17858a49a22809c93871a94078ee8943 /README.md | |
parent | 4dea197f5b9aed929473f2f99e4720f8e48c1d20 (diff) |
Formattage de README encore
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -15,7 +15,7 @@ As of today **Huginn** supports : - JavaScript lightbox powered by [baguetteBox.js](https://github.com/feimosi/baguetteBox.js) - A `lightbox` shortcode for simple one-image display - A `gallery` partial to display a nice gallery at the end of your post - - Displaying a link and the name of a song you were listening at while writing a post (activated in front-matter with `song: [title](link)`) + - Displaying a link and the name of a song you were listening at while writing a post (activated in front-matter with `song: [title](link)`) - Comments powered by [Isso](https://posativ.org/isso/) for now. A parameter in `config.yaml` is used to specify Isso server `{{ .Site.Params.isso_server }}` @@ -33,7 +33,7 @@ The `lightbox` shortcode is pretty simple and looks like this: {{ $img := (.Page.Resources.ByType "image").GetMatch ( printf "images/lightbox/%s*" (.Get "img")) }} {{ $align := (.Get "align") }} {{ .Scratch.Set "image" ($img.Resize "256x q80") }} -{{ $scaled := .Scratch.Get "image" }} +{{ $scaled := .Scratch.Get "image" }} <a href="{{ $img.RelPermalink }}"> <img class="thumbnail {{ with $align }}{{ . }}{{ end }}" src="{{ $scaled.Permalink }}"> </a> |