Change "fa" to "fas" for Font Awesome 5 (#2649)

* main.js: fa -> fas for FA 5

* Update CHANGELOG and history
This commit is contained in:
iBug ♦ 2020-08-15 03:21:38 +08:00 committed by GitHub
parent 5c8b220bf9
commit b7144931c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 6 deletions

View File

@ -3,6 +3,7 @@
### Bug Fixes
- Fix `entries_layout: grid` in various layouts. [#2639](https://github.com/mmistakes/minimal-mistakes/issues/2639)
- Change `fa` to `fas` for Font Awesome 5. [#2649](https://github.com/mmistakes/minimal-mistakes/pull/2649)
## [4.20.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.20.1)

View File

@ -128,7 +128,7 @@ $(document).ready(function() {
var anchor = document.createElement("a");
anchor.className = 'header-link';
anchor.href = '#' + id;
anchor.innerHTML = '<span class=\"sr-only\">Permalink</span><i class=\"fa fa-link\"></i>';
anchor.innerHTML = '<span class=\"sr-only\">Permalink</span><i class=\"fas fa-link\"></i>';
anchor.title = "Permalink";
$(this).append(anchor);
}

File diff suppressed because one or more lines are too long

View File

@ -12,6 +12,7 @@ toc: false
## Unreleased
- Fix `entries_layout: grid` in various layouts. [#2639](https://github.com/mmistakes/minimal-mistakes/issues/2639)
- Change `fa` to `fas` for Font Awesome 5. [#2649](https://github.com/mmistakes/minimal-mistakes/pull/2649)
## [4.20.1](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.20.1)

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "minimal-mistakes",
"version": "4.19.0",
"version": "4.20.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {