Permalink
Browse files

feat: share components 模块化代码

“Partials help you share components between templates…”

https://hexo.io/docs/templates.html#Partials
  • Loading branch information...
MOxFIVE committed Sep 22, 2015
1 parent 2b20489 commit a0d8349b24390a83d23cea701cbee2f046352a0c
@@ -0,0 +1,10 @@
<button class="hide-labels">TAG 开关</button>
<script src="http://7.url.cn/edu/jslib/comb/require-2.1.6,jquery-1.9.1.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$(".article-info").toggle(200);
});
});
</script>
@@ -1,11 +1,2 @@
<%- partial('_partial/archive', {pagination: config.archive, index: true}) %>
<button class="hide-labels">TAG 开关</button>
<script src="http://7.url.cn/edu/jslib/comb/require-2.1.6,jquery-1.9.1.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$(".article-info").toggle(200);
});
});
</script>
<%- partial('_partial/hide-labels') %>
@@ -1 +1,2 @@
<%- partial('_partial/archive', {pagination: config.category, index: true}) %>
<%- partial('_partial/archive', {pagination: config.category, index: true}) %>
<%- partial('_partial/hide-labels') %>
@@ -1 +1,2 @@
<%- partial('_partial/archive', {pagination: config.tag, index: true}) %>
<%- partial('_partial/archive', {pagination: config.tag, index: true}) %>
<%- partial('_partial/hide-labels') %>

0 comments on commit a0d8349

Please sign in to comment.