mirror of https://github.com/halo-dev/halo
Update anatole theme.
parent
c3c0daf7ed
commit
83522f6a81
|
@ -12,6 +12,7 @@ import run.halo.app.event.options.OptionUpdatedEvent;
|
|||
import run.halo.app.event.theme.ThemeActivatedEvent;
|
||||
import run.halo.app.event.user.UserUpdatedEvent;
|
||||
import run.halo.app.handler.theme.config.support.ThemeProperty;
|
||||
import run.halo.app.model.support.HaloConst;
|
||||
import run.halo.app.service.OptionService;
|
||||
import run.halo.app.service.ThemeService;
|
||||
import run.halo.app.service.ThemeSettingService;
|
||||
|
@ -90,6 +91,7 @@ public class FreemarkerConfigAwareListener {
|
|||
private void loadOptionsConfig() throws TemplateModelException {
|
||||
configuration.setSharedVariable("options", optionService.listOptions());
|
||||
configuration.setSharedVariable("context", optionService.getBlogBaseUrl());
|
||||
configuration.setSharedVariable("version", HaloConst.HALO_VERSION);
|
||||
log.debug("Loaded options");
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,9 @@
|
|||
|
||||
<#-- favicon -->
|
||||
<#macro favicon>
|
||||
<#if options.blog_favicon?? && options.blog_favicon!=''>
|
||||
<link rel="shortcut icon" type="images/x-icon" href="${options.blog_favicon!}">
|
||||
</#if>
|
||||
</#macro>
|
||||
|
||||
<#-- 站点验证代码 -->
|
||||
|
@ -46,11 +48,12 @@
|
|||
</#macro>
|
||||
|
||||
<#macro globalHeader>
|
||||
<@favicon />
|
||||
<meta name="generator" content="Halo ${version!}" />
|
||||
<@verification />
|
||||
<@favicon />
|
||||
</#macro>
|
||||
|
||||
<#macro globalFooter>
|
||||
<@statistics />
|
||||
<@footer_info />
|
||||
<@statistics />
|
||||
</#macro>
|
|
@ -1,4 +1,4 @@
|
|||
<#include "/common/macro/common_macro.ftl">
|
||||
<#import "/common/macro/common_macro.ftl" as common>
|
||||
<#macro head title,keywords,description>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
@ -14,8 +14,7 @@
|
|||
<meta name="author" content="${user.nickname!}" />
|
||||
<meta name="keywords" content="${keywords!}"/>
|
||||
<meta name="description" content="${description!}" />
|
||||
<@verification />
|
||||
<@favicon />
|
||||
<@common.globalHeader />
|
||||
<link href="${static!}/source/css/font-awesome.min.css" type="text/css" rel="stylesheet"/>
|
||||
<link rel="stylesheet" href="${static!}/source/css/blog_basic.min.css?version=88107691fe">
|
||||
<link href="${static!}/source/css/style.min.css" type="text/css" rel="stylesheet" />
|
||||
|
@ -77,7 +76,7 @@
|
|||
xhr.send();
|
||||
</#if>
|
||||
</script>
|
||||
<@statistics />
|
||||
<@common.statistics />
|
||||
</body>
|
||||
</html>
|
||||
</#macro>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
<a href="https://github.com/halo-dev/halo" target="_blank">Proudly published with Halo!</a>
|
||||
</div>
|
||||
<div class="footer_text">
|
||||
<@footer_info></@footer_info>
|
||||
<@common.footer_info />
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue