|
1 | 1 | {% load static %} |
2 | 2 | {% load cache %} |
| 3 | +{% load compress %} |
3 | 4 | <!DOCTYPE html> |
4 | 5 | <!--[if IE 7]> |
5 | 6 | <html class="ie ie7" lang="zh-CN" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#"> |
|
22 | 23 | <![endif]--> |
23 | 24 |
|
24 | 25 | <link rel='dns-prefetch' href='//fonts.googleapis.com'/> |
25 | | - <link rel='dns-prefetch' href='//s.w.org'/> |
26 | 26 | <link rel="alternate" type="application/rss+xml" title="{{ SITE_NAME }} » Feed" |
27 | 27 | href="{{ SITE_BASE_URL }}feed"/> |
28 | | - <link rel="alternate" type="application/rss+xml" title="{{ SITE_NAME }} » 评论Feed" |
29 | | - href="https://www.lylinux.org/comments/feed"/> |
30 | | - |
31 | 28 |
|
32 | 29 | <link rel='stylesheet' id='twentytwelve-fonts-css' |
33 | 30 | href='https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700&subset=latin,latin-ext' |
34 | 31 | type='text/css' media='all'/> |
35 | | - <link rel='stylesheet' id='twentytwelve-style-css' href='{% static 'blog/css/style.css' %}' type='text/css' |
36 | | - media='all'/> |
37 | | - {% comment %}<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>{% endcomment %} |
38 | | - <!--[if lt IE 9]> |
| 32 | + {% compress css %} |
| 33 | + <link rel='stylesheet' id='twentytwelve-style-css' href='{% static 'blog/css/style.css' %}' type='text/css' |
| 34 | + media='all'/> |
| 35 | + {% comment %}<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>{% endcomment %} |
| 36 | + <!--[if lt IE 9]> |
39 | 37 | <link rel='stylesheet' id='twentytwelve-ie-css' href='{% static 'blog/css/ie.css' %}' type='text/css' media='all' /> |
40 | 38 | <![endif]--> |
41 | | - |
| 39 | + <link rel="stylesheet" href="{% static 'pygments/default.css' %}"/> |
| 40 | + {% block compress_css %} |
| 41 | + {% endblock %} |
| 42 | + {% endcompress %} |
42 | 43 | {% comment %}<script type='text/javascript' src='{% static 'blog/js/jquery.js' %}' defer='defer'></script> |
43 | 44 | <script type='text/javascript' src='{% static 'blog/js/jquery-migrate.min.js' %}' defer='defer'></script>{% endcomment %} |
44 | | - <script type="text/javascript" src="{% static 'blog/js/jquery-3.1.1.js' %}"></script> |
45 | | - <link rel="stylesheet" href="{% static 'pygments/default.css' %}"/> |
| 45 | + {% compress js %} |
| 46 | + <script type="text/javascript" src="{% static 'blog/js/jquery-3.1.1.js' %}"></script> |
| 47 | + {% endcompress %} |
46 | 48 | </head> |
47 | 49 |
|
48 | 50 | <body class="home blog custom-font-enabled"> |
@@ -88,8 +90,12 @@ <h2 class="site-description">{{ SITE_DESCRIPTION }}</h2> |
88 | 90 | {% comment %}<link href="{% static 'highlight/styles/default.css' %}" rel="stylesheet"> |
89 | 91 | <script type="application/javascript" src="{% static 'highlight/highlight.pack.js' %}"></script> |
90 | 92 | <script>hljs.initHighlightingOnLoad();</script>{% endcomment %} |
91 | | - <script src="{% static 'blog/js/blog.js' %}" type="application/javascript"></script> |
92 | | - <script src="{% static 'blog/js/navigation.js' %}" type="application/javascript"></script> |
| 93 | + {% compress js %} |
| 94 | + <script src="{% static 'blog/js/blog.js' %}" type="application/javascript"></script> |
| 95 | + <script src="{% static 'blog/js/navigation.js' %}" type="application/javascript"></script> |
| 96 | + {% block compress_js %} |
| 97 | + {% endblock %} |
| 98 | + {% endcompress %} |
93 | 99 | {% block footer %} |
94 | 100 | {% endblock %} |
95 | 101 | </footer> |
|
0 commit comments