title | version | permalink | id | lang |
---|---|---|---|---|
Expert |
1.4.0 |
en/expert |
4 |
en |
If you want to add custom code, like font-face
or statistical code (such as Google Analytics
) to your site, you need to create a folder named _data
(no rename) in the source
folder in your site directory.
Then create a file called head.yml
in the file:
Name:
"Put your code here"
The code will be displayed before </head>
tag. Name
will appear as a comment above the code.
The list of icon used to customized the dropdown or page buttons is available here.
From Version 1.3.0
, you can use hexo-prism-plugin
to highlight your codes, visit Hexo-Prism-Plugin Github to learn more.
From Version 1.4.5
, Material built in the Google Prettify
for code_highlight.
This is about how to use CDN to load files.
Material Theme can using private CDN to load of static files. Default(empty) will load the files from the origin server.
ATTENTION! the url you fill in should with protocol and without
/
!
Here is an example of configuration.
vendors:
materialcdn: https://materialcdn.nfz.moe/hexo/1.3.2
Material Theme has used third party library below. You can fill in the with the uri of the files, then you can use public cdn to load them.
you should filled in with a uri of css, such as:
https://cdn.bootcss.com/font-awesome/4.5.0/css/font-awesome.min.css
you needn't add query configuration in your uri. We have already done it for you.
only for the
prettify.js
. theme css files will load from your origin server or MaterialCDN
you should filled in with a uri of css, such as:
https://cdn.bootcss.com/material-design-icons/3.0.1/iconfont/material-icons.min.css