feat(doc): add en & zh-CN CDN provider doc
parent
209cc46c6f
commit
484ed1ffba
|
@ -0,0 +1,141 @@
|
|||
title: Icarus User Guide - CDN Providers
|
||||
date: 2017-01-31
|
||||
categories:
|
||||
- Configuration
|
||||
tags:
|
||||
- Icarus User Guide
|
||||
language: en
|
||||
toc: true
|
||||
---
|
||||
|
||||
<div class="notification is-success is-size-6">
|
||||
This article is also available in: <a href="{% post_path zh-CN/CDN-Providers %}">简体中文</a>.
|
||||
</div>
|
||||
|
||||
Choosing right CDN providers can significantly reduce page loading time of your viewers.
|
||||
Icarus lets you to choose between several built-on CDN provider options to serve the third-party
|
||||
frontend libraries and asset files used by the theme.
|
||||
|
||||
<!-- more -->
|
||||
|
||||
<div class="notification is-link is-size-6">
|
||||
|
||||
The CDN-related functionalities of Icarus are provided by
|
||||
[ppoffice/hexo-component-inferno](https://github.com/ppoffice/hexo-component-inferno).
|
||||
Please refer to it for a complete list of supported providers and their configurations.
|
||||
|
||||
</div>
|
||||
|
||||
## Built-in CDN providers
|
||||
|
||||
Currently, you can choose between these built-in providers:
|
||||
|
||||
- **CDNs for JavaScript Libraries**
|
||||
- cdnjs.com (`cdnjs`)
|
||||
- jsDelivr (`jsdelivr`)
|
||||
- UNPKG (`unpkg`)
|
||||
- loli.net (`loli`)
|
||||
- **CDNs for Web Fonts**
|
||||
- Google Fonts (`google`)
|
||||
- loli.net (`loli`)
|
||||
- **FontAwesome Font Icon CDNs**
|
||||
- FontAwesome 5 (`fontawesome`)
|
||||
- loli.net (`loli`)
|
||||
|
||||
The default CDN settings are:
|
||||
|
||||
{% codeblock themes/icarus/_config.yml lang:yaml %}
|
||||
providers:
|
||||
cdn: jsdelivr
|
||||
fontcdn: google
|
||||
iconcdn: fontawesome
|
||||
{% endcodeblock %}
|
||||
|
||||
## Custom CDN providers
|
||||
|
||||
Additionally, you can also custom CDN providers via URL templates.
|
||||
The template formats for each type of CDN provider are listed below:
|
||||
|
||||
### CDNs for JavaScript Libraries
|
||||
|
||||
{% codeblock "CDN URL Template" %}
|
||||
https://some.cdn.domain.name/${package}/${version}/${filename}
|
||||
{% endcodeblock %}
|
||||
|
||||
You need to replace the actual package name, version of the package and relative file path with `${package}`,
|
||||
`${version}`, and `${filename}` placeholders.
|
||||
For example, a JavaScript library with the following URL
|
||||
|
||||
{% codeblock "UNPKG CDN URL Example" %}
|
||||
https://unpkg.com/d3@5.7.0/dist/d3.min.js
|
||||
{% endcodeblock %}
|
||||
|
||||
can be generalized to this
|
||||
|
||||
{% codeblock "UNPKG CDN URL Template" %}
|
||||
https://unpkg.com/${package}@${version}/${filename}
|
||||
{% endcodeblock %}
|
||||
|
||||
Some CDN providers may adopt different URL schemes where the package name and file path for a library
|
||||
are not exactly the same.
|
||||
For example, the `moment.js` library has the URL like this on CDN.js:
|
||||
|
||||
{% codeblock "CDN.js CDN URL Example" %}
|
||||
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.js
|
||||
{% endcodeblock %}
|
||||
|
||||
while has the following URL on UNPKG:
|
||||
|
||||
{% codeblock "UNPKG CDN URL Example" %}
|
||||
https://unpkg.com/moment@2.22.2/min/moment.min.js
|
||||
{% endcodeblock %}
|
||||
|
||||
Therefore, you should be aware of the URL format of your custom CDN provider.
|
||||
By default, Icarus will try to pass in the parameter just like they would be for an npm repository
|
||||
(e.g., `moment@2.22.2/min/moment.min.js`).
|
||||
This npm scheme is used by jsDelivr and UNPKG.
|
||||
Otherwise, if you are using a CDN.js like provider, please prepend `[cdnjs]` to its URL template:
|
||||
|
||||
{% codeblock "CDN.js-style URL Template" %}
|
||||
[cdnjs]https://some.cdn.domain.name/${package}/${version}/${filename}
|
||||
{% endcodeblock %}
|
||||
|
||||
### CDNs for Web Fonts
|
||||
|
||||
You can pass in the URL of a Google Font mirror or compatible webfont CDN.
|
||||
Icarus depends on the `Ubuntu`, `Oxanium`, and `Source Code Pro` fonts, so make sure your CDN provides those.
|
||||
The URL template should have two placeholders for font `type` (`icon` or `font`) and `fontname`:
|
||||
|
||||
{% codeblock "Webfont CDN URL Template" %}
|
||||
https://some.google.font.mirror/${type}?family=${fontname}
|
||||
{% endcodeblock %}
|
||||
|
||||
### FontAwesome Font Icon CDNs
|
||||
|
||||
You can pass in the URL to a custom FontAwesome CDN.
|
||||
No placeholders are required.
|
||||
The provided custom CDN should at lease have FontAwesome 5 icons as some of them are used in this theme.
|
||||
|
||||
{% codeblock "Icon Font CDN URL Template" %}
|
||||
https://custom.fontawesome.mirror/some.stylesheet.css
|
||||
{% endcodeblock %}
|
||||
|
||||
All of the above should be put in the `providers` section of theme configuration file:
|
||||
|
||||
{% codeblock themes/icarus/_config.yml lang:yaml %}
|
||||
providers:
|
||||
cdn: 'https://some.cdn.domain.name/${package}/${version}/${filename}'
|
||||
fontcdn: 'https://some.google.font.mirror/${type}?family=${fontname}'
|
||||
iconcdn: 'https://custom.fontawesome.mirror/some.stylesheet.css'
|
||||
{% endcodeblock %}
|
||||
|
||||
## CDN helper functions
|
||||
|
||||
Three helper functions have been defined to help developers include third-party libraries easily with custom
|
||||
CDN support.
|
||||
You can check them out at [ppoffice/hexo-component-inferno](https://github.com/ppoffice/hexo-component-inferno/blob/0.2.3/src/hexo/helper/cdn.js).
|
||||
|
||||
|
||||
<div class="notification is-warning is-size-6">
|
||||
Something wrong with this article? Click <a href="https://github.com/ppoffice/hexo-theme-icarus/edit/site/source/_posts/en/CDN-Providers.md">here</a> to submit your revision.
|
||||
</div>
|
|
@ -69,11 +69,11 @@ Here is an example:
|
|||
{% codeblock themes/icarus/_config.yml lang:yaml %}
|
||||
widgets:
|
||||
-
|
||||
type: ... # 挂件1
|
||||
type: ... # Widget 1
|
||||
position: left
|
||||
...
|
||||
-
|
||||
type: ... # 挂件2
|
||||
type: ... # Widget 2
|
||||
position: right
|
||||
...
|
||||
{% endcodeblock %}
|
||||
|
|
|
@ -1,95 +0,0 @@
|
|||
title: Speed up Your Site with Custom CDN
|
||||
date: 2018-10-16 00:00:01
|
||||
toc: true
|
||||
categories:
|
||||
- Configuration
|
||||
- Theme
|
||||
tags:
|
||||
- Advanced Topics
|
||||
---
|
||||
|
||||
Using a right CDN provider can speed up page loading process of your viewers. Icarus allows you to specify the CDN provider of third-party static libraries you want to use.
|
||||
|
||||
### Built-in CDN providers
|
||||
Currently, you can choose between these built-in providers:
|
||||
|
||||
- **General CDNs**
|
||||
- CDN.js (cdnjs)
|
||||
- jsDelivr (jsdelivr)
|
||||
- Unpkg (unpkg)
|
||||
- **Font CDNs**
|
||||
- Google Fonts (google)
|
||||
- **Icon Font CDNs**
|
||||
- Font Awesome (fontawesome)
|
||||
|
||||
<!-- more -->
|
||||
|
||||
The default CDN settings are:
|
||||
|
||||
```yml
|
||||
providers:
|
||||
cdn: jsdelivr
|
||||
fontcdn: google
|
||||
iconcdn: fontawesome
|
||||
```
|
||||
|
||||
### Custom CDN providers
|
||||
Additionally, you can also use custom CDN providers by putting their URLs in the configuration file. For **general CDNs**, you should provide a URL format string with the following format:
|
||||
|
||||
```
|
||||
https://some.cdn.domain.name/${package}/${version}/${filename}
|
||||
```
|
||||
|
||||
You need to replace the actual package name, version of the package and relative file path with `${package}`, `${version}`, and `${filename}` placeholders. For example, a JavaScript library with the following URL
|
||||
|
||||
```
|
||||
https://unpkg.com/d3@5.7.0/dist/d3.min.js
|
||||
```
|
||||
|
||||
can be generalized to this
|
||||
|
||||
```
|
||||
https://unpkg.com/${package}@${version}/${filename}
|
||||
```
|
||||
|
||||
You should know that CDN providers may adopt different URL schemes where the package name and file path for a library are not exactly the same. For example, the `moment.js` library has the URL like this on CDN.js:
|
||||
|
||||
```
|
||||
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.js
|
||||
```
|
||||
|
||||
while has the following URL on Unpkg:
|
||||
|
||||
```
|
||||
https://unpkg.com/moment@2.22.2/min/moment.min.js
|
||||
```
|
||||
|
||||
Therefore, you should be aware of the URL format of your custom CDN provider. By default, Icarus will try to pass in the parameter just like they would be for an npm repository (e.g., `moment@2.22.2/min/moment.min.js`). This npm scheme is used by jsDelivr and Unpkg. Otherwise, if you are using a CDN.js like provider, please prepend `[cdnjs]` to its format string:
|
||||
|
||||
```
|
||||
[cdnjs]https://some.cdn.domain.name/${package}/${version}/${filename}
|
||||
```
|
||||
|
||||
For **font CDN**, you can pass in the URL of a Google Font mirror or compatible webfont CDN. Icarus depends on the `Ubuntu` and `Source Code Pro` fonts, so make sure your CDN provides those. The URL should have two placeholders for font type (`icon` or `font`) and font name:
|
||||
|
||||
```
|
||||
https://some.google.font.mirror/${type}?family=${fontname}
|
||||
```
|
||||
|
||||
For **icon CDN**, you can pass in the URL to a custom Font Awesome CDN. No placeholders are required. The provided custom CDN should at lease have Font Awesome 5 icons as some of them are used in this theme.
|
||||
|
||||
```
|
||||
https://custom.fontawesome.mirror/some.stylesheet.css
|
||||
```
|
||||
|
||||
All of the above should be put in the `provider` section of theme configuration file:
|
||||
|
||||
```yml
|
||||
providers:
|
||||
cdn: 'https://some.cdn.domain.name/${package}/${version}/${filename}'
|
||||
fontcdn: 'https://some.google.font.mirror/${type}?family=${fontname}'
|
||||
iconcdn: 'https://custom.fontawesome.mirror/some.stylesheet.css'
|
||||
```
|
||||
|
||||
### CDN helper functions
|
||||
Three helper functions have been defined to help developers include third-party libraries easily with custom CDN support. You can check them out in `includes/helpers/cdn.js` under the Icarus theme folder.
|
|
@ -1,31 +0,0 @@
|
|||
title: اختبار اللغة العربية
|
||||
date: 2017-01-30 10:15:01
|
||||
categories:
|
||||
- Translations
|
||||
comments: false
|
||||
thumbnail: /gallery/thumbnails/mosque.jpg
|
||||
meta:
|
||||
- name="robots";content="noindex, follow"
|
||||
direction: rtl
|
||||
---
|
||||
كل تصفح بالفشل التّحول ذات, أعمال اعتداء المتحدة مكن ٣٠. تلك للسيطرة واشتدّت أن, بل انذار العاصمة الخاسرة أما. تحت مع دفّة بالرّغم, وبالرغم وبالتحديد، مع جهة. مسارح يتمكن يتسنّى جهة ان, التي اتفاقية قد كان. فمرّ الوراء ان غير. شيء ما شمال أدوات بالجانب, لكل وشعار اتفاق بـ, بها الإنزال مواقعها في. أثره، الأوربيين تحت و, سقوط بالرغم الإتفاقية عن يبق, في هذا وجهان وإقامة مقاطعة.
|
||||
<!-- more -->
|
||||
عن أخرى الأجل واشتدّت ضرب, يبق تم دارت جيوب, ٣٠ وبداية ابتدعها الأمريكي أخر. لم كما شرسة غرّة، الأعمال, كل بخطوط وعُرفت الضروري ولم, وسفن واستمرت تلك من. مع حيث وأزيز الأخذ, فاتّبع مقاطعة ويكيبيديا، عن وفي, بـ لها كثيرة المتحدة. قد ضرب وسوء إعلان, ان وتم اعتداء إستيلاء, يكن نقطة معاملة ثم. بحث في بلديهما الصينية, هذه ما حصدت شرسة, ذات أم الشمل والقرى.
|
||||
|
||||
بينما أوراقهم مكن تم, تحت أي وفنلندا بمحاولة شموليةً. بحث عن بلديهما المنتصر, لم شاسعة للجزر كلا. بل مما وتنصيب بمباركة والكوري, هناك الأرض تم قبل. غضون عُقر الجديدة، يبق مع, أثره، واُسدل استعملت تم تلك.
|
||||
|
||||
عن فصل هُزم والنرويج. قد بحق أواخر نتيجة قُدُماً, جعل ان تمهيد الشتاء الشّعبين. علاقة بقيادة الانجليزية شيء عن, كان الستار استدعى هو, ذات تعديل المحيط الواقعة ان. في غير مليون وبالرغم تزامناً, ان جُل حقول يذكر بالعمل, ما انه فشكّل والنفيس.
|
||||
|
||||
لكل معارضة بمحاولة الإقتصادية عن, من تلك الشمل الأبرياء. أمّا والعتاد هو ولم, مما كردة الجو ابتدعها ثم. الغالي العالم إيو هو. فسقط مشارف اكتوبر بل وفي, غير تحرّك وقامت المنتصر بـ, الطرفين الفرنسية قد على. الى هو إستعمل السيطرة, ضرب رئيس مساعدة ثم.
|
||||
|
||||
عدد مرجع وبحلول عل, قبل الشرقية أوراقهم لبلجيكا، عن. هو إحتار والتي المنتصر بحث, قد بحق سياسة ميناء لإعادة, مكن لفشل الشّعبين إذ. كان عل جيما بشرية لإعلان. ٣٠ معاملة الأثنان بها. عملية الصين وتنصيب أخذ تم, يبق بالرغم العاصمة في.
|
||||
|
||||
دفّة إختار ولاتّساع في عدم. دنو فهرست وقوعها، عل, قبل ٠٨٠٤ ومحاولة لم. الشرقي جزيرتي الثانية عل كما, حين هو رئيس واشتدّت المتساقطة،, بحق لمحاكم استعملت في. ان وإقامة والمعدات لها, هو إيو مئات يرتبط. بحق مع وصغار وهولندا،, بعد سقوط لإنعدام لم, يكن قد وكسبت الأوروبي.
|
||||
|
||||
بل لعدم الأمور واستمر كلا. تم حول مكثّفة البرية الإنزال. هو إعلان مدينة لهيمنة أخذ. دار وبعض لهذه الأسيوي ان, حدى سكان بقسوة أن, أم الأولى الجديدة، كلا. عرض ٣٠ وبعد ماذا بتحدّي, بالفشل تزامناً التكاليف يكن عن.
|
||||
|
||||
كل فمرّ وانتهاءً حين. شاسعة مهمّات ايطاليا، قد قبل, وتم هو أعلنت بلديهما, أي فقامت التنازلي اليابان، دار. ثم ضمنها الإمتعاض بريطانيا-فرنسا على, قد حول وقرى استدعى. أوروبا ألمانيا ٣٠ يبق. عرض إذ احداث الصين. في بين ببعض ويكيبيديا،, وصل بسبب تحرير النفط بـ.
|
||||
|
||||
التي ضمنها به، إذ, دارت مشروط أي حول, فقد عن فقامت الأرضية ماليزيا،. تنفّس انتهت يونيو شيء إذ, أي عدم لليابان الدولارات. وإقامة الخاطفة والمانيا عن حول. بل جُل أكثر والإتحاد, تم ضرب انتباه والإتحاد. من قامت انتهت دنو.
|
||||
|
||||
<a style="background-color:black;color:white;text-decoration:none;padding:4px 6px;font-size:12px;line-height:1.2;display:inline-block;border-radius:3px" href="https://unsplash.com/@danfreemanphoto?utm_medium=referral&utm_campaign=photographer-credit&utm_content=creditBadge" target="_blank" rel="noopener noreferrer" title="Download free do whatever you want high-resolution photos from Dan Freeman"><span style="display:inline-block;padding:2px 3px"><svg xmlns="http://www.w3.org/2000/svg" style="height:12px;width:auto;position:relative;vertical-align:middle;top:-1px;fill:white" viewBox="0 0 32 32"><title>unsplash-logo</title><path d="M20.8 18.1c0 2.7-2.2 4.8-4.8 4.8s-4.8-2.1-4.8-4.8c0-2.7 2.2-4.8 4.8-4.8 2.7.1 4.8 2.2 4.8 4.8zm11.2-7.4v14.9c0 2.3-1.9 4.3-4.3 4.3h-23.4c-2.4 0-4.3-1.9-4.3-4.3v-15c0-2.3 1.9-4.3 4.3-4.3h3.7l.8-2.3c.4-1.1 1.7-2 2.9-2h8.6c1.2 0 2.5.9 2.9 2l.8 2.4h3.7c2.4 0 4.3 1.9 4.3 4.3zm-8.6 7.5c0-4.1-3.3-7.5-7.5-7.5-4.1 0-7.5 3.4-7.5 7.5s3.3 7.5 7.5 7.5c4.2-.1 7.5-3.4 7.5-7.5z"></path></svg></span><span style="display:inline-block;padding:2px 3px">Dan Freeman</span></a>
|
|
@ -0,0 +1,141 @@
|
|||
title: Icarus用户指南 - CDN提供商
|
||||
date: 2016-01-01
|
||||
categories:
|
||||
- Configuration
|
||||
tags:
|
||||
- Icarus用户指南
|
||||
language: zh-CN
|
||||
toc: true
|
||||
providers:
|
||||
cdn: loli
|
||||
fontcdn: loli
|
||||
iconcdn: loli
|
||||
---
|
||||
|
||||
<div class="notification is-success is-size-6">
|
||||
本文同时提供以下语言的翻译:<a href="{% post_path en/CDN-Providers %}">English</a>。
|
||||
</div>
|
||||
|
||||
选择合适的CDN提供商可以大幅度减少网站访客的网页加载时间。
|
||||
Icarus为你提供了多种内置的CDN提供商来加快主题所用到的前端资源的加载。
|
||||
|
||||
<!-- more -->
|
||||
|
||||
<div class="notification is-link is-size-6">
|
||||
|
||||
Icarus的CDN相关功能由[ppoffice/hexo-component-inferno](https://github.com/ppoffice/hexo-component-inferno)
|
||||
提供,具体提供的CDN提供商种类与配置以其为准。
|
||||
|
||||
</div>
|
||||
|
||||
## 内置CDN提供商
|
||||
|
||||
目前,Icarus提供如下几类内置的CDN服务提供商:
|
||||
|
||||
- **JavaScript库CDN**
|
||||
- cdnjs.com (`cdnjs`)
|
||||
- jsDelivr (`jsdelivr`)
|
||||
- UNPKG (`unpkg`)
|
||||
- loli.net (`loli`)
|
||||
- **网络字体CDN**
|
||||
- Google Fonts (`google`)
|
||||
- loli.net (`loli`)
|
||||
- **FontAwesome图标CDN**
|
||||
- FontAwesome 5 (`fontawesome`)
|
||||
- loli.net (`loli`)
|
||||
|
||||
默认的CDN服务提供商配置为:
|
||||
|
||||
{% codeblock themes/icarus/_config.yml lang:yaml %}
|
||||
providers:
|
||||
cdn: jsdelivr
|
||||
fontcdn: google
|
||||
iconcdn: fontawesome
|
||||
{% endcodeblock %}
|
||||
|
||||
## 自定义CDN提供商
|
||||
|
||||
除此之外,你还可以通过URL模板的方式使用自定义的CDN提供商。
|
||||
每种类别提供商的模板格式如下文所示:
|
||||
|
||||
### JavaScript库CDN
|
||||
|
||||
{% codeblock "CDN URL模板" %}
|
||||
https://some.cdn.domain.name/${package}/${version}/${filename}
|
||||
{% endcodeblock %}
|
||||
|
||||
你需要将CDN URL中的包名称,版本号,和文件相对路径替换为`${package}`, `${version}`,和`${filename}`占位符来获取
|
||||
CDN的URL模板。
|
||||
例如,如下JavaScript的在UNPKG CDN上的URL地址
|
||||
|
||||
{% codeblock "UNPKG CDN URL示例" %}
|
||||
https://unpkg.com/d3@5.7.0/dist/d3.min.js
|
||||
{% endcodeblock %}
|
||||
|
||||
改写成的URL模板为
|
||||
|
||||
{% codeblock "UNPKG CDN URL模板" %}
|
||||
https://unpkg.com/${package}@${version}/${filename}
|
||||
{% endcodeblock %}
|
||||
|
||||
一些CDN提供商可能采用不同的URL形式,而在这些CDN上包名称或文件相对路径与其他CDN会有所不同。
|
||||
例如,`moment.js`库在CDN.js上有着如下的URL形式:
|
||||
|
||||
{% codeblock "CDN.js CDN URL示例" %}
|
||||
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.js
|
||||
{% endcodeblock %}
|
||||
|
||||
但在UNPKG上有着这样的URL形式
|
||||
|
||||
{% codeblock "UNPKG CDN URL示例" %}
|
||||
https://unpkg.com/moment@2.22.2/min/moment.min.js
|
||||
{% endcodeblock %}
|
||||
|
||||
因此,你需要注意你的自定义CDN提供商的URL格式。
|
||||
默认情况下,Icarus在URL模板中采用npm仓库的包名称和文件相对路径(例如`moment@2.22.2/min/moment.min.js`)。
|
||||
jsDelivr和UNPKG就采用这种npm形式。
|
||||
另外,如果你使用的CDN采用如CDN.js这样的URL形式,请在URL模板前加上`[cdnjs]`前缀。
|
||||
|
||||
{% codeblock "CDN.js-style URL模板" %}
|
||||
[cdnjs]https://some.cdn.domain.name/${package}/${version}/${filename}
|
||||
{% endcodeblock %}
|
||||
|
||||
### 网络字体CDN
|
||||
|
||||
你可以使用Google字体镜像CDN或是与其兼容的网络字体CDN。
|
||||
Icarus依赖`Ubuntu`,`Oxanium`,和`Source Code Pro`这三种字体。
|
||||
所以请确保你使用的CDN提供这些字体。
|
||||
自定义的URL模板需包含字体类型`type`(图标`icon`或是字体`font`)和字体名称`fontname`两个占位符:
|
||||
|
||||
{% codeblock "Webfont CDN URL模板" %}
|
||||
https://some.google.font.mirror/${type}?family=${fontname}
|
||||
{% endcodeblock %}
|
||||
|
||||
### FontAwesome图标CDN
|
||||
|
||||
你可以使用自定义的FontAwesome CDN提供商。
|
||||
URL模板中不需要包含占位符。
|
||||
自定义提供商需要至少提供本主题所用到的所有FontAwesome 5图标。
|
||||
|
||||
{% codeblock "Icon Font CDN URL模板" %}
|
||||
https://custom.fontawesome.mirror/some.stylesheet.css
|
||||
{% endcodeblock %}
|
||||
|
||||
以上自定义配置可以放到主题配置文件中的`providers`部分:
|
||||
|
||||
{% codeblock themes/icarus/_config.yml lang:yaml %}
|
||||
providers:
|
||||
cdn: 'https://some.cdn.domain.name/${package}/${version}/${filename}'
|
||||
fontcdn: 'https://some.google.font.mirror/${type}?family=${fontname}'
|
||||
iconcdn: 'https://custom.fontawesome.mirror/some.stylesheet.css'
|
||||
{% endcodeblock %}
|
||||
|
||||
## CDN工具函数
|
||||
|
||||
本主题提供了三个工具函数来帮助主题开发者轻松引用第三方的前端资源。
|
||||
详情请参见[ppoffice/hexo-component-inferno](https://github.com/ppoffice/hexo-component-inferno/blob/0.2.3/src/hexo/helper/cdn.js).
|
||||
|
||||
|
||||
<div class="notification is-warning is-size-6">
|
||||
文章内容有误?请点击<a href="https://github.com/ppoffice/hexo-theme-icarus/edit/site/source/_posts/zh-CN/CDN-Providers.md">此处</a>提交修改。
|
||||
</div>
|
|
@ -10,7 +10,7 @@ toc: true
|
|||
providers:
|
||||
cdn: loli
|
||||
fontcdn: loli
|
||||
iconcdn: fontawesome
|
||||
iconcdn: loli
|
||||
---
|
||||
|
||||
<div class="notification is-success is-size-6">
|
||||
|
|
|
@ -27,7 +27,7 @@ donates:
|
|||
providers:
|
||||
cdn: loli
|
||||
fontcdn: loli
|
||||
iconcdn: fontawesome
|
||||
iconcdn: loli
|
||||
---
|
||||
|
||||
<div class="notification is-success is-size-6">
|
||||
|
|
|
@ -10,7 +10,7 @@ toc: true
|
|||
providers:
|
||||
cdn: loli
|
||||
fontcdn: loli
|
||||
iconcdn: fontawesome
|
||||
iconcdn: loli
|
||||
---
|
||||
|
||||
<div class="notification is-success is-size-6">
|
||||
|
|
|
@ -10,7 +10,7 @@ toc: true
|
|||
providers:
|
||||
cdn: loli
|
||||
fontcdn: loli
|
||||
iconcdn: fontawesome
|
||||
iconcdn: loli
|
||||
---
|
||||
|
||||
<div class="notification is-success is-size-6">
|
||||
|
|
|
@ -13,7 +13,7 @@ share:
|
|||
providers:
|
||||
cdn: loli
|
||||
fontcdn: loli
|
||||
iconcdn: fontawesome
|
||||
iconcdn: loli
|
||||
---
|
||||
|
||||
<div class="notification is-success is-size-6">
|
||||
|
|
|
@ -10,7 +10,7 @@ toc: true
|
|||
providers:
|
||||
cdn: loli
|
||||
fontcdn: loli
|
||||
iconcdn: fontawesome
|
||||
iconcdn: loli
|
||||
---
|
||||
|
||||
<div class="notification is-success is-size-6">
|
||||
|
|
|
@ -56,7 +56,7 @@ widgets:
|
|||
providers:
|
||||
cdn: loli
|
||||
fontcdn: loli
|
||||
iconcdn: fontawesome
|
||||
iconcdn: loli
|
||||
---
|
||||
|
||||
<div class="notification is-success is-size-6">
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 077780c993c67434a4c2817477806d92be998f01
|
||||
Subproject commit e6118c71f022f4ebe921b2830a7b9a12efe53efb
|
Loading…
Reference in New Issue