Site: Better Performance (#7388)

Merge pull request 7388
This commit is contained in:
Frank Taillandier 2018-11-20 16:35:32 +01:00 提交者 jekyllbot
父節點 c732da44d5
當前提交 842c055ecb
共有 25 個檔案被更改,包括 611 行新增4 行删除

查看文件

@ -6,9 +6,9 @@
<meta name="generator" content="Jekyll v{{ jekyll.version }}"> <meta name="generator" content="Jekyll v{{ jekyll.version }}">
{% feed_meta %} {% feed_meta %}
<link rel="alternate" type="application/atom+xml" title="Recent commits to Jekyll’s master branch" href="{{ site.repository }}/commits/master.atom"> <link rel="alternate" type="application/atom+xml" title="Recent commits to Jekyll’s master branch" href="{{ site.repository }}/commits/master.atom">
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin data-proofer-ignore> <link rel="preload" href="/fonts/lato-v14-latin-300.woff2" as="font" type="font/woff2" crossorigin />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic,900"> <link rel="preload" href="/fonts/lato-v14-latin-700.woff2" as="font" type="font/woff2" crossorigin />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" /> <link rel="preload" href="{{ "/css/screen.css" | relative_url }}" as="style">
<link rel="stylesheet" href="/css/screen.css"> <link rel="stylesheet" href="/css/screen.css">
<link rel="icon" type="image/x-icon" href="/favicon.ico"> <link rel="icon" type="image/x-icon" href="/favicon.ico">
{% seo %} {% seo %}

檔案差異因為一行或多行太長而無法顯示

87
docs/_sass/_fonts.scss Normal file
查看文件

@ -0,0 +1,87 @@
/* lato-300 - latin */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 300;
src: local('Lato Light'), local('Lato-Light'),
url('../fonts/lato-v14-latin-300.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/lato-v14-latin-300.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
font-display: swap;
}
/* lato-300italic - latin */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 300;
src: local('Lato Light Italic'), local('Lato-LightItalic'),
url('../fonts/lato-v14-latin-300italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/lato-v14-latin-300italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
font-display: swap;
}
/* lato-regular - latin */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
src: local('Lato Regular'), local('Lato-Regular'),
url('../fonts/lato-v14-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/lato-v14-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
font-display: swap;
}
/* lato-italic - latin */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 400;
src: local('Lato Italic'), local('Lato-Italic'),
url('../fonts/lato-v14-latin-italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/lato-v14-latin-italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
font-display: swap;
}
/* lato-700 - latin */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 700;
src: local('Lato Bold'), local('Lato-Bold'),
url('../fonts/lato-v14-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/lato-v14-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
font-display: swap;
}
/* lato-700italic - latin */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 700;
src: local('Lato Bold Italic'), local('Lato-BoldItalic'),
url('../fonts/lato-v14-latin-700italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/lato-v14-latin-700italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
font-display: swap;
}
/* lato-900 - latin */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 900;
src: local('Lato Black'), local('Lato-Black'),
url('../fonts/lato-v14-latin-900.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/lato-v14-latin-900.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
font-display: swap;
}
/* lato-900italic - latin */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 900;
src: local('Lato Black Italic'), local('Lato-BlackItalic'),
url('../fonts/lato-v14-latin-900italic.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('../fonts/lato-v14-latin-900italic.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
font-display: swap;
}

查看文件

@ -6,5 +6,6 @@
@import "gridism"; @import "gridism";
@import "pygments"; @import "pygments";
@import "font-awesome"; @import "font-awesome";
@import "style"; @import "fonts";
@import "docsearch"; @import "docsearch";
@import "style";

二進制
docs/fonts/lato-v14-latin-300.woff Normal file

未顯示二進位檔案。

二進制
docs/fonts/lato-v14-latin-300.woff2 Normal file

未顯示二進位檔案。

未顯示二進位檔案。

未顯示二進位檔案。

二進制
docs/fonts/lato-v14-latin-700.woff Normal file

未顯示二進位檔案。

二進制
docs/fonts/lato-v14-latin-700.woff2 Normal file

未顯示二進位檔案。

未顯示二進位檔案。

未顯示二進位檔案。

二進制
docs/fonts/lato-v14-latin-900.woff Normal file

未顯示二進位檔案。

二進制
docs/fonts/lato-v14-latin-900.woff2 Normal file

未顯示二進位檔案。

未顯示二進位檔案。

未顯示二進位檔案。

未顯示二進位檔案。

未顯示二進位檔案。

未顯示二進位檔案。

未顯示二進位檔案。

未顯示二進位檔案。

之前

寬度:  |  高度:  |  大小: 18 KiB

之後

寬度:  |  高度:  |  大小: 4.9 KiB

未顯示二進位檔案。

之前

寬度:  |  高度:  |  大小: 25 KiB

之後

寬度:  |  高度:  |  大小: 6.8 KiB

未顯示二進位檔案。

之前

寬度:  |  高度:  |  大小: 108 KiB

之後

寬度:  |  高度:  |  大小: 9.4 KiB

未顯示二進位檔案。

之前

寬度:  |  高度:  |  大小: 11 KiB

之後

寬度:  |  高度:  |  大小: 6.6 KiB

未顯示二進位檔案。

之前

寬度:  |  高度:  |  大小: 9.1 KiB

之後

寬度:  |  高度:  |  大小: 3.9 KiB