diff options
Diffstat (limited to 'layouts/_default/single.gmi')
-rw-r--r-- | layouts/_default/single.gmi | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi index c9b6896..5c470ab 100644 --- a/layouts/_default/single.gmi +++ b/layouts/_default/single.gmi @@ -37,8 +37,9 @@ {{ $chunk_refs := findRESubmatch `!?\[[\t ]*(.+?)[\t ]*\]\([\t ]*(.+?)(?:[\t ]+"(.+?)")?[\t ]*\)` $rendered_text -}} {{ range $chunk_refs -}} + {{ $ref_index = add $ref_index 1 -}} {{ $chunk_ref := dict - "index" (add $ref_index 1) + "index" $ref_index "text" (index . 1) "link" (index . 2) "title" (index . 3) |