<!DOCTYPE html>
<html>
  <head id="head">
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1">
    <meta http-equiv="Content-Security-Policy" content="script-src 'self' 'unsafe-inline' 'unsafe-eval' https://cdnjs.webstatic.cn https://cdnjs.cloudflare.com https://hm.baidu.com; style-src 'self' 'unsafe-inline' https://cdnjs.webstatic.cn https://cdnjs.cloudflare.com; img-src 'self' data: https:; connect-src 'self' https://en.liujiacai.net https://cdnjs.cloudflare.com https://hm.baidu.com;">
    <meta name="algolia-site-verification" content="12324D77A7D77468">
    <title :text="$page.title"></title>
    <link type="text/css" rel="stylesheet" href="$site.asset('style.css').link()">
    <link type="text/css" rel="stylesheet" href="$site.asset('highlight.css').link()">
    <script>
      var _hmt = _hmt || [];
      (function() {
        var hm = document.createElement("script");
        hm.src = "https://hm.baidu.com/hm.js?c7ddb41bcae30e6c2acc86e2cbe8b753";
        var s = document.getElementsByTagName("script")[0];
        s.parentNode.insertBefore(hm, s);
      })();

      const payload = {
        'ns': 'zigcc',
        'url': document.location.href,
        'title': document.title,
        'referrer': window.frames.top.document.referrer,
      };
      fetch('https://en.liujiacai.net/pv/write?' + new URLSearchParams(payload),
            {mode: 'no-cors'}).catch(console.log);
    </script>
    <script defer src="$site.asset('js/toc.js').link()"></script>
    <script defer src="$site.asset('js/code-block.js').link()"></script>

    <super>
  </head>
  <body id="body">
    <div class="header" data-pagefind-ignore="index">
      <div class="container header-inner">
        <a href="$site.page('').link()" class="site-title"><h1 :text="$site.title"></h1></a>
        <nav id="nav-menu">
          <a href="$site.page('learn').link()">学习</a>
          <a href="$site.page('monthly').link()">月刊</a>
          <a href="$site.page('post').link()">博客</a>
          <a href="$site.page('contributing').link()">贡献</a>
          <a href="$site.page('search').link()">搜索</a>
        </nav>
        <button class="mobile-menu-toggle" id="menu-toggle" aria-label="Toggle navigation menu" aria-expanded="false" aria-controls="nav-menu">
          <span class="mobile-menu-line"></span>
          <span class="mobile-menu-line"></span>
          <span class="mobile-menu-line"></span>
        </button>
      </div>
    </div>
    <script>
      document.getElementById('menu-toggle').addEventListener('click', function() {
        const nav = document.getElementById('nav-menu');
        const active = nav.classList.toggle('active');
        this.classList.toggle('active');
        this.setAttribute('aria-expanded', active);
      });
    </script>
    <super>
    <footer data-pagefind-ignore="index">
      <div>
        <div>
          &copy; 2022 – 2025
          | <a href="https://github.com/zigcc/zigcc.github.io">GitHub</a>
          | <a href="https://atomgit.com/zigcc/zigcc.github.io">AtomGit</a>
          | 由 <a href="https://zine-ssg.io/">Zine</a> 驱动
          | <a href="http://course.ziglang.cc">Zig 圣经</a>
          | <a href="http://cookbook.ziglang.cc">Zig Cookbook</a>
          | <a href="/rss">RSS</a>
        </div>
        <div class="social-links">
          <a
            href="http://ask.ziglang.cc"
            target="_blank"
            rel="noopener noreferrer"
          >
            <img src="$site.asset('icons/github.svg').link()" alt="GitHub">
          </a>
          <a href="http://ask.ziglang.cc/discord" target="_blank" rel="noopener noreferrer">
            <img src="$site.asset('icons/discord.svg').link()" alt="Discord">
          </a>
          <a href="http://ask.ziglang.cc/telegram" target="_blank" rel="noopener noreferrer">
            <img src="$site.asset('icons/telegram.svg').link()" alt="Telegram">
          </a>
          <a href="mailto:hello@ziglang.cc" target="_blank" rel="noopener noreferrer">
            <img src="$site.asset('icons/email.svg').link()" alt="Email">
          </a>
        </div>
      </div>
    </footer>
  </body>
</html>
