Commit graph

2511 commits

Author SHA1 Message Date
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
Michael Rose 50bd68e6d0
Update stale.yml 2020-10-28 09:20:07 -04:00
Michael Rose 187752b673
Update CONTRIBUTING.md 2020-10-23 13:39:22 -04:00
Michael Rose 052f3f786f
Update README.md 2020-10-23 13:37:42 -04:00
iBug ♦ d6444412c6
Fix dead link to "CI services" Jekyll (#2692)
* Fix #2635

* Update CHANGELOG and history
2020-09-21 10:28:18 -04:00
Michael Rose ab19c77ac9 Bump theme version 2020-09-07 10:08:23 -04:00
Michael Rose 526445bffe Release 4.20.2 💎 2020-09-07 10:07:29 -04:00
Michael Rose 8bec01b76d Fix broken link in documentation
Close #2677
2020-08-30 21:28:31 -04:00
Michael Rose e21035e62d Fix typo
Close #2678
2020-08-30 21:25:30 -04:00
Michael Rose 2fcb13a8cc Bump copyright year 2020-08-30 21:15:36 -04:00
Michael Rose 8cb95a7005 Update CHANGELOG and history 2020-08-30 20:53:16 -04:00
Michael Rose c6f10529a4
Refactor page meta (#2641)
* Rename include

* Add grid view test pages

* Rename `.post__meta-sep` and use CSS to add line break

* Improve collection grid archive

* Improve page grid archive

* Enable `grid`

* Don't show date icon if there is no `date` value

* Add blank line at EOF

* Add space

* Wrap date and reading time in named `span` elements
2020-08-30 20:52:12 -04:00
Michael Rose 7a6060a55a Merge branch 'master' of https://github.com/mmistakes/minimal-mistakes 2020-08-30 20:41:47 -04:00
Michael Rose 5b5b3ad4e0 Update CHANGELOG and history 2020-08-30 20:41:43 -04:00
Lars Olesen 24b4585084
Added article:author used by Pinterest (#2670) 2020-08-30 20:38:03 -04:00
Michael Rose b75f057a5e Update CHANGELOG and history 2020-08-30 20:31:49 -04:00
Johannes Ganzenmüller 92f94d5549
Removed duplicated CSS definitions (#2666) 2020-08-30 20:30:38 -04:00
iBug ♦ b7144931c7
Change "fa" to "fas" for Font Awesome 5 (#2649)
* main.js: fa -> fas for FA 5

* Update CHANGELOG and history
2020-08-14 15:21:38 -04:00
Michael Rose 5c8b220bf9 Update CHANGELOG and history 2020-08-04 12:59:52 -04:00
Michael Rose d57fe1de2c Fix entries_layout: grid
Close #2639
2020-08-04 12:59:44 -04:00
Michael Rose 5741539e17 Update remote_theme version 2020-08-04 12:34:53 -04:00
Michael Rose b4abce3b78 Release 4.20.1 💎 2020-08-04 12:33:22 -04:00
Michael Rose 53ad4d343a Fix grid entries_layout in home.html 2020-08-04 12:32:54 -04:00
Michael Rose 3135099203 Fix grammar 2020-08-04 11:26:26 -04:00
Michael Rose 95ba9242bf Update remote_theme 2020-08-04 11:22:09 -04:00
Michael Rose cb18aaa7a0 Release 4.20.0 💎 2020-08-04 11:18:04 -04:00
Michael Rose 6d1aea573c Remove extra back ticks 2020-08-04 11:12:05 -04:00
Michael Rose e4fbcf7383 Fix grammar 2020-08-04 10:52:49 -04:00
Michael Rose eb31e33365 Update CHANGELOG and history 2020-08-04 10:48:44 -04:00
Lim Jing Heng f15e02ea58
Show date of posts (#2526)
* add date to read-time.html

* add option for show_date, dynamic icon style

* change read-time to post__meta

* cleanup post__metal.html

* cleanup post__meta include variables

* put date before read time

* remove space in include variable

* allow customisation of post__meta separator

* add some documentation

* oops fix typo derp

* add post date image

* change page meta separator customisation to CSS
2020-08-04 10:39:01 -04:00
Michael Rose 5d85bf1912 Update CHANGELOG and history 2020-08-04 10:26:29 -04:00
Andrey Kartashov b093b52074
remove hidden posts from /posts (#2625) 2020-08-04 10:25:38 -04:00
iBug ♦ a695d7728f
Update documentation for #2621 (#2624)
* Update documentation for #2621

* Update CHANGELOG and history

* Update last_modified_at
2020-08-04 10:23:18 -04:00
iBug ♦ 83b4dba2f0
Update UI text for zh-CN and zh-TW (#2626)
* Update UI text for zh-CN and zh-TW

* Update CHANGELOG and history

Not touching last_modified_at this time - it's messy enough
2020-07-28 15:37:13 -04:00
Michael Rose 1f0b50044c
Update 10-layouts.md 2020-07-24 16:06:32 -04:00
Michael Rose f099739f42 Include documentation for home page grid view 2020-07-24 16:00:37 -04:00
Michael Rose cd7aa71ffc Merge branch 'master' of https://github.com/mmistakes/minimal-mistakes 2020-07-24 15:55:35 -04:00
Michael Rose 960d80dc6d Update CHANGELOG and history 2020-07-24 15:55:31 -04:00
Juan Ara 34ff24e31b
Configure entries layout list or grid (#2616)
* Configure entries layout `list` or `grid`

This allows to use grid layout on `page.entries_layout` on the home layout.

Included a break since when using grid the post images are too close to the horizontal line bellow `posts` text.

There's a entries div now surrounding the posts since the first row of the grid was having a slight padding on the left. The home now behaves like posts/categories/tags pages with grid but including the paginator.

For best results on desktop use `classes: wide` and `paginate: 4` on `_config.yml` (or multiples of 4 if you want more rows)

* Fix indent

* Archive subtitle leaves space on the bottom

* Now space is added through style
2020-07-24 15:53:21 -04:00
iBug ♦ d5d3863322
Use layout: none instead of null (#2617)
* Use layout: none instead of null

* Update CHANGELOG and history
2020-07-24 08:22:16 -04:00
Michael Rose bae1a2eb0d Update CHANGELOG and history 2020-07-23 12:14:05 -04:00
谭九鼎 a0e3387677
Update zh-cn (#2576)
* Update zh-cn
* Update ui-text.yml
2020-07-23 12:12:52 -04:00
Michael Rose 16bacdcc37 Update CHANGELOG and history 2020-07-23 12:12:15 -04:00
dianlujitao be9a90fa0c
Fix link for author name (#2575)
Missed from bcd6126612
2020-07-23 12:11:03 -04:00
iBug ♦ a89a015ce7
Change tab indent to space for consistency (#2614) 2020-07-23 12:09:36 -04:00
Michael Rose 8a60d43b12 Update CHANGELOG and history 2020-07-22 15:47:29 -04:00
Scott M a0309bba05
Fix config comment to list all analytics providers. (#2607)
The main config was properly updated with the google-gtag
feature commit (79d0b75683), but was
removed, possibly by bad merge, with an unrelated commit
(bac26e96b2) two days later.

The docs and test configs appear to have never received the initial
google-gtag update.
2020-07-22 15:46:44 -04:00
Michael Rose af7805a985 Update CHANGELOG and history 2020-07-22 15:45:40 -04:00
iBug ♦ adb301096f
Give H4 in notice some space from below (#2602) 2020-07-22 15:44:25 -04:00
iBug ♦ 42c4df6244
Enhance Bilibili video support (redo of #2522) (#2599)
* Enhance support for bilibili videos in responsive video helper, and add corresponding doc

* Apply @iBug's review in mmistakes/minimal-mistakes#2522

* Fix danmaku in page hero video

* Update video to use case..when for iframe src

* Update CHANGELOG and history

Co-authored-by: Anran <51769728+ALeafWolf@users.noreply.github.com>
Co-authored-by: Michael Rose <mmistakes@users.noreply.github.com>
2020-07-22 15:42:46 -04:00