提取出配置做成通用模板

This commit is contained in:
Zhongwei Sun 2015-01-15 13:47:40 +08:00
commit c86c180e3f
3 changed files with 18 additions and 1 deletions

View file

@ -44,3 +44,14 @@
})();
</script>
{% endif %}
{% if BAIDU_ANALYTICS %}
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "//hm.baidu.com/hm.js?{{ BAIDU_ANALYTICS }}";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
{% endif %}

View file

@ -74,9 +74,10 @@
</address><!-- /#about -->
<p>The theme is by <a href="http://coding.smashingmagazine.com/2009/08/04/designing-a-html-5-layout-from-scratch/">Smashing Magazine</a>, thanks!</p>
{% include 'china_icp_license.html' %}
</footer><!-- /#contentinfo -->
{% include 'analytics.html' %}
{% include 'analytics.html' %}
{% include 'disqus_script.html' %}
</body>
</html>

View file

@ -0,0 +1,5 @@
{% if CHINA_ICP_LICENSE %}
<p>
<a href="http://www.miitbeian.gov.cn/">{{ CHINA_ICP_LICENSE }}</a>
</p>
{% endif %}