This commit is contained in:
结发受长生
2019-05-09 23:10:12 +08:00
parent 1a915a94cb
commit f7b8721ec6
23 changed files with 1337 additions and 1395 deletions
@@ -1,5 +1,5 @@
<script>
window.yiliaConfig = {
window.themeConfig = {
isHome: <%=is_home()%>, // 是否为首页
isPost: <%=is_post()%>, // 是否为文章全文页面
isArchive: <%=is_archive()%>, // 是否为归档页面
@@ -7,7 +7,8 @@ window.yiliaConfig = {
isCategory: <%=is_category()%>, // 是否为分类页面
pageid: <%-page.pageid ? `"${page.pageid}"` : 'undefined'%>, // 页面标识, 用于个性化页面开发
toc_hide_index: <%=theme.toc_hide_index%>, // 目录序号
root: "<%=config.root%>" // 资源根路径
root: "<%=config.root%>", // 资源根路径
pictureCdn: "<%=config.picture_cdn%>" // 图片存储仓库地址
}
</script>
<%- partial('script') %>