2022-04-11 20:43:48 +08:00
|
|
|
|
<#macro head title>
|
2022-04-10 11:10:56 +08:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="zh">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
|
<meta name="keywords" content="${meta_keywords!}"/>
|
|
|
|
|
<meta name="description" content="${meta_description!}" />
|
|
|
|
|
<link href="${theme_base!}/source/css/kico.css" rel="stylesheet" type="text/css"/>
|
|
|
|
|
<link href="${theme_base!}/source/css/single.css" rel="stylesheet" type="text/css"/>
|
|
|
|
|
<#--
|
|
|
|
|
公共 head 代码,详情请参考:https://docs.halo.run/zh/developer-guide/theme/public-template-tag
|
|
|
|
|
包含:Favicon,自定义 head 等
|
|
|
|
|
-->
|
|
|
|
|
|
|
|
|
|
<@global.head />
|
|
|
|
|
|
|
|
|
|
<title>${title}</title>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<#-- <#include "menu.ftl">
|
|
|
|
|
-->
|
2022-04-11 22:43:26 +08:00
|
|
|
|
<@menuTag method="list">
|
|
|
|
|
<#--
|
|
|
|
|
?sort_by('priority'):根据菜单的排序编号排序
|
|
|
|
|
-->
|
|
|
|
|
<#list menus?sort_by('priority') as menu>
|
|
|
|
|
<li>
|
|
|
|
|
<a href="${menu.url}" target="${menu.target!}">${menu.name} </a>
|
|
|
|
|
</li>
|
|
|
|
|
</#list>
|
|
|
|
|
</@menuTag>
|
2022-04-10 11:10:56 +08:00
|
|
|
|
<#nested >
|
|
|
|
|
<#--
|
|
|
|
|
公共底部代码,详情请参考:https://docs.halo.run/zh/developer-guide/theme/public-template-tag
|
|
|
|
|
包含:统计代码,底部信息
|
|
|
|
|
-->
|
|
|
|
|
<script src="${theme_base!}/source/js/kico.js"></script>
|
|
|
|
|
<script src="${theme_base!}/source/js/single.js"></script>
|
|
|
|
|
<script src="${theme_base!}/source/js/prism.js"></script>
|
|
|
|
|
<@global.footer />
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
</#macro>
|
|
|
|
|
|