From f9794e9f09b082f79f1aae69e6be284c7c8cd2ef Mon Sep 17 00:00:00 2001 From: beckerjohannes <56342691+beckerjohannes@users.noreply.github.com> Date: Fri, 6 Mar 2020 20:57:33 +0100 Subject: [PATCH] feat: add ID to figures to make them linkable (#1475) Generates linkable IDs for figures by anchorizing the caption and namespacing the figure ID by prefixing it with `figure-` to help prevent conflicts with other existing IDs. --- layouts/shortcodes/figure.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/figure.html b/layouts/shortcodes/figure.html index 663273e0..2e8a48c6 100644 --- a/layouts/shortcodes/figure.html +++ b/layouts/shortcodes/figure.html @@ -18,7 +18,7 @@ {{/* Get caption. Support legacy `title` option. */}} {{ $caption := .Get "title" | default (.Get "caption") | default "" }} - + {{ if $lightbox }}