Permalink
Browse files

refactor: fancyBox configuration

  • Loading branch information...
MOxFIVE committed Jan 7, 2016
1 parent 3dc1102 commit 6cf7ae4dad8dd08c9491eb634338393b7e0294ee
@@ -1,19 +1,3 @@
<% if (!is_page() && !is_post()){ %>
<script>
var yiliaConfig = {
fancybox: false,
mathjax: <%=theme.mathjax%>,
animate: <%=theme.animate%>,
isHome: <%=is_home()%>,
isPost: <%=is_post()%>,
isArchive: <%=is_archive()%>,
isTag: <%=is_tag()%>,
isCategory: <%=is_category()%>,
open_in_new: <%=theme.open_in_new%>
}
</script>
<% } %>
<%- js('http://7.url.cn/edu/jslib/comb/require-2.1.6,jquery-1.9.1.min') %>
<%- js('js/main') %>
<%- partial('_partial/background') %>
@@ -91,35 +91,10 @@
<%- partial('_partial/post-nav-button') %>
<% if (post.fancybox != false){ %>
<% if (theme.fancybox){ %>
<%- css('fancybox/jquery.fancybox') %>
<script>
var yiliaConfig = {
fancybox: <%=theme.fancybox%>,
mathjax: <%=theme.mathjax%>,
animate: <%=theme.animate%>,
isHome: <%=is_home()%>,
isPost: <%=is_post()%>,
isArchive: <%=is_archive()%>,
isTag: <%=is_tag()%>,
isCategory: <%=is_category()%>,
open_in_new: <%=theme.open_in_new%>
}
</script>
<% } %>
<% } else { %>
<script>
var yiliaConfig = {
fancybox: false,
mathjax: <%=theme.mathjax%>,
animate: <%=theme.animate%>,
isHome: <%=is_home()%>,
isPost: <%=is_post()%>,
isArchive: <%=is_archive()%>,
isTag: <%=is_tag()%>,
isCategory: <%=is_category()%>,
open_in_new: <%=theme.open_in_new%>
}
</script>
<% } %>
<% if (!index) { %>
<script>
<% if (post.fancybox === false){ %>
yiliaConfig.fancybox = false;
<% } %>
</script>
<% } %>
@@ -36,6 +36,22 @@
<meta name="baidu-site-verification" content="ai9YVe01DX" />
<meta name="google-site-verification" content="VR0pjVypb6rfBUkK2IJnVqqEXeB9-jZzXpZDiWa6Q18" />
<% } %>
<% if (theme.fancybox){ %>
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">
<% } %>
<script>
var yiliaConfig = {
fancybox: <%=theme.fancybox%>,
mathjax: <%=theme.mathjax%>,
animate: <%=theme.animate%>,
isHome: <%=is_home()%>,
isPost: <%=is_post()%>,
isArchive: <%=is_archive()%>,
isTag: <%=is_tag()%>,
isCategory: <%=is_category()%>,
open_in_new: <%=theme.open_in_new%>
}
</script>
<script>/*Tongji*/
var _hmt = _hmt || [];
(function() {

0 comments on commit 6cf7ae4

Please sign in to comment.