Commit Graph

500 Commits

Author SHA1 Message Date
642ec7b20f Added optional label attribute (#3128)
Added label attribute as per utterances optional label setting.
2021-10-19 11:18:00 -04:00
eaef9ecd9f include video does not survive compress.html (#3117) 2021-08-15 19:02:31 -04:00
f9b17c6249 Add role to search (#3086) 2021-08-08 13:43:31 -04:00
65e79f5a7d Add Microformats (#3052)
* Add rel=me to author profile links

* Add h-card Microformats markup

* Add h-entry microformat markup

* Fix missing anchor tag

* Fix h-entry microformat markup on single template

* Use minimal subset of Microformat elements

* Move dt-published to `page__date.html` and remove dt-updated
* Remove "author" and "summary"

Leaves "url" as a hidden element

* Add page link to h1 tag

The h1 tag now contains the Schema-org `url` itemprop and the
Microformats `url` class in an anchor tag.  The anchor tag is styled to
not look like a link.

* Put author 'u-url' on author__name h3

This also puts the same `{{ author.home | default: '/' | absolute_url }}`
construct on `author__avatar` to remove the Jekyll `author.home`
conditional.

Also addresses SCSS text color error.
2021-07-23 14:16:08 -04:00
0491cd362b Remove site.url from first breadcrumb link (#3051)
* Remove site.url from first breadcrumb link

Fixes #3050

* Use relative_rul filter instead of site.baseurl
2021-07-23 09:23:07 -04:00
297989c1be Add giscus support (#3022)
* Add script in same style as utterances

But adjusted for the various filed differences

* Add initial script

* Add default settings

* Update changelog

* Add feature to readme

* Add comments html

* add comment provider include

* update config in docs

* Add URL for additional reference

* docs for giscus comments

* Unrelated bugfix: add missing version separator

So that things match the "history" doc.

* add space

* update history doc

* update about doc

* add to test config yaml

* remove unnecessary / incorrect async attribute

* probably should pass the right config paths

* lowercase the repo name

* Update docs to address '1' and '0' for reactions_enabled

Figured I'd match the giscus format rather than convert a boolean to an int there.

* update two additional docs

* docs wording fix
2021-07-05 16:08:28 -04:00
ad094187f7 Remove IE9 flexbox fallback (#3042)
IE9 is absolutely, completely, totally dead. it's marketshare is less than 0.1%.
REF: https://caniuse.com/usage-table

Save some bytes in the HTML for all users by removing the fallback inline CSS.
2021-07-05 15:51:47 -04:00
3c60ebde58 Remove H2 as it is not important to site structure (#3012)
This should not use a H2, as that is not an important headline, and thus a H2 here would probably hurt in page SEO.
2021-06-23 08:11:39 -04:00
7597735c73 Loads font-awesome asynchronously (#2967)
Loading font-awesome asynchronously allows to display the site faster. This change is advised by google pagespeed insights
2021-06-23 08:10:12 -04:00
351174e494 feat: Search icon in masthead is a Font Awesome icon. (#2774)
* feat: Allow search icon in masthead to be set to a Font Awesome icon.

* fix indentations

* Users wishing to avoid FontAwesome should override _includes/masthead.html
2021-06-23 08:06:03 -04:00
c521fe58df Datetime format (#2844)
* datetime_format

* page__meta

* page__date

* page__date test

* update docs

* update docs
2021-04-13 15:58:37 -04:00
2301fdf5a7 Remove all references to official public Staticman API instance. (#2831)
* Updated Staticman docs

* remove any ref to official public instance in docs

* remove fallback instance for staticman v2

left staticman v1 untouched as I dunno how to deal with that
2021-04-13 15:55:51 -04:00
deaed193af Add Baidu site verfication (#2830) 2021-04-13 15:53:30 -04:00
3d3cb58a2e Add alt attr to site logo in masthead (#2824)
Co-authored-by: Michael Rose <mmistakes@users.noreply.github.com>
2021-03-03 10:00:20 -05:00
6282bd9221 Allow custom sorting for collections (#2723)
* Allow custom sorting for collections

* Update docs with custom sort of collections

* Refactoring
2021-02-05 20:37:31 -05:00
9be80f891f Use sort_natural instead of custom-logic (#2756) 2021-02-05 20:29:06 -05:00
7bb68edf03 Add toggle option for RSS feed visibility (#2787)
* add a "hide" value in config for atom

* Update footer to use param

* update header to use param

* Update docs to note configuration

* undo formatting

* use unless syntax

* unless syntax and indentation

* indentation
2021-02-05 20:26:16 -05:00
5fe4c4810d Allow custom gradient in page header overlays (#2806)
* Allow custom gradient in page header overlays

* Update documentation

* Update CHANGELOG and history
2021-02-05 20:24:25 -05:00
faf86f59e9 Update allejo/jekyll-toc to v1.1.0, skip headings without an ID (#2752)
* Update allejo/jekyll-toc to v1.1.0, skip headings without an ID

https://github.com/allejo/jekyll-toc/releases/tag/v1.1.0

* Update CHANGELOG and history
2020-12-10 14:41:57 -05:00
11524f165e Merge pull request #2700 from iBug:update-toc
Update allejo/jekyll-toc to v1.0.14
2020-10-28 14:49:22 -04:00
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
99a77e4d3a Update allejo/jekyll-toc to v1.0.14
https://github.com/allejo/jekyll-toc/releases/tag/v1.0.14
2020-09-21 01:17:26 +08:00
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
24b4585084 Added article:author used by Pinterest (#2670) 2020-08-30 20:38:03 -04:00
d57fe1de2c Fix entries_layout: grid
Close #2639
2020-08-04 12:59:44 -04:00
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
be9a90fa0c Fix link for author name (#2575)
Missed from bcd6126612
2020-07-23 12:11:03 -04:00
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
28edd82198 Algolia search update (#2572)
* Search on menu toggle

With that change search is performed when requested. Before it was done
for each pageview, regardless of the fact if search was used by user or
not.

* Localize algolia's empty template
2020-07-22 15:34:53 -04:00
4f8e2b48bb Do not include in toc (#2558) 2020-07-22 15:26:14 -04:00
2ef1bfb856 Load Font Awesome CSS from jsDelivr CDN (#2583)
* Load Font Awesome CSS from jsDelivr CDN
* Update CHANGELOG and history
2020-07-02 08:08:45 -04:00
3ab6ba0b1f Replace custom comment hardcoded HTML with include
Also add custom_scripts.html include for custom comment provider JavaScript that loads in the footer.

Close #2549
2020-06-02 22:33:08 -04:00
875dbdefb8 Move page date to own file (#2544) 2020-06-02 22:22:56 -04:00
b336eab85b Strip trailing whitespace in seo_description (#2542) 2020-06-02 22:21:10 -04:00
9280de7075 Update video (#2512)
* Update video

support bilibili video

* Update video

drop the duplicated <div> wrapper

* Update video

update video
2020-05-01 10:16:59 -04:00
7790757722 Use css padding for author urls to fix underline hover state (#2472)
* Use scss padding for sidebar author urls

* rename .text to .label
2020-03-30 16:26:24 -04:00
4e25e5242e Use first_page_path from Paginate V2 if available (#2431) 2020-03-16 21:17:53 -04:00
7b953b6b01 fixed typo in page_hero (#2428) 2020-03-08 20:27:54 -04:00
bcd6126612 Use relative_url and absolute_url where possible (#2387)
* Use relative_url and absolute_url where possible

Drops the `contains "://"` check, adopt Jekyll 3.7
Ref: https://github.com/mmistakes/minimal-mistakes/pull/2385#issuecomment-579882236

* One more unneeded {% assign %}

* Remove one more assign as noted by mmistakes

* Consolidate 4 more captures

* Consolidate an extra assign on "active" class
2020-03-06 15:37:07 -05:00
4bf72cf73f Hide hidden posts from listings (#2345) 2020-03-04 16:09:24 -05:00
e8b36c94d3 fix: Do not redirect user away from site after they submit a comment (#2402) 2020-02-17 15:28:33 -05:00
1799ddd6a5 Regression for mmistakes#2332 (#2385)
* Regression for mmistakes#2332

There's already a `relative_url` in place, shouldn't stack up another

* Update CHANGELOG and history
2020-01-29 12:48:13 -05:00
741b6dcb10 Adjust comments to be compatible with compress_html (#2373) 2020-01-14 12:43:14 -05:00
c6b4cdac97 Fix wrong newline concatenation in SEO description, resolves #2354 (#2368)
Close #2354
2020-01-14 12:40:11 -05:00
be0e7ca971 Allow override of page excerpt in heading (via tagline) (#2307)
Allow the use of `page.tagline` to override `page.excerpt` in heading area
2020-01-07 13:01:47 -05:00
f331584125 Use %-d instead of %d (#2359) 2020-01-07 12:38:08 -05:00
8e2d290c7f Update toc.html from allejo/jekyll-toc:master (#2355) 2020-01-07 12:36:05 -05:00
7607fcf7b6 Fix staticman v2/v3 comments (#2351)
According to the most recent docs, `branch` and `endpoint` should be inside `site.comments.staticman` config.
2019-12-19 11:38:51 -05:00
abf29432f6 Update masthead.html (#2332)
* Update masthead.html

fix image path in masthead for relative url

* Update _includes/masthead.html

Co-Authored-By: iBug ♦ <git@ibugone.com>
2019-12-19 11:37:11 -05:00
0be64d50fc Fixed page.excerpt to seo_description (#2326) 2019-11-22 09:12:34 -05:00