Skip to content

Commit

Permalink
Merge pull request #21 from markleetw/update-fontawesome-version
Browse files Browse the repository at this point in the history
Update fontawesome from v5.12.0 to v5.15.2
  • Loading branch information
ppoffice committed Feb 20, 2021
2 parents 7a54834 + c8ffec1 commit 5f25567
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/hexo/helper/cdn.js
Expand Up @@ -19,8 +19,8 @@ const PROVIDERS = {
loli: 'https://fonts.loli.net/${ type }?family=${ fontname }',
},
ICON: {
loli: 'https://cdnjs.loli.net/ajax/libs/font-awesome/5.12.0/css/all.min.css',
fontawesome: 'https://use.fontawesome.com/releases/v5.12.0/css/all.css',
loli: 'https://cdnjs.loli.net/ajax/libs/font-awesome/5.15.2/css/all.min.css',
fontawesome: 'https://use.fontawesome.com/releases/v5.15.2/css/all.css',
},
};

Expand Down Expand Up @@ -91,7 +91,7 @@ const UNPKG_FIXTURES = {
*
* // Use the function below to insert FontAwesome icon font CSS URL.
* iconcdn();
* // -> https://use.fontawesome.com/releases/v5.12.0/css/all.css
* // -> https://use.fontawesome.com/releases/v5.15.2/css/all.css
*/
module.exports = function (hexo) {
function applyFixture(fixture, _package, version, filename) {
Expand Down
4 changes: 2 additions & 2 deletions src/hexo/helper/cdn.test.js
Expand Up @@ -204,13 +204,13 @@ describe('Get icon font URL', () => {

test('fontawesome', () => {
hexo.config.providers = { iconcdn: 'fontawesome' };
const expected = ['https://use.fontawesome.com/releases/v5.12.0/css/all.css'];
const expected = ['https://use.fontawesome.com/releases/v5.15.2/css/all.css'];
cases.forEach((func, i) => expect(func()).toBe(expected[i]));
});

test('loli', () => {
hexo.config.providers = { iconcdn: 'loli' };
const expected = ['https://cdnjs.loli.net/ajax/libs/font-awesome/5.12.0/css/all.min.css'];
const expected = ['https://cdnjs.loli.net/ajax/libs/font-awesome/5.15.2/css/all.min.css'];
cases.forEach((func, i) => expect(func()).toBe(expected[i]));
});

Expand Down

0 comments on commit 5f25567

Please sign in to comment.