mirror of https://github.com/halo-dev/halo
Support custom head #189
parent
1333b15240
commit
12483118af
|
@ -12,7 +12,9 @@ public enum OtherProperties implements PropertyEnum {
|
|||
|
||||
API_ACCESS_KEY("api_access_key", String.class, ""),
|
||||
|
||||
STATISTICS_CODE("statistics_code", String.class, ""),
|
||||
CUSTOM_HEAD("blog_custom_head",String.class,""),
|
||||
|
||||
STATISTICS_CODE("blog_statistics_code", String.class, ""),
|
||||
|
||||
/**
|
||||
* 是否禁止爬虫
|
||||
|
|
|
@ -10,6 +10,10 @@
|
|||
${options.blog_footer_info!}
|
||||
</#macro>
|
||||
|
||||
<#macro custom_head>
|
||||
${options.blog_custom_head!}
|
||||
</#macro>
|
||||
|
||||
<#-- favicon -->
|
||||
<#macro favicon>
|
||||
<#if options.blog_favicon?? && options.blog_favicon!=''>
|
||||
|
@ -49,6 +53,7 @@
|
|||
|
||||
<#macro globalHeader>
|
||||
<meta name="generator" content="Halo ${version!}" />
|
||||
<@custom_head />
|
||||
<@verification />
|
||||
<@favicon />
|
||||
</#macro>
|
||||
|
|
Loading…
Reference in New Issue