hacks-guide-minimal-mistake.../_includes
Leo c2c05b9b67
Fix closing tag of figures without captions in lists (#2697)
When the figure helper is used in a list, which can be either ordered or
unordered, and no caption is specified, a line with text "</figure>"
will be shown below the figure on the rendered page.

This is because, if the '{% if include.caption %}' evaluates to false,
the lines between that 'if' statement and '{% endif %}' will be emptied,
not removed, so the block will be filled by empty lines.

HTML ignores redundant empty lines, but Markdown takes them seriously.
In addition, Markdown expects proper indentation of lines inside lists,
and the closing '</figure>' tag is not indented.  When combined, the
empty space and absence of indentation cause Markdown to process the
'</figure>' tag as a separate paragraph instead of an HTML tag, thus the
text for the tag is directly rendered on the page.

The fix for this issue is very simple: remove the empty space when
'include.caption' is false.  As described in
<https://shopify.github.io/liquid/basics/whitespace/>, this can be done
by adding hyphens to the 'if' and 'endif' tags.
2020-10-28 14:43:09 -04:00
..
analytics-providers remove unneeded type="text/javascript" (#2190) 2019-06-27 18:45:59 -04:00
comments-providers Replace custom comment hardcoded HTML with include 2020-06-02 22:33:08 -04:00
footer Add custom footer include 2016-03-21 14:11:39 -04:00
head https link to realfavicongenerator.net (#1539) 2018-02-21 07:41:00 -05:00
search Algolia search update (#2572) 2020-07-22 15:34:53 -04:00
analytics.html Add support for Google Analytics with global site tag (gtag.js) (#1563) 2018-03-12 19:27:42 -04:00
archive-single.html Refactor page meta (#2641) 2020-08-30 20:52:12 -04:00
author-profile-custom-links.html Add rel attribute to social media links in author profile and fotter (#1924) 2018-11-13 09:37:14 -05:00
author-profile.html Fix link for author name (#2575) 2020-07-23 12:11:03 -04:00
breadcrumbs.html Changed schema.org to secure links (https) (#1969) 2018-11-25 20:47:47 -05:00
browser-upgrade.html https link to browsehappy.com (#1343) 2017-11-12 17:07:49 -05:00
category-list.html Fix pound symbol not displaying properly for post categories and tags 2019-05-21 11:40:48 -04:00
comment.html Use %-d instead of %d (#2359) 2020-01-07 12:38:08 -05:00
comments.html Replace custom comment hardcoded HTML with include 2020-06-02 22:33:08 -04:00
documents-collection.html Hide hidden posts from listings (#2345) 2020-03-04 16:09:24 -05:00
feature_row Use relative_url and absolute_url where possible (#2387) 2020-03-06 15:37:07 -05:00
figure Fix closing tag of figures without captions in lists (#2697) 2020-10-28 14:43:09 -04:00
footer.html Add rel attribute to social media links in author profile and fotter (#1924) 2018-11-13 09:37:14 -05:00
gallery Use relative_url and absolute_url where possible (#2387) 2020-03-06 15:37:07 -05:00
group-by-array Liquid syntax error: "Expected end_of_string but found pipe in "name in __names | sort"" in group-by-array include 2017-09-04 21:21:14 -04:00
head.html Load Font Awesome CSS from jsDelivr CDN (#2583) 2020-07-02 08:08:45 -04:00
masthead.html Use relative_url and absolute_url where possible (#2387) 2020-03-06 15:37:07 -05:00
nav_list Use relative_url and absolute_url where possible (#2387) 2020-03-06 15:37:07 -05:00
page__date.html Move page date to own file (#2544) 2020-06-02 22:22:56 -04:00
page__hero.html Refactor page meta (#2641) 2020-08-30 20:52:12 -04:00
page__hero_video.html Enhance Bilibili video support (redo of #2522) (#2599) 2020-07-22 15:42:46 -04:00
page__meta.html Refactor page meta (#2641) 2020-08-30 20:52:12 -04:00
page__taxonomy.html Replace base_path with absolute_url filter where possible 2016-10-06 15:40:30 -04:00
paginator.html Use first_page_path from Paginate V2 if available (#2431) 2020-03-16 21:17:53 -04:00
post_pagination.html Replace absolute_url with relative_url 2018-03-20 11:35:36 -04:00
posts-category.html Hide hidden posts from listings (#2345) 2020-03-04 16:09:24 -05:00
posts-tag.html Hide hidden posts from listings (#2345) 2020-03-04 16:09:24 -05:00
scripts.html Load Font Awesome CSS from jsDelivr CDN (#2583) 2020-07-02 08:08:45 -04:00
seo.html Added article:author used by Pinterest (#2670) 2020-08-30 20:38:03 -04:00
sidebar.html Use relative_url and absolute_url where possible (#2387) 2020-03-06 15:37:07 -05:00
skip-links.html Remove extra { 2019-06-20 12:41:19 -04:00
social-share.html Remove Google+ 2019-03-05 18:53:30 -05:00
tag-list.html Fix pound symbol not displaying properly for post categories and tags 2019-05-21 11:40:48 -04:00
toc Upgrade Font Awesome to version 5 (#1446) 2018-01-04 14:27:27 -05:00
toc.html Update toc.html from allejo/jekyll-toc:master (#2355) 2020-01-07 12:36:05 -05:00
video Enhance Bilibili video support (redo of #2522) (#2599) 2020-07-22 15:42:46 -04:00