|
|
|
|
@ -1,75 +1,76 @@
|
|
|
|
|
{% load static %}
|
|
|
|
|
{% load cache %}
|
|
|
|
|
{% load i18n %}
|
|
|
|
|
{% load compress %}
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<!--[if IE 7]>
|
|
|
|
|
```
|
|
|
|
|
{% load static %} {# 加载静态文件标签 #}
|
|
|
|
|
{% load cache %} {# 加载缓存标签 #}
|
|
|
|
|
{% load i18n %} {# 加载国际化标签 #}
|
|
|
|
|
{% load compress %} {# 加载压缩标签 #}
|
|
|
|
|
<!DOCTYPE html> {# HTML5文档类型声明 #}
|
|
|
|
|
<!--[if IE 7]> {# IE7条件注释 #}
|
|
|
|
|
<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#">
|
|
|
|
|
<![endif]-->
|
|
|
|
|
<!--[if IE 8]>
|
|
|
|
|
<!--[if IE 8]> {# IE8条件注释 #}
|
|
|
|
|
<html class="ie ie8" lang="zh-CN"
|
|
|
|
|
prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
|
|
|
|
|
<![endif]-->
|
|
|
|
|
<!--[if !(IE 7) & !(IE 8)]><!-->
|
|
|
|
|
<html lang="zh-CN" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#">
|
|
|
|
|
<!--[if !(IE 7) & !(IE 8)]><!--> {# 非IE7和IE8浏览器 #}
|
|
|
|
|
<html lang="zh-CN" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb# article: http://ogp.me/ns/article#"> {# OpenGraph协议 #}
|
|
|
|
|
<!--<![endif]-->
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="UTF-8"/>
|
|
|
|
|
<meta name="viewport" content="width=device-width"/>
|
|
|
|
|
{% block header %}
|
|
|
|
|
<title>{% block title %}{{ SITE_NAME }}{% endblock %}</title>
|
|
|
|
|
<meta name="description" content="{{ SITE_DESCRIPTION }}">
|
|
|
|
|
<meta name="keywords" content="{{ SITE_KEYWORDS }}">
|
|
|
|
|
<meta charset="UTF-8"/> {# 字符编码 #}
|
|
|
|
|
<meta name="viewport" content="width=device-width"/> {# 响应式视口设置 #}
|
|
|
|
|
{% block header %} {# 头部内容块 #}
|
|
|
|
|
<title>{% block title %}{{ SITE_NAME }}{% endblock %}</title> {# 页面标题 #}
|
|
|
|
|
<meta name="description" content="{{ SITE_DESCRIPTION }}"> {# 页面描述 #}
|
|
|
|
|
<meta name="keywords" content="{{ SITE_KEYWORDS }}"> {# 页面关键词 #}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
{% load blog_tags %}
|
|
|
|
|
{% head_meta %}
|
|
|
|
|
<link rel="profile" href="http://gmpg.org/xfn/11"/>
|
|
|
|
|
{% load blog_tags %} {# 加载博客自定义标签 #}
|
|
|
|
|
{% head_meta %} {# 头部元数据标签 #}
|
|
|
|
|
<link rel="profile" href="http://gmpg.org/xfn/11"/> {# 微格式协议 #}
|
|
|
|
|
|
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
|
<script src="{% static 'blog/js/html5.js' %}" type="text/javascript"></script>
|
|
|
|
|
<!--[if lt IE 9]> {# IE9以下浏览器条件注释 #}
|
|
|
|
|
<script src="{% static 'blog/js/html5.js' %}" type="text/javascript"></script> {# HTML5兼容脚本 #}
|
|
|
|
|
<![endif]-->
|
|
|
|
|
|
|
|
|
|
<link rel="alternate" type="application/rss+xml" title="{{ SITE_NAME }} » Feed"
|
|
|
|
|
href="/feed"/>
|
|
|
|
|
href="/feed"/> {# RSS订阅链接 #}
|
|
|
|
|
<link rel='stylesheet preload' as="font" id='twentytwelve-fonts-css'
|
|
|
|
|
href='{% static 'blog/fonts/fonts.css' %}'
|
|
|
|
|
href='{% static 'blog/fonts/fonts.css' %}' {# 字体样式表 #}
|
|
|
|
|
type='text/css' media='all'/>
|
|
|
|
|
<link rel="dns-prefetch" href="//cdn.mathjax.org"/>
|
|
|
|
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/>
|
|
|
|
|
<link rel="icon" href="/favicon.ico" type="image/x-icon"/>
|
|
|
|
|
<link rel="apple-touch-icon" href="/favicon.ico"/>
|
|
|
|
|
{% compress css %}
|
|
|
|
|
<link rel="dns-prefetch" href="//cdn.mathjax.org"/> {# MathJax CDN预连接 #}
|
|
|
|
|
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"/> {# 网站图标 #}
|
|
|
|
|
<link rel="icon" href="/favicon.ico" type="image/x-icon"/> {# 网站图标 #}
|
|
|
|
|
<link rel="apple-touch-icon" href="/favicon.ico"/> {# Apple触摸图标 #}
|
|
|
|
|
{% compress css %} {# CSS压缩块 #}
|
|
|
|
|
|
|
|
|
|
<link rel='stylesheet' id='twentytwelve-style-css' href='{% static 'blog/css/style.css' %}' type='text/css'
|
|
|
|
|
media='all'/>
|
|
|
|
|
<link href="{% static 'blog/css/oauth_style.css' %}" rel="stylesheet">
|
|
|
|
|
{% comment %}<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>{% endcomment %}
|
|
|
|
|
<!--[if lt IE 9]>
|
|
|
|
|
<link rel='stylesheet' id='twentytwelve-ie-css' href='{% static 'blog/css/ie.css' %}' type='text/css' media='all' />
|
|
|
|
|
media='all'/> {# 主样式表 #}
|
|
|
|
|
<link href="{% static 'blog/css/oauth_style.css' %}" rel="stylesheet"> {# OAuth样式表 #}
|
|
|
|
|
{% comment %}<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>{% endcomment %} {# 注释掉的代码高亮脚本 #}
|
|
|
|
|
<!--[if lt IE 9]> {# IE9以下浏览器条件注释 #}
|
|
|
|
|
<link rel='stylesheet' id='twentytwelve-ie-css' href='{% static 'blog/css/ie.css' %}' type='text/css' media='all' /> {# IE兼容样式表 #}
|
|
|
|
|
<![endif]-->
|
|
|
|
|
<link rel="stylesheet" href="{% static 'pygments/default.css' %}"/>
|
|
|
|
|
<link rel="stylesheet" href="{% static 'blog/css/nprogress.css' %}">
|
|
|
|
|
{% block compress_css %}
|
|
|
|
|
<link rel="stylesheet" href="{% static 'pygments/default.css' %}"/> {# 代码高亮样式表 #}
|
|
|
|
|
<link rel="stylesheet" href="{% static 'blog/css/nprogress.css' %}"> {# 进度条样式表 #}
|
|
|
|
|
{% block compress_css %} {# 可扩展的CSS块 #}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
{% endcompress %}
|
|
|
|
|
{% if GLOBAL_HEADER %}
|
|
|
|
|
{{ GLOBAL_HEADER|safe }}
|
|
|
|
|
{% if GLOBAL_HEADER %} {# 全局头部代码 #}
|
|
|
|
|
{{ GLOBAL_HEADER | safe }} {# 安全渲染全局头部代码 #}
|
|
|
|
|
{% endif %}
|
|
|
|
|
</head>
|
|
|
|
|
|
|
|
|
|
<body class="home blog custom-font-enabled">
|
|
|
|
|
<div id="page" class="hfeed site">
|
|
|
|
|
<header id="masthead" class="site-header" role="banner">
|
|
|
|
|
<hgroup>
|
|
|
|
|
<h1 class="site-title"><a href="/" title="{{ SITE_NAME }}" rel="home">{{ SITE_NAME }}</a>
|
|
|
|
|
<body class="home blog custom-font-enabled"> {# 页面主体,包含CSS类 #}
|
|
|
|
|
<div id="page" class="hfeed site"> {# 页面容器 #}
|
|
|
|
|
<header id="masthead" class="site-header" role="banner"> {# 网站头部 #}
|
|
|
|
|
<hgroup> {# 标题组 #}
|
|
|
|
|
<h1 class="site-title"><a href="/" title="{{ SITE_NAME }}" rel="home">{{ SITE_NAME }}</a> {# 网站标题链接 #}
|
|
|
|
|
</h1>
|
|
|
|
|
<h2 class="site-description">{{ SITE_DESCRIPTION }}</h2>
|
|
|
|
|
<h2 class="site-description">{{ SITE_DESCRIPTION }}</h2> {# 网站描述 #}
|
|
|
|
|
</hgroup>
|
|
|
|
|
{% load i18n %}
|
|
|
|
|
{% load i18n %} {# 加载国际化标签 #}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{# <div class="i18n-selector">#}
|
|
|
|
|
{# <div class="i18n-selector"> {# 注释掉的语言选择器 #}
|
|
|
|
|
{# <form action="{% url 'set_language' %}" method="post" id="i18n-form">{% csrf_token %}#}
|
|
|
|
|
{# <input name="next" type="hidden" value="{{ redirect_to }}">#}
|
|
|
|
|
{# <select name="language" class="i18n-select" >#}
|
|
|
|
|
@ -87,37 +88,37 @@
|
|
|
|
|
{# </div>#}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% include 'share_layout/nav.html' %}
|
|
|
|
|
{% include 'share_layout/nav.html' %} {# 包含导航模板 #}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</header><!-- #masthead -->
|
|
|
|
|
<div id="main" class="wrapper">
|
|
|
|
|
<div id="main" class="wrapper"> {# 主要内容区域 #}
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
{% block content %} {# 主要内容块 #}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{% block sidebar %}
|
|
|
|
|
{% block sidebar %} {# 侧边栏块 #}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div><!-- #main .wrapper -->
|
|
|
|
|
{% include 'share_layout/footer.html' %}
|
|
|
|
|
{% include 'share_layout/footer.html' %} {# 包含页脚模板 #}
|
|
|
|
|
</div><!-- #page -->
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
|
<footer>
|
|
|
|
|
<script src="//cdn.bootcss.com/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
|
|
|
|
|
{% compress js %}
|
|
|
|
|
<script type="text/javascript" src="{% static 'blog/js/jquery-3.6.0.min.js' %}"></script>
|
|
|
|
|
<script type="text/javascript" src="{% static 'blog/js/nprogress.js' %}"></script>
|
|
|
|
|
<script src="{% static 'blog/js/blog.js' %}" type="application/javascript"></script>
|
|
|
|
|
<script src="{% static 'blog/js/navigation.js' %}" type="application/javascript"></script>
|
|
|
|
|
<script src="{% static 'mathjax/js/mathjax-config.js' %}" type="application/javascript"></script>
|
|
|
|
|
{% block compress_js %}
|
|
|
|
|
<footer> {# 页脚脚本区域 #}
|
|
|
|
|
<script src="//cdn.bootcss.com/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script> {# MathJax数学公式渲染 #}
|
|
|
|
|
{% compress js %} {# JavaScript压缩块 #}
|
|
|
|
|
<script type="text/javascript" src="{% static 'blog/js/jquery-3.6.0.min.js' %}"></script> {# jQuery库 #}
|
|
|
|
|
<script type="text/javascript" src="{% static 'blog/js/nprogress.js' %}"></script> {# 进度条脚本 #}
|
|
|
|
|
<script src="{% static 'blog/js/blog.js' %}" type="application/javascript"></script> {# 博客自定义脚本 #}
|
|
|
|
|
<script src="{% static 'blog/js/navigation.js' %}" type="application/javascript"></script> {# 导航脚本 #}
|
|
|
|
|
<script src="{% static 'mathjax/js/mathjax-config.js' %}" type="application/javascript"></script> {# MathJax配置脚本 #}
|
|
|
|
|
{% block compress_js %} {# 可扩展的JavaScript块 #}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
{% endcompress %}
|
|
|
|
|
{% block footer %}
|
|
|
|
|
{% block footer %} {# 页脚内容块 #}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
</footer>
|
|
|
|
|
</html>
|
|
|
|
|
</html>
|