-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
115 lines (109 loc) · 47.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<!doctype html>
<html lang="zh"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"><meta><title>貓謎工坊</title><link rel="manifest" href="/manifest.json"><meta name="application-name" content="貓謎工坊"><meta name="msapplication-TileImage" content="/img/favicon.png"><meta name="apple-mobile-web-app-capable" content="yes"><meta name="apple-mobile-web-app-title" content="貓謎工坊"><meta name="apple-mobile-web-app-status-bar-style" content="default"><meta description="Code · Thinking · ACG"><meta property="og:type" content="blog"><meta property="og:title" content="貓謎工坊"><meta property="og:url" content="https://smilin.net/"><meta property="og:site_name" content="貓謎工坊"><meta property="og:description" content="Code · Thinking · ACG"><meta property="og:locale" content="zh_TW"><meta property="og:image" content="https://smilin.net/img/avatar.png"><meta property="article:author" content="Mr.S"><meta property="article:tag" content="程式,教學,程式教學,BLOG,心得,smile,smilin,BackEnd,後端,後端開發,hexo,微笑,貓謎工坊,NekonazoAtelier,nekonazo,Atelier,貓謎"><meta property="twitter:card" content="summary"><meta property="twitter:image" content="https://smilin.net/img/avatar.png"><script type="application/ld+json">{"@context":"https://schema.org","@type":"BlogPosting","mainEntityOfPage":{"@type":"WebPage","@id":"https://smilin.net"},"headline":"貓謎工坊","image":["https://smilin.net/img/og_image.png"],"author":{"@type":"Person","name":"Smilin"},"description":"Code · Thinking · ACG"}</script><link rel="icon" href="/img/favicon.png"><meta name="referrer" content="no-referrer-when-downgrade"><link rel="stylesheet" href="https://cdnjs.loli.net/ajax/libs/font-awesome/5.12.0/css/all.min.css"><link rel="stylesheet" href="https://fonts.loli.net/css2?family=Ubuntu:wght@400;600&family=Source+Code+Pro"><link rel="stylesheet" href="/css/default.css"><link rel="stylesheet" href="https://cdnjs.loli.net/ajax/libs/font-awesome/5.12.0/css/all.min.css"><link rel="stylesheet" href="https://fonts.loli.net/css?family=Ubuntu:400,600|Source+Code+Pro|Monda:300,300italic,400,400italic,700,700italic|Roboto Slab:300,300italic,400,400italic,700,700italic|Microsoft YaHei:300,300italic,400,400italic,700,700italic|PT Mono:300,300italic,400,400italic,700,700italic&amp;subset=latin,latin-ext|Inconsolata|Itim|Lobster.css"><script src="https://cdnjs.loli.net/ajax/libs/jquery/3.3.1/jquery.min.js"></script><script src="/js/globalUtils.js"></script><script src="/js/animation.js" defer></script><!--!--><!--!--><script src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js" defer></script><!--!--><link rel="stylesheet" href="https://cdnjs.loli.net/ajax/libs/lightgallery/1.6.8/css/lightgallery.min.css"><link rel="stylesheet" href="https://cdnjs.loli.net/ajax/libs/justifiedGallery/3.7.0/css/justifiedGallery.min.css"><!--!--><!--!--><script src="https://cdnjs.loli.net/ajax/libs/pace/1.0.2/pace.min.js"></script><script async data-ad-client="ca-pub-6118312021004697" src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" crossorigin="anonymous"></script><link rel="stylesheet" href="/live2d/waifu.css"><script type="text/javascript" async src="/live2d/autoload.js"></script><meta name="generator" content="Hexo 5.4.2"><link rel="alternate" href="/atom.xml" title="貓謎工坊" type="application/atom+xml">
</head><body class="is-3-column has-navbar-fixed-top"><nav class="navbar navbar-main is-fixed-top"><div class="container"><div class="navbar-brand justify-content-center"><a class="navbar-item navbar-logo" href="/"><div style="margin-top: 8px;"><img class="logo-img" src="/img/logo/logo_light.svg" alt="貓謎工坊" height="28"><img class="logo-img-dark" src="/img/logo/logo_night.svg" alt="貓謎工坊" height="28"></div></a></div><div class="navbar-menu"><div class="navbar-start"><a class="navbar-item" href="/">首頁</a><a class="navbar-item" target="_blank" rel="noopener" href="https://drive.smilin.net/">雲端</a><a class="navbar-item" href="/message/">留言</a><a class="navbar-item" href="/friend/">友鏈</a><a class="navbar-item" href="/about/">自述</a></div><div class="navbar-end"><a class="navbar-item search" title="搜索" href="javascript:;"><i class="fas fa-search"></i></a><a class="navbar-item" id="night-nav" title="Night Mode" href="javascript:;"><i class="fas fa-moon" id="night-icon"></i></a></div></div></div></nav><script type="text/javascript" src="/js/theme-setting.js"></script><canvas id="universe" width="smilin" height="blog"></canvas><section class="section"><div class="container"><div class="columns"><div class="column order-2 column-main is-8-tablet is-8-desktop is-6-widescreen"><div class="card widget">
<div class="card-content">
<h3 class="menu-label">熱門推薦</h3><span id="index_hot_div">加載中,請稍等...</span>
</div>
</div><!--!--><div class="card"><article class="card-content article" role="article"><div class="article-meta size-small is-uppercase level is-mobile"><div class="level-left"><i class="far fa-calendar-plus"> </i>2024-08-12 <a class="commentCountImg" href="/2024/08/12/algoliaOnVitepress/#comment-container"><span class="display-none-class">e3041d841ed9103541cc7207e4f8219e</span><i class="far fa-comment-dots"></i> <span class="commentCount" id="e3041d841ed9103541cc7207e4f8219e">99+</span> </a><span class="level-item"><i class="far fa-clock"> </i>9 分鐘 <i class="fas fa-pencil-alt"> </i>1.4 k</span></div></div><h1 class="title is-3 is-size-4-mobile"><a class="link-muted" href="/2024/08/12/algoliaOnVitepress/">關於 algolia 在 vitepress 集成,踩雷過程</a></h1><div class="content"><p><img src="/img/post/algoliaOnVitepress/01.jpg"></p>
<p>因為想增強網站的搜尋力度,希望連文章的內文都可以搜索到<br>剛好 <code>vitepress</code> 是支援 <code>algolia</code> 的,試著配置<br>不料遇到的問題比想像的多,網路上的教學像是缺了幾塊拼圖似的<br>索性趁著剛完成腦袋還熱呼的現在,記錄一下遇到的問題。</p></div><div class="index-category-tag"><div class="level-item"><i class="fas fa-folder-open has-text-grey"> </i><a class="article-more button is-small link-muted index-categories" href="/categories/LoM-wiki/">LoM-wiki</a></div> <div class="level-item"><i class="fas fa-tags has-text-grey"> </i><a class="article-more button is-small link-muted index-tags" href="/tags/node-js/">node.js</a><span> </span><a class="article-more button is-small link-muted index-tags" href="/tags/vitepress/">vitepress</a><span> </span><a class="article-more button is-small link-muted index-tags" href="/tags/algolia/">algolia</a><span> </span><a class="article-more button is-small link-muted index-tags" href="/tags/%E6%B4%BB%E4%BF%A0%E5%82%B3/">活俠傳</a></div><hr></div><div class="level is-mobile is-flex"><div class="level-start"><div class="level-item"><a class="article-more button is-small size-small" href="/2024/08/12/algoliaOnVitepress/#more">閱讀更多>></a></div></div><div class="level-start"><div class="level-item has-text-grey is-size-7"><time datetime="2024-08-13T01:59:40.502Z"><i class="far fa-calendar-check"> 最後修改: </i>2024-08-13</time></div></div></div></article></div><div class="card"><article class="card-content article" role="article"><div class="article-meta size-small is-uppercase level is-mobile"><div class="level-left"><i class="far fa-calendar-plus"> </i>2024-05-03 <a class="commentCountImg" href="/2024/05/03/useTheme1/#comment-container"><span class="display-none-class">3e5e77684f4cd6a704cfe8be12074bc7</span><i class="far fa-comment-dots"></i> <span class="commentCount" id="3e5e77684f4cd6a704cfe8be12074bc7">99+</span> </a><span class="level-item"><i class="far fa-clock"> </i>8 分鐘 <i class="fas fa-pencil-alt"> </i>1.3 k</span></div></div><h1 class="title is-3 is-size-4-mobile"><a class="link-muted" href="/2024/05/03/useTheme1/">前幾天有人詢問我用的啥主題</a></h1><div class="content"><p><img src="/img/ai/letter_circle.png"></p>
<p>前幾天收到信,信中詢問使用的主題<br>想了下的確從沒寫過,索性紀錄一下。</p></div><div class="index-category-tag"><div class="level-item"><i class="fas fa-folder-open has-text-grey"> </i><a class="article-more button is-small link-muted index-categories" href="/categories/%E6%97%A5%E8%A8%98/">日記</a></div> <div class="level-item"><i class="fas fa-tags has-text-grey"> </i><a class="article-more button is-small link-muted index-tags" href="/tags/%E6%97%A5%E8%A8%98/">日記</a><span> </span><a class="article-more button is-small link-muted index-tags" href="/tags/hexo/">hexo</a></div><hr></div><div class="level is-mobile is-flex"><div class="level-start"><div class="level-item"><a class="article-more button is-small size-small" href="/2024/05/03/useTheme1/#more">閱讀更多>></a></div></div><div class="level-start"><div class="level-item has-text-grey is-size-7"><time datetime="2024-05-03T08:45:35.375Z"><i class="far fa-calendar-check"> 最後修改: </i>2024-05-03</time></div></div></div></article></div><div class="card"><article class="card-content article" role="article"><div class="article-meta size-small is-uppercase level is-mobile"><div class="level-left"><i class="far fa-calendar-plus"> </i>2024-04-30 <a class="commentCountImg" href="/2024/04/30/githubAction1/#comment-container"><span class="display-none-class">12bc0a902fab8d42ad9b6775ecabbdaf</span><i class="far fa-comment-dots"></i> <span class="commentCount" id="12bc0a902fab8d42ad9b6775ecabbdaf">99+</span> </a><span class="level-item"><i class="far fa-clock"> </i>6 分鐘 <i class="fas fa-pencil-alt"> </i>0.9 k</span></div></div><h1 class="title is-3 is-size-4-mobile"><a class="link-muted" href="/2024/04/30/githubAction1/">Github Action 學習紀錄</a></h1><div class="content"><h1 id="Auto-Pixai"><a href="#Auto-Pixai" class="headerlink" title="Auto-Pixai"></a>Auto-Pixai</h1><p><img src="https://raw.githubusercontent.com/Mr-Smilin/Auto-Pixai/main/public/pic/logo.png" alt="auto-pixai"></p>
<p>之前撰寫的 <a target="_blank" rel="noopener" href="https://github.com/Mr-Smilin/auto-pixai">auto-pixai</a><br>經過多次調整,基本修復了大部分的 bug</p>
<p>該專案透過爬蟲,<br>提供自動在 <a target="_blank" rel="noopener" href="https://pixai.art/">pixai</a> 簽到的功能</p>
<p>考量到便利性,<br>將專案打包成 docker image,<br>實現無狀態的部屬環境,<br>最後透過 github tag 控制版本歷程。</p>
<br>
<h2 id="整合部屬需求"><a href="#整合部屬需求" class="headerlink" title="整合部屬需求"></a>整合部屬需求</h2><p>雖然 User 用起來是方便了,<br>但每次開發部版都需要進行複雜的手續..</p>
<p>CI/CD …好..好想要 CI/CD 阿..<br>就在這麼想著的時候,想起了..</p>
<p><strong>Github Action!</strong></p></div><div class="index-category-tag"><div class="level-item"><i class="fas fa-folder-open has-text-grey"> </i><a class="article-more button is-small link-muted index-categories" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/">程式簡記</a></div> <div class="level-item"><i class="fas fa-tags has-text-grey"> </i><a class="article-more button is-small link-muted index-tags" href="/tags/github/">github</a><span> </span><a class="article-more button is-small link-muted index-tags" href="/tags/CI-CD/">CI/CD</a></div><hr></div><div class="level is-mobile is-flex"><div class="level-start"><div class="level-item"><a class="article-more button is-small size-small" href="/2024/04/30/githubAction1/#more">閱讀更多>></a></div></div></div></article></div><!--!--><div class="card"><article class="card-content article" role="article"><div class="article-meta size-small is-uppercase level is-mobile"><div class="level-left"><i class="far fa-calendar-plus"> </i>2024-04-23 <a class="commentCountImg" href="/2024/04/23/shareButton1/#comment-container"><span class="display-none-class">0aec775cdebf1ad1a05d094ffb0c69e9</span><i class="far fa-comment-dots"></i> <span class="commentCount" id="0aec775cdebf1ad1a05d094ffb0c69e9">99+</span> </a><span class="level-item"><i class="far fa-clock"> </i>8 分鐘 <i class="fas fa-pencil-alt"> </i>1.2 k</span></div></div><h1 class="title is-3 is-size-4-mobile"><a class="link-muted" href="/2024/04/23/shareButton1/">使用 AddToAny 分享箱,踩雷過程</a></h1><div class="content"><p><img src="/img/post/shareButton1/01.jpg"></p>
<p>網站之前有配置分享箱的系統,使用 <a target="_blank" rel="noopener" href="https://github.com/overtrue/share.js">sharejs</a> 依賴<br>該依賴只要套上預設即可,十分方便</p>
<p>不過 sharejs 最新的 release 已經是 2016 年的事了…</p>
<p>實際上有些按鈕已經過時,無法使用</p></div><div class="index-category-tag"><div class="level-item"><i class="fas fa-folder-open has-text-grey"> </i><a class="article-more button is-small link-muted index-categories" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/">程式簡記</a></div> <div class="level-item"><i class="fas fa-tags has-text-grey"> </i><a class="article-more button is-small link-muted index-tags" href="/tags/hexo/">hexo</a><span> </span><a class="article-more button is-small link-muted index-tags" href="/tags/addtoany/">addtoany</a></div><hr></div><div class="level is-mobile is-flex"><div class="level-start"><div class="level-item"><a class="article-more button is-small size-small" href="/2024/04/23/shareButton1/#more">閱讀更多>></a></div></div><div class="level-start"><div class="level-item has-text-grey is-size-7"><time datetime="2024-04-25T05:48:31.423Z"><i class="far fa-calendar-check"> 最後修改: </i>2024-04-25</time></div></div></div></article></div><div class="card"><article class="card-content article" role="article"><div class="article-meta size-small is-uppercase level is-mobile"><div class="level-left"><i class="far fa-calendar-plus"> </i>2024-04-23 <a class="commentCountImg" href="/2024/04/23/twikoo1/#comment-container"><span class="display-none-class">3b4793eac4719e87c17898cd22f3ce39</span><i class="far fa-comment-dots"></i> <span class="commentCount" id="3b4793eac4719e87c17898cd22f3ce39">99+</span> </a><span class="level-item"><i class="far fa-clock"> </i>4 分鐘 <i class="fas fa-pencil-alt"> </i>0.6 k</span></div></div><h1 class="title is-3 is-size-4-mobile"><a class="link-muted" href="/2024/04/23/twikoo1/">最近想更換評論系統</a></h1><div class="content"><p><img src="/img/post/twikoo1/twikoo-logo-home.png" alt="logo"></p>
<p>最近想把 blog 的評論系統換了</p>
<p>原本的 gittalk 免費,開源<br>巧妙利用 github 的 issue,在靜態網站上也能加入評論系統</p>
<p>存在些許不方便,仍瑕不掩瑜。</p>
<p>不過既然存在限制,總有人會想開發更好的工具<br>twikoo 就挺符合 blog 需求的</p></div><div class="index-category-tag"><div class="level-item"><i class="fas fa-folder-open has-text-grey"> </i><a class="article-more button is-small link-muted index-categories" href="/categories/%E6%97%A5%E8%A8%98/">日記</a></div> <div class="level-item"><i class="fas fa-tags has-text-grey"> </i><a class="article-more button is-small link-muted index-tags" href="/tags/%E6%97%A5%E8%A8%98/">日記</a><span> </span><a class="article-more button is-small link-muted index-tags" href="/tags/hexo/">hexo</a></div><hr></div><div class="level is-mobile is-flex"><div class="level-start"><div class="level-item"><a class="article-more button is-small size-small" href="/2024/04/23/twikoo1/#more">閱讀更多>></a></div></div></div></article></div><div class="card"><article class="card-content article" role="article"><div class="article-meta size-small is-uppercase level is-mobile"><div class="level-left"><i class="far fa-calendar-plus"> </i>2024-04-13 <a class="commentCountImg" href="/2024/04/13/autoPixai/#comment-container"><span class="display-none-class">f2424ea476b3d2ecfef8bfc610b0f6fd</span><i class="far fa-comment-dots"></i> <span class="commentCount" id="f2424ea476b3d2ecfef8bfc610b0f6fd">99+</span> </a><span class="level-item"><i class="far fa-clock"> </i>2 分鐘 <i class="fas fa-pencil-alt"> </i>0.3 k</span></div></div><h1 class="title is-3 is-size-4-mobile"><a class="link-muted" href="/2024/04/13/autoPixai/">自動領取 Pixai 每日獎勵</a></h1><div class="content"><p><img src="/img/post/autoPixai/01.jpg" alt="title"></p>
<p>工程網址<br><a target="_blank" rel="noopener" href="https://github.com/Mr-Smilin/auto-pixai">Github</a><br><a target="_blank" rel="noopener" href="https://hub.docker.com/r/smile0301/auto-pixai">Docker Hub</a></p>
<p>近幾年 AI 工具日新月異<br>我也有幸接觸了 AI 繪圖的一鱗半爪</p>
<p>其中 <a target="_blank" rel="noopener" href="https://pixai.art/">pixai</a> 是少有的雲端免費算圖網站</p>
<p>在 pixai 如果對產出來的圖感到滿意的話<br>可以透過 AI 進一步運算,產出會動的圖</p></div><div class="index-category-tag"><div class="level-item"><i class="fas fa-folder-open has-text-grey"> </i><a class="article-more button is-small link-muted index-categories" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/">程式簡記</a></div> <div class="level-item"><i class="fas fa-tags has-text-grey"> </i><a class="article-more button is-small link-muted index-tags" href="/tags/node-js/">node.js</a><span> </span><a class="article-more button is-small link-muted index-tags" href="/tags/%E6%95%99%E5%AD%B8/">教學</a><span> </span><a class="article-more button is-small link-muted index-tags" href="/tags/docker/">docker</a></div><hr></div><div class="level is-mobile is-flex"><div class="level-start"><div class="level-item"><a class="article-more button is-small size-small" href="/2024/04/13/autoPixai/#more">閱讀更多>></a></div></div><div class="level-start"><div class="level-item has-text-grey is-size-7"><time datetime="2024-04-23T01:59:41.712Z"><i class="far fa-calendar-check"> 最後修改: </i>2024-04-23</time></div></div></div></article></div><!--!--><div class="card"><article class="card-content article" role="article"><div class="article-meta size-small is-uppercase level is-mobile"><div class="level-left"><i class="far fa-calendar-plus"> </i>2024-04-11 <a class="commentCountImg" href="/2024/04/11/giveUp/#comment-container"><span class="display-none-class">37eba3c5706ac7c42abe287596c15a0d</span><i class="far fa-comment-dots"></i> <span class="commentCount" id="37eba3c5706ac7c42abe287596c15a0d">99+</span> </a><span class="level-item"><i class="far fa-clock"> </i>1 分鐘 <i class="fas fa-pencil-alt"> </i>0.2 k</span></div></div><h1 class="title is-3 is-size-4-mobile"><a class="link-muted" href="/2024/04/11/giveUp/">我的人生不需要英文</a></h1><div class="content"><p><img src="https://i.imgur.com/gwL59EQ.jpg" alt="title"></p>
<p>學不會,沒動力學,沒必要學</p></div><div class="index-category-tag"><div class="level-item"><i class="fas fa-folder-open has-text-grey"> </i><a class="article-more button is-small link-muted index-categories" href="/categories/%E6%97%A5%E8%A8%98/">日記</a></div> <div class="level-item"><i class="fas fa-tags has-text-grey"> </i><a class="article-more button is-small link-muted index-tags" href="/tags/%E6%97%A5%E8%A8%98/">日記</a></div><hr></div><div class="level is-mobile is-flex"><div class="level-start"><div class="level-item"><a class="article-more button is-small size-small" href="/2024/04/11/giveUp/#more">閱讀更多>></a></div></div></div></article></div><div class="card"><article class="card-content article" role="article"><div class="article-meta size-small is-uppercase level is-mobile"><div class="level-left"><i class="far fa-calendar-plus"> </i>2023-10-27 <a class="commentCountImg" href="/2023/10/27/rust_learning_02/#comment-container"><span class="display-none-class">6bb348b02617fc1da5996a219e758345</span><i class="far fa-comment-dots"></i> <span class="commentCount" id="6bb348b02617fc1da5996a219e758345">99+</span> </a><span class="level-item"><i class="far fa-clock"> </i>4 分鐘 <i class="fas fa-pencil-alt"> </i>0.6 k</span></div></div><h1 class="title is-3 is-size-4-mobile"><a class="link-muted" href="/2023/10/27/rust_learning_02/">Rust 學習紀錄[2] = Rust 的 NPM</a></h1><div class="content"><p>讓我們接著原本的進度繼續</p></div><div class="index-category-tag"><div class="level-item"><i class="fas fa-folder-open has-text-grey"> </i><a class="article-more button is-small link-muted index-categories" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/">程式簡記</a><span> </span><a class="article-more button is-small link-muted index-categories" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/%E7%A8%8B%E5%BC%8F%E7%9B%B8%E9%97%9C/">程式相關</a><span> </span><a class="article-more button is-small link-muted index-categories" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/%E7%A8%8B%E5%BC%8F%E7%9B%B8%E9%97%9C/Rust/">Rust</a></div> <div class="level-item"><i class="fas fa-tags has-text-grey"> </i><a class="article-more button is-small link-muted index-tags" href="/tags/Rust/">Rust</a></div><hr></div><div class="level is-mobile is-flex"><div class="level-start"><div class="level-item"><a class="article-more button is-small size-small" href="/2023/10/27/rust_learning_02/#more">閱讀更多>></a></div></div></div></article></div><div class="card"><article class="card-content article" role="article"><div class="article-meta size-small is-uppercase level is-mobile"><div class="level-left"><i class="far fa-calendar-plus"> </i>2023-10-27 <a class="commentCountImg" href="/2023/10/27/rust_learning_01/#comment-container"><span class="display-none-class">3a7155b856248daf8e8a24fe147a7251</span><i class="far fa-comment-dots"></i> <span class="commentCount" id="3a7155b856248daf8e8a24fe147a7251">99+</span> </a><span class="level-item"><i class="far fa-clock"> </i>5 分鐘 <i class="fas fa-pencil-alt"> </i>0.7 k</span></div></div><h1 class="title is-3 is-size-4-mobile"><a class="link-muted" href="/2023/10/27/rust_learning_01/">Rust 學習紀錄[1] = 日誌中的教學</a></h1><div class="content"><p>工欲善其事,必先利其器<br>想學一門語言,要從一篇教學文檔找起</p>
<p><a target="_blank" rel="noopener" href="https://doc.rust-lang.org/book/">官方文檔</a></p>
<p>恩,官方文檔看起來挺不錯的,就這個吧</p>
<p>這篇文撰寫當下,文檔對應 Rust 版本為 <code>Rust 1.67.1 (released 2023-02-09) or later</code><br>如果因為版本不同造成閱讀的困擾的話,可以在學會安裝 Rust 後自行降版學習。</p></div><div class="index-category-tag"><div class="level-item"><i class="fas fa-folder-open has-text-grey"> </i><a class="article-more button is-small link-muted index-categories" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/">程式簡記</a><span> </span><a class="article-more button is-small link-muted index-categories" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/%E7%A8%8B%E5%BC%8F%E7%9B%B8%E9%97%9C/">程式相關</a><span> </span><a class="article-more button is-small link-muted index-categories" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/%E7%A8%8B%E5%BC%8F%E7%9B%B8%E9%97%9C/Rust/">Rust</a></div> <div class="level-item"><i class="fas fa-tags has-text-grey"> </i><a class="article-more button is-small link-muted index-tags" href="/tags/Rust/">Rust</a></div><hr></div><div class="level is-mobile is-flex"><div class="level-start"><div class="level-item"><a class="article-more button is-small size-small" href="/2023/10/27/rust_learning_01/#more">閱讀更多>></a></div></div><div class="level-start"><div class="level-item has-text-grey is-size-7"><time datetime="2023-10-27T10:32:06.322Z"><i class="far fa-calendar-check"> 最後修改: </i>2023-10-27</time></div></div></div></article></div><div class="card"><article class="card-content article" role="article"><div class="article-meta size-small is-uppercase level is-mobile"><div class="level-left"><i class="far fa-calendar-plus"> </i>2023-10-27 <a class="commentCountImg" href="/2023/10/27/rust_learning_00/#comment-container"><span class="display-none-class">173dcd9103ad146cb5bc587cefc4bfa4</span><i class="far fa-comment-dots"></i> <span class="commentCount" id="173dcd9103ad146cb5bc587cefc4bfa4">99+</span> </a><span class="level-item"><i class="far fa-clock"> </i>2 分鐘 <i class="fas fa-pencil-alt"> </i>0.3 k</span></div></div><h1 class="title is-3 is-size-4-mobile"><a class="link-muted" href="/2023/10/27/rust_learning_00/">Rust 學習紀錄[0] = 前言</a></h1><div class="content"><p><img src="https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Rust_programming_language_black_logo.svg/216px-Rust_programming_language_black_logo.svg.png" alt="Rust"></p>
<br>
<p>2021 年 2 月,Rust 基金會成立</p>
<p>以 AWS、GOOGLE 等多家資訊巨頭為首<br>因為看好 Rust 兼顧了高效能 & 安全性而投資<br>使得 Rust 這兩年有了巨大的成長。</p>
<p>這也是為什麼,近幾年工程師無論如何不願意<br>多少也會聽過 Rust 的名號,隱隱有與 C++ 並駕齊驅的勢頭。</p></div><div class="index-category-tag"><div class="level-item"><i class="fas fa-folder-open has-text-grey"> </i><a class="article-more button is-small link-muted index-categories" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/">程式簡記</a><span> </span><a class="article-more button is-small link-muted index-categories" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/%E7%A8%8B%E5%BC%8F%E7%9B%B8%E9%97%9C/">程式相關</a><span> </span><a class="article-more button is-small link-muted index-categories" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/%E7%A8%8B%E5%BC%8F%E7%9B%B8%E9%97%9C/Rust/">Rust</a></div> <div class="level-item"><i class="fas fa-tags has-text-grey"> </i><a class="article-more button is-small link-muted index-tags" href="/tags/Rust/">Rust</a></div><hr></div><div class="level is-mobile is-flex"><div class="level-start"><div class="level-item"><a class="article-more button is-small size-small" href="/2023/10/27/rust_learning_00/#more">閱讀更多>></a></div></div><div class="level-start"><div class="level-item has-text-grey is-size-7"><time datetime="2023-10-27T08:40:10.441Z"><i class="far fa-calendar-check"> 最後修改: </i>2023-10-27</time></div></div></div></article></div><!--!--><nav class="pagination" role="navigation" aria-label="pagination"><div class="pagination-previous is-invisible is-hidden-mobile"><a href="/page/0/">上一頁</a></div><div class="pagination-next"><a href="/page/2/">下一頁</a></div><ul class="pagination-list is-hidden-mobile"><li><a class="pagination-link is-current" href="/">1</a></li><li><a class="pagination-link" href="/page/2/">2</a></li><li><span class="pagination-ellipsis">…</span></li><li><a class="pagination-link" href="/page/6/">6</a></li></ul></nav></div><div class="column column-left is-4-tablet is-4-desktop is-3-widescreen order-1"><!--!--><div class="card widget" data-type="profile"><div class="card-content"><nav class="level"><div class="level-item has-text-centered flex-shrink-1"><div><figure class="image is-128x128 mx-auto mb-2"><img class="avatar is-rounded" src="/img/avatar.png" alt="微笑"></figure><p class="title is-size-4 is-block" style="line-height:inherit;">微笑</p><p class="is-size-6 is-block mb-2">NekonazoAtelier</p><p class="is-size-6 is-flex justify-content-center"><i class="fas fa-map-marker-alt mr-1"></i><span>台灣</span></p></div></div></nav><nav class="level is-mobile"><div class="level-item has-text-centered is-marginless"><div><p class="heading">文章</p><a href="/archives"><p class="title">55</p></a></div></div><div class="level-item has-text-centered is-marginless"><div><p class="heading">分類</p><a href="/categories"><p class="title">13</p></a></div></div><div class="level-item has-text-centered is-marginless"><div><p class="heading">標籤</p><a href="/tags"><p class="title">27</p></a></div></div></nav><div class="level"><a class="level-item button is-primary is-rounded" href="https://www.youtube.com/playlist?list=PLfv69MM6gyefWRdJuRf9OCMIq3Pd3zNPS" target="_blank" rel="noopener">這顆按鈕為什麼這麼大?</a></div><div class="level is-mobile"><a class="level-item button is-transparent is-marginless" target="_blank" rel="noopener" title="ATOM" href="/atom.xml"><i class="fa fa-rss-square"></i></a><a class="level-item button is-transparent is-marginless" target="_blank" rel="noopener" title="RSS" href="/rss.xml"><i class="fa fa-rss"></i></a><a class="level-item button is-transparent is-marginless" target="_blank" rel="noopener" title="FEED" href="/feed.json"><i class="fa fa-file-code"></i></a></div></div></div><div class="card widget"><div class="card-content"><div class="menu"><h3 class="menu-label">歸檔</h3><ul class="menu-list"><li><a class="level is-mobile is-marginless" href="/archives/2024/08/"><span class="level-start"><span class="level-item">2024 年 8 月</span></span><span class="level-end"><span class="level-item tag">1</span></span></a></li><li><a class="level is-mobile is-marginless" href="/archives/2024/05/"><span class="level-start"><span class="level-item">2024 年 5 月</span></span><span class="level-end"><span class="level-item tag">1</span></span></a></li><li><a class="level is-mobile is-marginless" href="/archives/2024/04/"><span class="level-start"><span class="level-item">2024 年 4 月</span></span><span class="level-end"><span class="level-item tag">5</span></span></a></li><li><a class="level is-mobile is-marginless" href="/archives/2023/10/"><span class="level-start"><span class="level-item">2023 年 10 月</span></span><span class="level-end"><span class="level-item tag">3</span></span></a></li><li><a class="level is-mobile is-marginless" href="/archives/2023/09/"><span class="level-start"><span class="level-item">2023 年 9 月</span></span><span class="level-end"><span class="level-item tag">3</span></span></a></li><li><a class="level is-mobile is-marginless" href="/archives/2023/06/"><span class="level-start"><span class="level-item">2023 年 6 月</span></span><span class="level-end"><span class="level-item tag">1</span></span></a></li><li><a class="level is-mobile is-marginless" href="/archives/2023/03/"><span class="level-start"><span class="level-item">2023 年 3 月</span></span><span class="level-end"><span class="level-item tag">1</span></span></a></li><li><a class="level is-mobile is-marginless" href="/archives/2022/11/"><span class="level-start"><span class="level-item">2022 年 11 月</span></span><span class="level-end"><span class="level-item tag">1</span></span></a></li><li><a class="level is-mobile is-marginless" href="/archives/2022/10/"><span class="level-start"><span class="level-item">2022 年 10 月</span></span><span class="level-end"><span class="level-item tag">2</span></span></a></li><li><a class="level is-mobile is-marginless" href="/archives/2022/01/"><span class="level-start"><span class="level-item">2022 年 1 月</span></span><span class="level-end"><span class="level-item tag">1</span></span></a></li><li><a class="level is-mobile is-marginless" href="/archives/2021/12/"><span class="level-start"><span class="level-item">2021 年 12 月</span></span><span class="level-end"><span class="level-item tag">1</span></span></a></li><li><a class="level is-mobile is-marginless" href="/archives/2021/11/"><span class="level-start"><span class="level-item">2021 年 11 月</span></span><span class="level-end"><span class="level-item tag">2</span></span></a></li><li><a class="level is-mobile is-marginless" href="/archives/2021/09/"><span class="level-start"><span class="level-item">2021 年 9 月</span></span><span class="level-end"><span class="level-item tag">2</span></span></a></li><li><a class="level is-mobile is-marginless" href="/archives/2020/09/"><span class="level-start"><span class="level-item">2020 年 9 月</span></span><span class="level-end"><span class="level-item tag">31</span></span></a></li></ul></div></div></div><div class="column-right-shadow is-hidden-widescreen is-sticky"></div></div><div class="column column-right is-4-tablet is-4-desktop is-3-widescreen is-hidden-touch is-hidden-desktop-only order-3 is-sticky"><div class="card widget"><div class="card-content"><h3 class="menu-label">最新評論</h3><span class="body_hot_comment">加載中,最新評論有1分鐘緩存...</span></div></div><div class="card widget"><div class="card-content"><h3 class="menu-label">最新文章</h3><article class="media"><div class="media-content"><p class="date"><time dateTime="2024-08-12T09:00:00.000Z">2024-08-12</time></p><p class="title"><a href="/2024/08/12/algoliaOnVitepress/">關於 algolia 在 vitepress 集成,踩雷過程</a></p><p class="categories"><a href="/categories/LoM-wiki/">LoM-wiki</a></p></div></article><article class="media"><div class="media-content"><p class="date"><time dateTime="2024-05-03T07:00:00.000Z">2024-05-03</time></p><p class="title"><a href="/2024/05/03/useTheme1/">前幾天有人詢問我用的啥主題</a></p><p class="categories"><a href="/categories/%E6%97%A5%E8%A8%98/">日記</a></p></div></article><article class="media"><div class="media-content"><p class="date"><time dateTime="2024-04-30T07:00:00.000Z">2024-04-30</time></p><p class="title"><a href="/2024/04/30/githubAction1/">Github Action 學習紀錄</a></p><p class="categories"><a href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/">程式簡記</a></p></div></article><article class="media"><div class="media-content"><p class="date"><time dateTime="2024-04-23T10:00:00.000Z">2024-04-23</time></p><p class="title"><a href="/2024/04/23/shareButton1/">使用 AddToAny 分享箱,踩雷過程</a></p><p class="categories"><a href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/">程式簡記</a></p></div></article><article class="media"><div class="media-content"><p class="date"><time dateTime="2024-04-23T03:00:00.000Z">2024-04-23</time></p><p class="title"><a href="/2024/04/23/twikoo1/">最近想更換評論系統</a></p><p class="categories"><a href="/categories/%E6%97%A5%E8%A8%98/">日記</a></p></div></article></div></div><div class="card widget"><div class="card-content"><div class="menu"><h3 class="menu-label">分類</h3><ul class="menu-list"><li><a class="level is-mobile is-marginless" href="/categories/BaseDiscordBot/"><span class="level-start"><span class="level-item">BaseDiscordBot</span></span><span class="level-end"><span class="level-item tag">4</span></span></a><ul class="mr-0"><li><a class="level is-mobile is-marginless" href="/categories/BaseDiscordBot/%E6%9B%B4%E6%96%B0%E6%97%A5%E8%AA%8C/"><span class="level-start"><span class="level-item">更新日誌</span></span><span class="level-end"><span class="level-item tag">3</span></span></a></li></ul></li><li><a class="level is-mobile is-marginless" href="/categories/LoM-wiki/"><span class="level-start"><span class="level-item">LoM-wiki</span></span><span class="level-end"><span class="level-item tag">1</span></span></a></li><li><a class="level is-mobile is-marginless" href="/categories/hexo%E4%B8%BB%E9%A1%8C%E5%88%86%E4%BA%AB/"><span class="level-start"><span class="level-item">hexo主題分享</span></span><span class="level-end"><span class="level-item tag">1</span></span></a></li><li><a class="level is-mobile is-marginless" href="/categories/%E6%97%A5%E8%A8%98/"><span class="level-start"><span class="level-item">日記</span></span><span class="level-end"><span class="level-item tag">6</span></span></a></li><li><a class="level is-mobile is-marginless" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/"><span class="level-start"><span class="level-item">程式簡記</span></span><span class="level-end"><span class="level-item tag">11</span></span></a><ul class="mr-0"><li><a class="level is-mobile is-marginless" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/%E7%A8%8B%E5%BC%8F%E7%9B%B8%E9%97%9C/"><span class="level-start"><span class="level-item">程式相關</span></span><span class="level-end"><span class="level-item tag">4</span></span></a><ul class="mr-0"><li><a class="level is-mobile is-marginless" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/%E7%A8%8B%E5%BC%8F%E7%9B%B8%E9%97%9C/Rust/"><span class="level-start"><span class="level-item">Rust</span></span><span class="level-end"><span class="level-item tag">3</span></span></a></li><li><a class="level is-mobile is-marginless" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/%E7%A8%8B%E5%BC%8F%E7%9B%B8%E9%97%9C/javascript/"><span class="level-start"><span class="level-item">javascript</span></span><span class="level-end"><span class="level-item tag">1</span></span></a></li></ul></li><li><a class="level is-mobile is-marginless" href="/categories/%E7%A8%8B%E5%BC%8F%E7%B0%A1%E8%A8%98/%E8%A8%97%E7%AE%A1%E5%B9%B3%E5%8F%B0%E7%9B%B8%E9%97%9C/"><span class="level-start"><span class="level-item">託管平台相關</span></span><span class="level-end"><span class="level-item tag">1</span></span></a></li></ul></li><a class="level is-mobile is-marginless" href="/categories/"><span class="level-start"><span class="level-item">查看全部>></span></span></a></ul></div></div></div><div class="card widget"><div class="card-content"><div class="menu"><h3 class="menu-label">標籤</h3><div class="field is-grouped is-grouped-multiline"><div class="control"><a class="tags has-addons" href="/tags/node-js/"><span class="tag">node.js</span><span class="tag is-grey-lightest">39</span></a></div><div class="control"><a class="tags has-addons" href="/tags/bot/"><span class="tag">bot</span><span class="tag is-grey-lightest">37</span></a></div><div class="control"><a class="tags has-addons" href="/tags/discord/"><span class="tag">discord</span><span class="tag is-grey-lightest">37</span></a></div><div class="control"><a class="tags has-addons" href="/tags/discord-js/"><span class="tag">discord.js</span><span class="tag is-grey-lightest">37</span></a></div><div class="control"><a class="tags has-addons" href="/tags/%E6%95%99%E5%AD%B8/"><span class="tag">教學</span><span class="tag is-grey-lightest">37</span></a></div><div class="control"><a class="tags has-addons" href="/tags/12th%E9%90%B5%E4%BA%BA%E8%B3%BD/"><span class="tag">12th鐵人賽</span><span class="tag is-grey-lightest">31</span></a></div><div class="control"><a class="tags has-addons" href="/tags/%E6%97%A5%E8%A8%98/"><span class="tag">日記</span><span class="tag is-grey-lightest">6</span></a></div><div class="control"><a class="tags has-addons" href="/tags/hexo/"><span class="tag">hexo</span><span class="tag is-grey-lightest">4</span></a></div><div class="control"><a class="tags has-addons" href="/tags/Rust/"><span class="tag">Rust</span><span class="tag is-grey-lightest">3</span></a></div><div class="control"><a class="tags has-addons" href="/tags/Alist/"><span class="tag">Alist</span><span class="tag is-grey-lightest">2</span></a></div><div class="control"><a class="tags has-addons" href="/tags/CI-CD/"><span class="tag">CI/CD</span><span class="tag is-grey-lightest">1</span></a></div><div class="control"><a class="tags has-addons" href="/tags/Cloudflare/"><span class="tag">Cloudflare</span><span class="tag is-grey-lightest">1</span></a></div><div class="control"><a class="tags has-addons" href="/tags/Live2D/"><span class="tag">Live2D</span><span class="tag is-grey-lightest">1</span></a></div><div class="control"><a class="tags has-addons" href="/tags/addtoany/"><span class="tag">addtoany</span><span class="tag is-grey-lightest">1</span></a></div><div class="control"><a class="tags has-addons" href="/tags/algolia/"><span class="tag">algolia</span><span class="tag is-grey-lightest">1</span></a></div><div class="control"><a class="tags has-addons" href="/tags/docker/"><span class="tag">docker</span><span class="tag is-grey-lightest">1</span></a></div><div class="control"><a class="tags has-addons" href="/tags/fluid/"><span class="tag">fluid</span><span class="tag is-grey-lightest">1</span></a></div><div class="control"><a class="tags has-addons" href="/tags/github/"><span class="tag">github</span><span class="tag is-grey-lightest">1</span></a></div><div class="control"><a class="tags has-addons" href="/tags/heroku/"><span class="tag">heroku</span><span class="tag is-grey-lightest">1</span></a></div><div class="control"><a class="tags has-addons" href="/tags/javascript/"><span class="tag">javascript</span><span class="tag is-grey-lightest">1</span></a></div></div><div class="field is-grouped is-grouped-multiline"><a class="tags has-addons" href="/tags/"><span class="tag">查看全部>></span></a></div></div></div></div><!--!--></div></div></div></section><footer class="footer"><div class="container"><div class="level"><div class="level-start"><a class="footer-logo is-block mb-2" href="/"><div><img class="logo-img" src="/img/logo/logo_light.svg" alt="貓謎工坊" height="28"><img class="logo-img-dark" src="/img/logo/logo_night.svg" alt="貓謎工坊" height="28"></div></a><p class="size-small"><span>© 2024 Smilin</span> Powered by <a href="https://hexo.io/" target="_blank">Hexo</a> & <a href="https://github.com/ppoffice/hexo-theme-icarus" target="_blank">Icarus</a> <br><span><span id="statistic-times">loading...</span><script>function createTime(time) {
var n = new Date(time);
now.setTime(now.getTime() + 250),
days = (now - n) / 1e3 / 60 / 60 / 24,
dnum = Math.floor(days),
hours = (now - n) / 1e3 / 60 / 60 - 24 * dnum,
hnum = Math.floor(hours),
1 == String(hnum).length && (hnum = "0" + hnum),
minutes = (now - n) / 1e3 / 60 - 1440 * dnum - 60 * hnum,
mnum = Math.floor(minutes),
1 == String(mnum).length && (mnum = "0" + mnum),
seconds = (now - n) / 1e3 - 86400 * dnum - 3600 * hnum - 60 * mnum,
snum = Math.round(seconds),
1 == String(snum).length && (snum = "0" + snum),
document.getElementById("statistic-times").innerHTML = "自 <strong>"+time.split(" ")[0].replace(/\//g,".")+"</strong> 起運行了 <strong>" + dnum + "</strong> 天 <strong>" + hnum + "</strong> 小時 <strong>" + mnum + "</strong> 分 <strong>" + snum + "</strong> 秒 ";
}var now = new Date();setInterval("createTime('2021/09/15 18:00:00')", 250,"");</script><br></span><div class="size-small"><span>共 <strong><span id="busuanzi_value_site_uv">99+</span></strong> 位訪客</span></div></p></div><div class="level-end"><div class="field has-addons"><p class="control"><a class="button is-transparent is-large" target="_blank" rel="noopener" title="Creative Commons" href="https://creativecommons.org/"><i class="fab fa-creative-commons"></i></a></p><p class="control"><a class="button is-transparent is-large" target="_blank" rel="noopener" title="Attribution 4.0 International" href="https://creativecommons.org/licenses/by/4.0/"><i class="fab fa-creative-commons-by"></i></a></p></div><div class="sideMusic"><link rel="stylesheet" href="/dist/APlayer.min.css"><div id="aplayer"></div><script type="text/javascript" src="/dist/APlayer.min.js"></script><script type="text/javascript" src="/dist/music.js"></script></div><script type="text/javascript" color="0,205,205" opacity="0.7" zIndex="-2" count="99" src="//cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.min.js"></script></div></div></div></footer><script src="https://cdnjs.loli.net/ajax/libs/moment.js/2.22.2/moment-with-locales.min.js"></script><script src="https://cdnjs.loli.net/ajax/libs/clipboard.js/2.0.4/clipboard.min.js" async></script><script>moment.locale("zh-TW");</script><script>var IcarusThemeSettings = {
article: {
highlight: {
clipboard: true,
fold: 'unfolded'
}
}
};</script><script src="/js/column.js"></script><script src="/js/animation.js" defer></script><a id="back-to-top" title="回到頂端" href="javascript:;"><i class="fas fa-chevron-up"></i></a><script src="/js/back_to_top.js" defer></script><!--!--><!--!--><!--!--><script src="https://cdnjs.loli.net/ajax/libs/lightgallery/1.6.8/js/lightgallery.min.js" defer></script><script src="https://cdnjs.loli.net/ajax/libs/justifiedGallery/3.7.0/js/jquery.justifiedGallery.min.js" defer></script><script>window.addEventListener("load", () => {
if (typeof $.fn.lightGallery === 'function') {
$('.article').lightGallery({ selector: '.gallery-item' });
}
if (typeof $.fn.justifiedGallery === 'function') {
if ($('.justified-gallery > p > .gallery-item').length) {
$('.justified-gallery > p > .gallery-item').unwrap();
}
$('.justified-gallery').justifiedGallery();
}
});</script><!--!--><!--!--><!--!--><script src="/js/main.js" defer></script><script>$.getScript('/js/comment-issue-data.js',function(){loadIssueData('9a33a548232178c23121','bbdfbe2d45288ac4b37a315cb1aa7c1a50dd9fa6','Mr-Smilin','Mr-Smilin.github.io',false);})</script><script src="https://cdn.bootcdn.net/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script><div class="searchbox"><div class="searchbox-container"><div class="searchbox-header"><div class="searchbox-input-container"><input class="searchbox-input" type="text" placeholder="想要查找什麼..."></div><a class="searchbox-close" href="javascript:;">×</a></div><div class="searchbox-body"></div></div></div><script src="/js/insight.js" defer></script><script>document.addEventListener('DOMContentLoaded', function () {
loadInsight({"contentUrl":"/content.json"}, {"hint":"想要查找什麼...","untitled":"(無標題)","posts":"文章","pages":"頁面","categories":"分類","tags":"標籤"});
});</script><script src="https://cdn.jsdelivr.net/npm/pjax@0.2.8/pjax.js"></script><script type="text/javascript">var pjax = new Pjax({
elements: "a",//代表点击链接就更新
selectors: [ //代表要更新的节点
".section",
"title"
],
cache: true,
cacheBust:false
})
function loadBusuanzi(){
$.getScript("//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js", function () {});
}
function loadMathJax() { //加载mathjax
$.getScript("//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML", function () {
MathJax.Hub.Config({ tex2jax: { inlineMath: [['$', '$'], ['\(', '\)']] } });
var math = document.getElementsByClassName("entry-content")[0];
MathJax.Hub.Queue(["Typeset", MathJax.Hub, math]);
});
};
// 开始 PJAX 执行的函数
document.addEventListener('pjax:send', function () {
});
// PJAX 完成之后执行的函数,可以和上面的重载放在一起
document.addEventListener('pjax:complete', function () {
$(".section").css({opacity:1});
if(true){
$.getScript('/js/comment-issue-data.js',function(){loadIssueData('9a33a548232178c23121','bbdfbe2d45288ac4b37a315cb1aa7c1a50dd9fa6','Mr-Smilin','Mr-Smilin.github.io',false);});
}
if(false){
loadMathJax();
}
if(true){
a2a.init_all();
}
loadMainJs(jQuery, window.moment, window.ClipboardJS, window.IcarusThemeSettings);
loadBackTop();
loadBusuanzi();
if(typeof loadBanner == 'function'){
loadBanner();
}
});</script><script src="/js/universe.js"></script></body></html>