14 lines
382 B
JavaScript
14 lines
382 B
JavaScript
<script>
|
|
var yiliaConfig = {
|
|
isHome: <%=is_home()%>,
|
|
isPost: <%=is_post()%>,
|
|
isArchive: <%=is_archive()%>,
|
|
isTag: <%=is_tag()%>,
|
|
isCategory: <%=is_category()%>,
|
|
open_in_new: <%=theme.open_in_new%>,
|
|
toc_hide_index: <%=theme.toc_hide_index%>,
|
|
root: "<%=config.root%>",
|
|
showTags: <%=(theme.slider && theme.slider.showTags) ? true : false%>
|
|
}
|
|
</script>
|
|
<%- partial('script') %> |