<!DOCTYPE html>
<html lang="en">
    <head>
      {%- block site_meta %}
        <meta charset="utf-8">
        <meta name="referrer" content="never">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        {% if page and page.is_homepage and config.site_description %}<meta name="description" content="{{ config.site_description }}">{% endif %}
        {% if page and page.is_homepage and config.site_keywords %}<meta name="keywords" content="{{ config.site_keywords }}">{% endif %}
        {% if config.site_author %}<meta name="author" content="{{ config.site_author }}">{% endif %}
        {% if page and page.canonical_url %}<link rel="canonical" href="{{ page.canonical_url }}">{% endif %}
        {% if config.site_favicon %}<link rel="shortcut icon" href="{{ config.site_favicon|url }}">
        {% else %}<link rel="shortcut icon" href="{{ 'img/favicon.ico'|url }}">{% endif %}
      {%- endblock %}

      {%- block htmltitle %}
        <title>{% if page and page.title and not page.is_homepage %}{{ page.title }} - {% endif %}{{ config.site_name }}</title>
      {%- endblock %}

      {%- block styles %}
        <link href="{{ 'css/bootstrap-custom.min.css'|url }}" rel="stylesheet">
        <link href="{{ 'css/font-awesome.min.css'|url }}" rel="stylesheet">
        <link href="{{ 'css/base.css'|url }}" rel="stylesheet">
        {%- if config.theme.highlightjs %}
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/{{ config.theme.hljs_style }}.min.css">
        {%- endif %}
        {%- for path in config['extra_css'] %}
        <link href="{{ path|url }}" rel="stylesheet">
        {%- endfor %}
      {%- endblock %}

      {%- block libs %}
        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
            <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->

        <script src="{{ 'js/jquery-1.10.2.min.js'|url }}" defer></script>
        <script src="{{ 'js/bootstrap-3.0.3.min.js'|url }}" defer></script>
        {%- if config.theme.highlightjs %}
        <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
        {%- for lang in config.theme.hljs_languages %}
        <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/languages/{{lang}}.min.js"></script>
        {%- endfor %}
        <script>hljs.initHighlightingOnLoad();</script>
        {%- endif %}
      {%- endblock %}

      {%- block analytics %}
        {%- if config.google_analytics %}
        <script>
            (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
            m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
            })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

            ga('create', '{{ config.google_analytics[0] }}', '{{ config.google_analytics[1] }}');
            ga('send', 'pageview');
        </script>
        {%- endif %}
      {%- endblock %}

      {%- block extrahead %} {% endblock %}
      <link rel="stylesheet" href="https://unpkg.com/gitalk/dist/gitalk.css">
      
      {% if config.google_site_verification %}
      <meta name="google-site-verification" content="{{ config.google_site_verification }}">
      {% endif %}
      
      {% if config.baidu_site_verification %}
      <meta name="baidu-site-verification" content="{{ config.baidu_site_verification }}">
      {% endif %}
      
      {% if config.bing_site_verification %}
      <meta name="msvalidate.01" content="{{ config.bing_site_verification }}">
      {% endif %}
      
      {% if config.sogou_site_verification %}
      <meta name="sogou_site_verification" content="{{ config.sogou_site_verification }}">
      {% endif %}
      
      {% if config.haosou_site_verification %}
      <meta name="360-site-verification" content="{{ config.haosou_site_verification }}">
      {% endif %}
      
      <!-- baidu union -->
      <meta name="baidu_union_verify" content="f57410375adefc6880b9e0972468e329">
      
      <!-- baidu webmaster -->
      <meta name="baidu-site-verification" content="QQxaB1k0Bw" />
      <!-- baidu webmaster push -->
      <script src="//push.zhanzhang.baidu.com/push.js"></script>
      
      <!-- baidu stats -->
      <script>
        var _hmt = _hmt || [];
        (function() {
          var hm = document.createElement("script");
          hm.src = "https://hm.baidu.com/hm.js?84fca651656bc67b4b2d56605b6d0852";
          var s = document.getElementsByTagName("script")[0]; 
          s.parentNode.insertBefore(hm, s);
        })();
      </script>
      
      <!-- google webmaster -->
      <meta name="google-site-verification" content="pyo9N70ZWyh8JB43bIu633mhxesJ1IcwWCZlM3jUfFo" />
      
      <!-- bing webmaster -->
      <meta name="msvalidate.01" content="9E9EA92F7E5327E1FE8A5196D5253664" />
    </head>

    <body{% if page and page.is_homepage %} class="homepage"{% endif %}>

        <div class="navbar navbar-default navbar-fixed-top" role="navigation">
            <div class="container">

                <!-- Collapsed navigation -->
                <div class="navbar-header">
                    {%- if nav|length>1 or (page and (page.next_page or page.previous_page)) or config.repo_url %}
                    <!-- Expander button -->
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    {%- endif %}

                  {%- block site_name %}
                    {%- if config.site_url %}
                    <a class="navbar-brand" href="{{ config.site_url }}">
                    {%- else %}
                    <a class="navbar-brand" href="/">
                    {%- endif %}
                        {%- if config.site_name %}
                        {{ config.site_name }}
                        {%- else %}
                        首页
                        {%- endif %}
                    </a>
                  {%- endblock %}
                </div>

                <!-- Expanded navigation -->
                <div class="navbar-collapse collapse">
                  {%- block site_nav %}
                    {%- if nav|length>1 %}
                        <!-- Main navigation -->
                        <ul class="nav navbar-nav">
                        {%- for nav_item in nav %}
                        {%- if nav_item.children %}
                            <li class="dropdown{% if nav_item.active %} active{% endif %}">
                                <a href="#" class="dropdown-toggle" data-toggle="dropdown">{{ nav_item.title }} <b class="caret"></b></a>
                                <ul class="dropdown-menu">
                                {%- for nav_item in nav_item.children %}
                                    {% include "nav-sub.html" %}
                                {%- endfor %}
                                </ul>
                            </li>
                        {%- else %}
                            <li {% if nav_item.active %}class="active"{% endif %}>
                                <a href="{{ nav_item.url|url }}">{{ nav_item.title }}</a>
                            </li>
                        {%- endif %}
                        {%- endfor %}
                        </ul>
                    {%- endif %}
                  {%- endblock %}

                    <ul class="nav navbar-nav navbar-right">
                      {%- block search_button %}
                        {%- if 'search' in config['plugins'] %}
                        <li>
                            <a href="#" data-toggle="modal" data-target="#mkdocs_search_modal">
                                <i class="fa fa-search"></i> Search
                            </a>
                        </li>
                        {%- endif %}
                      {%- endblock %}

                      {%- block next_prev %}
                        {%- if page and (page.next_page or page.previous_page) %}
                            <li {% if not page.previous_page %}class="disabled"{% endif %}>
                                <a rel="next" {% if page.previous_page %}href="{{ page.previous_page.url|url }}"{% endif %}>
                                    <i class="fa fa-arrow-left"></i> Previous
                                </a>
                            </li>
                            <li {% if not page.next_page %}class="disabled"{% endif %}>
                                <a rel="prev" {% if page.next_page %}href="{{ page.next_page.url|url }}"{% endif %}>
                                    Next <i class="fa fa-arrow-right"></i>
                                </a>
                            </li>
                        {%- endif %}
                      {%- endblock %}

                      {%- block repo %}
                        {%- if config.repo_url %}
                            <li>
                                <a href="{{ config.repo_url }}">
                                    {%- if config.repo_name == 'GitHub' -%}
                                        <i class="fa fa-github"></i> {{ config.repo_name }}
                                    {%- elif config.repo_name == 'Bitbucket' -%}
                                        <i class="fa fa-bitbucket"></i> {{ config.repo_name }}
                                    {%- elif config.repo_name == 'GitLab' -%}
                                        <i class="fa fa-gitlab"></i> {{ config.repo_name }}
                                    {%- else -%}
                                    {{ config.repo_name }}
                                    {%- endif -%}
                                </a>
                            </li>
                        {%- elif page and page.edit_url %}
                            <li>
                                <a href="{{ page.edit_url }}">
                                    {%- if config.repo_name == 'GitHub' -%}
                                        <i class="fa fa-github"></i> Edit on {{ config.repo_name }}
                                    {%- elif config.repo_name == 'Bitbucket' -%}
                                        <i class="fa fa-bitbucket"></i> Edit on {{ config.repo_name }}
                                    {%- elif config.repo_name == 'GitLab' -%}
                                        <i class="fa fa-gitlab"></i> Edit on {{ config.repo_name }}
                                    {%- else -%}
                                    Edit on {{ config.repo_name }}
                                    {%- endif -%}
                                </a>
                            </li>
                        {%- endif %}
                      {%- endblock %}
                    </ul>
                </div>
            </div>
        </div>

        <div class="container">
            {%- block content %}
                <div class="col-md-3">{% include "toc.html" %}</div>
                <div class="col-md-9" role="main">
                    {% include "content.html" %}
                    
                    <hr/>
                    <div align="center">
                        <p><a href="http://www.apachecn.org" target="_blank"><font face="KaiTi" size="6" color="red">我们一直在努力</font></a></p>
                        <p><a href="https://github.com/apachecn/home/" target="_blank">apachecn/home</a></p>
                        <p><a target="_blank" href="//shang.qq.com/wpa/qunwpa?idkey=bcee938030cc9e1552deb3bd9617bbbf62d3ec1647e4b60d9cd6b6e8f78ddc03"><img border="0" src="//pub.idqqimg.com/wpa/images/group.png" alt="ML | ApacheCN" title="ML | ApacheCN"></a></p>
                        <!-- <iframe align="middle" src="https://ghbtns.com/github-btn.html?user=apachecn&repo=home&type=watch&count=true&v=2" frameborder="0" scrolling="0" width="100px" height="25px"></iframe>
                        <iframe align="middle" src="https://ghbtns.com/github-btn.html?user=apachecn&repo=home&type=star&count=true" frameborder="0" scrolling="0" width="100px" height="25px"></iframe>
                        <iframe align="middle" src="https://ghbtns.com/github-btn.html?user=apachecn&repo=home&type=fork&count=true" frameborder="0" scrolling="0" width="100px" height="25px"></iframe> -->
                        <div style="margin:0 0 10.5px;"><script type="text/javascript">var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1275211409'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s5.cnzz.com/z_stat.php%3Fid%3D1275211409%26online%3D1%26show%3Dline' type='text/javascript'%3E%3C/script%3E"));</script></div>
                        <!-- wwads-cn ads -->
                        <div class="wwads-cn wwads-horizontal" data-id="206" style="max-width:350px"></div>
                        <!-- google ads -->
                        <div style="text-align:center;margin:0 0 10.5px;"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
                        <ins class="adsbygoogle"
                             style="display:inline-block;width:728px;height:90px"
                             data-ad-client="ca-pub-3565452474788507"
                             data-ad-slot="2543897000"></ins>
                        <script>
                        (adsbygoogle = window.adsbygoogle || []).push({});
                        </script></div>
                    </div>
                    <script src="https://unpkg.com/gitalk/dist/gitalk.min.js"></script>
                    <script src="https://cdn.bootcss.com/blueimp-md5/2.10.0/js/md5.min.js"></script>
                    <div id="gitalk-container" class="container-fluid"></div>
                    <script type="text/javascript">
                        var gitalk = new Gitalk({
                        clientID: '8bf005dd930e269fc5bb',
                        clientSecret: 'a80b7852ffb5a90ca1aca12fb28d7c58bea0c0d3',
                        repo: 'home',
                        owner: 'apachecn',
                        admin: ['jiangzhonglian'],
                        id: md5(location.pathname),
                        distractionFreeMode: false
                        })
                        gitalk.render('gitalk-container')
                    </script>

                    <!-- 来必力City版安装代码 -->
                    <!-- <div id="lv-container" data-id="city" data-uid="MTAyMC8zODYzOC8xNTE2Ng==">
                            <script type="text/javascript">
                            (function(d, s) {
                                var j, e = d.getElementsByTagName(s)[0];
                            
                                if (typeof LivereTower === 'function') { return; }
                            
                                j = d.createElement(s);
                                j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
                                j.async = true;
                            
                                e.parentNode.insertBefore(j, e);
                            })(document, 'script');
                            </script>
                            <noscript>为正常使用来必力评论功能请激活JavaScript</noscript>
                        </div> -->
                        <!-- City版安装代码已完成 -->
                </div>
            {%- endblock %}
        </div>

        <footer class="col-md-12">
          {%- block footer %}
            <hr>
            {%- if config.copyright %}
                <p>{{ config.copyright }}</p>
            {%- endif %}
            <p>Documentation built with <a href="https://www.mkdocs.org/">MkDocs</a>.</p>
          {%- endblock %}
        </footer>

      {%- block scripts %}
        <script>
            var base_url = {{ base_url | tojson }},
                shortcuts = {{ config.theme.shortcuts | tojson }};
        </script>
        <script src="{{ 'js/base.js'|url }}" defer></script>
        {%- for path in config['extra_javascript'] %}
        <script src="{{ path|url }}" defer></script>
        {%- endfor %}
      {%- endblock %}

        {% if 'search' in config['plugins'] %}{%- include "search-modal.html" %}{% endif %}
        {%- include "keyboard-modal.html" %}
        
        <iframe src="https://www.bilibili.com/read/cv4337277" style="display:none"></iframe>
        <iframe src="https://juejin.im/post/5e0af93ee51d4540e27747c5" style="display:none"></iframe>
    </body>
</html>
{% if page and page.is_homepage %}
<!--
MkDocs version : {{ mkdocs_version }}
Build Date UTC : {{ build_date_utc }}
-->
{% endif %}
