-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHexo配置.html
29 lines (27 loc) · 26.8 KB
/
Hexo配置.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
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>fangyuan's site</title>
<meta name="description" content="The blog of fangyuanmeow">
<meta name="generator" content="VitePress v1.3.1">
<link rel="preload stylesheet" href="/assets/style.DHT7XZFd.css" as="style">
<script type="module" src="/assets/app.CNRxO2n3.js"></script>
<link rel="preload" href="/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
<link rel="modulepreload" href="/assets/chunks/framework.Djspl_t8.js">
<link rel="modulepreload" href="/assets/chunks/theme.CtIpJoS7.js">
<link rel="modulepreload" href="/assets/Hexo配置.md.pHMfkoHI.lean.js">
<script id="check-dark-mode">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"auto",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
<script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
</head>
<body>
<div id="app"><div class="Layout" data-v-5d98c3a5><!--[--><!--]--><!--[--><span tabindex="-1" data-v-0f60ec36></span><a href="#VPContent" class="VPSkipLink visually-hidden" data-v-0f60ec36> Skip to content </a><!--]--><!----><header class="VPNav" data-v-5d98c3a5 data-v-ae24b3ad><div class="VPNavBar top" data-v-ae24b3ad data-v-6aa21345><div class="wrapper" data-v-6aa21345><div class="container" data-v-6aa21345><div class="title" data-v-6aa21345><div class="VPNavBarTitle" data-v-6aa21345 data-v-ab179fa1><a class="title" href="/" data-v-ab179fa1><!--[--><!--]--><!----><span data-v-ab179fa1>fangyuan's site</span><!--[--><!--]--></a></div></div><div class="content" data-v-6aa21345><div class="content-body" data-v-6aa21345><!--[--><!--]--><div class="VPNavBarSearch search" data-v-6aa21345><!--[--><!----><div id="local-search"><button type="button" class="DocSearch DocSearch-Button" aria-label="Search"><span class="DocSearch-Button-Container"><span class="vp-icon DocSearch-Search-Icon"></span><span class="DocSearch-Button-Placeholder">Search</span></span><span class="DocSearch-Button-Keys"><kbd class="DocSearch-Button-Key"></kbd><kbd class="DocSearch-Button-Key">K</kbd></span></button></div><!--]--></div><nav aria-labelledby="main-nav-aria-label" class="VPNavBarMenu menu" data-v-6aa21345 data-v-dc692963><span id="main-nav-aria-label" class="visually-hidden" data-v-dc692963> Main Navigation </span><!--[--><!--[--><div class="VPFlyout VPNavBarMenuGroup active" data-v-dc692963 data-v-b6c34ac9><button type="button" class="button" aria-haspopup="true" aria-expanded="false" data-v-b6c34ac9><span class="text" data-v-b6c34ac9><!----><span data-v-b6c34ac9>前端</span><span class="vpi-chevron-down text-icon" data-v-b6c34ac9></span></span></button><div class="menu" data-v-b6c34ac9><div class="VPMenu" data-v-b6c34ac9 data-v-b98bc113><div class="items" data-v-b98bc113><!--[--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/Hexo%E5%86%99%E4%BD%9C.html" data-v-43f1e123><!--[-->Hexo写作<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/Hexo%E6%8F%92%E4%BB%B6%E6%8E%A8%E8%8D%90.html" data-v-43f1e123><!--[-->Hexo插件推荐<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link active" href="/Hexo%E9%85%8D%E7%BD%AE.html" data-v-43f1e123><!--[-->Hexo配置<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/nodejs%E7%89%88%E6%9C%AC%E5%8D%87%E7%BA%A7.html" data-v-43f1e123><!--[-->nodejs版本升级<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/vue%E6%A1%86%E6%9E%B6%E4%B8%8B%E7%9A%84%E5%93%8D%E5%BA%94%E5%BC%8F%E6%97%B6%E9%92%9F.html" data-v-43f1e123><!--[-->vue框架下的响应式时钟<!--]--></a></div><!--]--><!--]--></div><!--[--><!--]--></div></div></div><!--]--><!--[--><div class="VPFlyout VPNavBarMenuGroup" data-v-dc692963 data-v-b6c34ac9><button type="button" class="button" aria-haspopup="true" aria-expanded="false" data-v-b6c34ac9><span class="text" data-v-b6c34ac9><!----><span data-v-b6c34ac9>运维</span><span class="vpi-chevron-down text-icon" data-v-b6c34ac9></span></span></button><div class="menu" data-v-b6c34ac9><div class="VPMenu" data-v-b6c34ac9 data-v-b98bc113><div class="items" data-v-b98bc113><!--[--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/git%E4%B8%AD%E6%96%87%E4%B9%B1%E7%A0%81%E9%97%AE%E9%A2%98.html" data-v-43f1e123><!--[-->git中文乱码问题<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/pacman%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4.html" data-v-43f1e123><!--[-->pacman常用命令<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/termux%E9%85%8D%E7%BD%AE.html" data-v-43f1e123><!--[-->termux配置<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/%E4%BD%BF%E7%94%A8code-server.html" data-v-43f1e123><!--[-->使用code-server<!--]--></a></div><!--]--><!--]--></div><!--[--><!--]--></div></div></div><!--]--><!--[--><div class="VPFlyout VPNavBarMenuGroup" data-v-dc692963 data-v-b6c34ac9><button type="button" class="button" aria-haspopup="true" aria-expanded="false" data-v-b6c34ac9><span class="text" data-v-b6c34ac9><!----><span data-v-b6c34ac9>生活</span><span class="vpi-chevron-down text-icon" data-v-b6c34ac9></span></span></button><div class="menu" data-v-b6c34ac9><div class="VPMenu" data-v-b6c34ac9 data-v-b98bc113><div class="items" data-v-b98bc113><!--[--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/hello-world.html" data-v-43f1e123><!--[-->hello world<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/%E5%B0%8F%E8%AE%B0.html" data-v-43f1e123><!--[-->小记<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/MtF%E8%87%AA%E8%BF%B0.html" data-v-43f1e123><!--[-->MtF自述<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/%E6%89%93%E5%B7%A5%E4%BA%BA%E7%9A%84%E4%B8%80%E5%A4%A9.html" data-v-43f1e123><!--[-->打工人的一天<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/%E8%8A%82%E5%90%8E%E4%B8%8A%E7%8F%AD.html" data-v-43f1e123><!--[-->节后上班<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/%E7%AC%AC%E4%B8%80%E6%AC%A1%E5%8A%A0%E7%8F%AD.html" data-v-43f1e123><!--[-->第一次加班<!--]--></a></div><!--]--><!--]--></div><!--[--><!--]--></div></div></div><!--]--><!--[--><div class="VPFlyout VPNavBarMenuGroup" data-v-dc692963 data-v-b6c34ac9><button type="button" class="button" aria-haspopup="true" aria-expanded="false" data-v-b6c34ac9><span class="text" data-v-b6c34ac9><!----><span data-v-b6c34ac9>哲学</span><span class="vpi-chevron-down text-icon" data-v-b6c34ac9></span></span></button><div class="menu" data-v-b6c34ac9><div class="VPMenu" data-v-b6c34ac9 data-v-b98bc113><div class="items" data-v-b98bc113><!--[--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/%E6%88%91%E4%B8%8E%E4%B8%80%E4%BD%8D%E5%BF%AB%E9%80%92%E5%91%98%E7%9A%84%E8%B0%88%E8%AF%9D.html" data-v-43f1e123><!--[-->我与一位快递员的谈话<!--]--></a></div><!--]--><!--]--></div><!--[--><!--]--></div></div></div><!--]--><!--[--><div class="VPFlyout VPNavBarMenuGroup" data-v-dc692963 data-v-b6c34ac9><button type="button" class="button" aria-haspopup="true" aria-expanded="false" data-v-b6c34ac9><span class="text" data-v-b6c34ac9><!----><span data-v-b6c34ac9>语言</span><span class="vpi-chevron-down text-icon" data-v-b6c34ac9></span></span></button><div class="menu" data-v-b6c34ac9><div class="VPMenu" data-v-b6c34ac9 data-v-b98bc113><div class="items" data-v-b98bc113><!--[--><!--[--><div class="VPMenuGroup" data-v-b98bc113 data-v-69e747b5><p class="title" data-v-69e747b5>英语</p><!--[--><!--[--><div class="VPMenuLink" data-v-69e747b5 data-v-43f1e123><a class="VPLink link" href="/%E5%AE%9A%E8%AF%AD%E4%B8%8E%E7%8A%B6%E8%AF%AD.html" data-v-43f1e123><!--[-->定语与状语<!--]--></a></div><!--]--><!--[--><div class="VPMenuLink" data-v-69e747b5 data-v-43f1e123><a class="VPLink link" href="/%E6%97%B6%E6%80%81%E6%80%BB%E7%BB%93.html" data-v-43f1e123><!--[-->时态总结<!--]--></a></div><!--]--><!--]--></div><!--]--><!--]--></div><!--[--><!--]--></div></div></div><!--]--><!--[--><div class="VPFlyout VPNavBarMenuGroup" data-v-dc692963 data-v-b6c34ac9><button type="button" class="button" aria-haspopup="true" aria-expanded="false" data-v-b6c34ac9><span class="text" data-v-b6c34ac9><!----><span data-v-b6c34ac9>数学</span><span class="vpi-chevron-down text-icon" data-v-b6c34ac9></span></span></button><div class="menu" data-v-b6c34ac9><div class="VPMenu" data-v-b6c34ac9 data-v-b98bc113><div class="items" data-v-b98bc113><!--[--><!--[--><div class="VPMenuLink" data-v-b98bc113 data-v-43f1e123><a class="VPLink link" href="/%E5%9C%86%E9%94%A5%E6%9B%B2%E7%BA%BF.html" data-v-43f1e123><!--[-->圆锥曲线<!--]--></a></div><!--]--><!--]--></div><!--[--><!--]--></div></div></div><!--]--><!--]--></nav><!----><div class="VPNavBarAppearance appearance" data-v-6aa21345 data-v-6c893767><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title="Switch to dark theme" aria-checked="false" data-v-6c893767 data-v-5337faa4 data-v-1d5665e3><span class="check" data-v-1d5665e3><span class="icon" data-v-1d5665e3><!--[--><span class="vpi-sun sun" data-v-5337faa4></span><span class="vpi-moon moon" data-v-5337faa4></span><!--]--></span></span></button></div><div class="VPSocialLinks VPNavBarSocialLinks social-links" data-v-6aa21345 data-v-0394ad82 data-v-7bc22406><!--[--><a class="VPSocialLink no-icon" href="https://github.com/fangyuan-neko" aria-label="github" target="_blank" rel="noopener" data-v-7bc22406 data-v-eee4e7cb><span class="vpi-social-github" /></a><a class="VPSocialLink no-icon" href="http://server.fangyuanmeow.site" aria-label target="_blank" rel="noopener" data-v-7bc22406 data-v-eee4e7cb><svg t="1721551020814" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7110" data-darkreader-inline-fill="" width="200" height="200"><path d="M512.149999 0.177569c263.142798 99.278169 424.054451 415.566522 286.7626 672.066375L464.1704 335.656761l126.588941-128.064928-78.609342-79.718333a159.435666 159.435666 0 0 1-161.650647 33.584719L96.21348 416.113087l143.934795 143.565799 95.957197-95.5872 335.110196 335.849189c-163.864629 90.051246-391.207726 61.633484-560.239312-112.565058l-81.19432 81.194321A735.545844 735.545844 0 0 0 99.903449 858.251387a125.112953 125.112953 0 0 1-9.226923 8.488929 85.623283 85.623283 0 0 0-14.024883-2.214981A80.08733 80.08733 0 0 0 0.256283 945.351658a78.241345 78.241345 0 0 0 78.242345 78.242345 80.456327 80.456327 0 0 0 80.455327-78.611342 90.052246 90.052246 0 0 0-2.213982-14.392879l12.547895-12.179898c192.652388 129.910913 403.756621 147.625764 631.100718 9.964916l93.742216 94.111213 128.434925-126.588941-94.480209-95.5872C1198.978251 391.755291 837.664274-9.418351 512.148999 0.176569z" p-id="7111"></path></svg></a><a class="VPSocialLink no-icon" href="mailTo:[email protected]" aria-label target="_blank" rel="noopener" data-v-7bc22406 data-v-eee4e7cb><svg t="1721553390155" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8272" data-darkreader-inline-fill="" width="200" height="200"><path d="M963.999 128h-904c-33 0-60 27.295-60 60.655v646.69c0 33.36 27 60.655 60 60.655h904c33 0 60-27.295 60-60.655v-646.69c0-33.36-27-60.655-60-60.655z m0 60.655v18.073a29.729 29.729 0 0 0-4.569 2.139L511.999 467.191 64.568 208.867a29.962 29.962 0 0 0-4.569-2.139v-18.073h904z m-904 646.69V275.511l432.463 249.683c5.511 4.532 12.476 6.937 19.537 6.856 7.061 0.081 14.026-2.324 19.537-6.856l432.463-249.683v559.834h-904z" p-id="8273"></path></svg></a><!--]--></div><div class="VPFlyout VPNavBarExtra extra" data-v-6aa21345 data-v-bb2aa2f0 data-v-b6c34ac9><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="extra navigation" data-v-b6c34ac9><span class="vpi-more-horizontal icon" data-v-b6c34ac9></span></button><div class="menu" data-v-b6c34ac9><div class="VPMenu" data-v-b6c34ac9 data-v-b98bc113><!----><!--[--><!--[--><!----><div class="group" data-v-bb2aa2f0><div class="item appearance" data-v-bb2aa2f0><p class="label" data-v-bb2aa2f0>Appearance</p><div class="appearance-action" data-v-bb2aa2f0><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" title="Switch to dark theme" aria-checked="false" data-v-bb2aa2f0 data-v-5337faa4 data-v-1d5665e3><span class="check" data-v-1d5665e3><span class="icon" data-v-1d5665e3><!--[--><span class="vpi-sun sun" data-v-5337faa4></span><span class="vpi-moon moon" data-v-5337faa4></span><!--]--></span></span></button></div></div></div><div class="group" data-v-bb2aa2f0><div class="item social-links" data-v-bb2aa2f0><div class="VPSocialLinks social-links-list" data-v-bb2aa2f0 data-v-7bc22406><!--[--><a class="VPSocialLink no-icon" href="https://github.com/fangyuan-neko" aria-label="github" target="_blank" rel="noopener" data-v-7bc22406 data-v-eee4e7cb><span class="vpi-social-github" /></a><a class="VPSocialLink no-icon" href="http://server.fangyuanmeow.site" aria-label target="_blank" rel="noopener" data-v-7bc22406 data-v-eee4e7cb><svg t="1721551020814" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7110" data-darkreader-inline-fill="" width="200" height="200"><path d="M512.149999 0.177569c263.142798 99.278169 424.054451 415.566522 286.7626 672.066375L464.1704 335.656761l126.588941-128.064928-78.609342-79.718333a159.435666 159.435666 0 0 1-161.650647 33.584719L96.21348 416.113087l143.934795 143.565799 95.957197-95.5872 335.110196 335.849189c-163.864629 90.051246-391.207726 61.633484-560.239312-112.565058l-81.19432 81.194321A735.545844 735.545844 0 0 0 99.903449 858.251387a125.112953 125.112953 0 0 1-9.226923 8.488929 85.623283 85.623283 0 0 0-14.024883-2.214981A80.08733 80.08733 0 0 0 0.256283 945.351658a78.241345 78.241345 0 0 0 78.242345 78.242345 80.456327 80.456327 0 0 0 80.455327-78.611342 90.052246 90.052246 0 0 0-2.213982-14.392879l12.547895-12.179898c192.652388 129.910913 403.756621 147.625764 631.100718 9.964916l93.742216 94.111213 128.434925-126.588941-94.480209-95.5872C1198.978251 391.755291 837.664274-9.418351 512.148999 0.176569z" p-id="7111"></path></svg></a><a class="VPSocialLink no-icon" href="mailTo:[email protected]" aria-label target="_blank" rel="noopener" data-v-7bc22406 data-v-eee4e7cb><svg t="1721553390155" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="8272" data-darkreader-inline-fill="" width="200" height="200"><path d="M963.999 128h-904c-33 0-60 27.295-60 60.655v646.69c0 33.36 27 60.655 60 60.655h904c33 0 60-27.295 60-60.655v-646.69c0-33.36-27-60.655-60-60.655z m0 60.655v18.073a29.729 29.729 0 0 0-4.569 2.139L511.999 467.191 64.568 208.867a29.962 29.962 0 0 0-4.569-2.139v-18.073h904z m-904 646.69V275.511l432.463 249.683c5.511 4.532 12.476 6.937 19.537 6.856 7.061 0.081 14.026-2.324 19.537-6.856l432.463-249.683v559.834h-904z" p-id="8273"></path></svg></a><!--]--></div></div></div><!--]--><!--]--></div></div></div><!--[--><!--]--><button type="button" class="VPNavBarHamburger hamburger" aria-label="mobile navigation" aria-expanded="false" aria-controls="VPNavScreen" data-v-6aa21345 data-v-e5dd9c1c><span class="container" data-v-e5dd9c1c><span class="top" data-v-e5dd9c1c></span><span class="middle" data-v-e5dd9c1c></span><span class="bottom" data-v-e5dd9c1c></span></span></button></div></div></div></div><div class="divider" data-v-6aa21345><div class="divider-line" data-v-6aa21345></div></div></div><!----></header><div class="VPLocalNav empty fixed" data-v-5d98c3a5 data-v-a6f0e41e><div class="container" data-v-a6f0e41e><!----><div class="VPLocalNavOutlineDropdown" style="--vp-vh:0px;" data-v-a6f0e41e data-v-17a5e62e><button data-v-17a5e62e>Return to top</button><!----></div></div></div><!----><div class="VPContent" id="VPContent" data-v-5d98c3a5 data-v-1428d186><div class="VPDoc has-aside" data-v-1428d186 data-v-39a288b8><!--[--><!--]--><div class="container" data-v-39a288b8><div class="aside" data-v-39a288b8><div class="aside-curtain" data-v-39a288b8></div><div class="aside-container" data-v-39a288b8><div class="aside-content" data-v-39a288b8><div class="VPDocAside" data-v-39a288b8 data-v-3f215769><!--[--><!--]--><!--[--><!--]--><nav aria-labelledby="doc-outline-aria-label" class="VPDocAsideOutline" data-v-3f215769 data-v-a5bbad30><div class="content" data-v-a5bbad30><div class="outline-marker" data-v-a5bbad30></div><div aria-level="2" class="outline-title" id="doc-outline-aria-label" role="heading" data-v-a5bbad30>On this page</div><ul class="VPDocOutlineItem root" data-v-a5bbad30 data-v-b933a997><!--[--><!--]--></ul></div></nav><!--[--><!--]--><div class="spacer" data-v-3f215769></div><!--[--><!--]--><!----><!--[--><!--]--><!--[--><!--]--></div></div></div></div><div class="content" data-v-39a288b8><div class="content-container" data-v-39a288b8><!--[--><!--]--><main class="main" data-v-39a288b8><div style="position:relative;" class="vp-doc _Hexo%E9%85%8D%E7%BD%AE" data-v-39a288b8><div><h2 id="hexo的安装" tabindex="-1">Hexo的安装 <a class="header-anchor" href="#hexo的安装" aria-label="Permalink to "Hexo的安装""></a></h2><p><code>npm install hexo-cli -g</code>一键安装</p><p><strong>注:</strong></p><p><u>安装速度过慢的话,可以考虑更换软件源(<s>不过笔者也是半吊子,不知道有没有危险和缺点</s>)</u></p><p>可以尝试更换<a href="http://npm.taobao.org/mirrors" target="_blank" rel="noreferrer">淘宝</a>的源<code>npm config set registry https://registry.npm.taobao.org</code></p><p>这样npm就会从国内某位好心人提供的高速宽带下载需要的包</p><p>如果需要恢复成原来的官方地址只需要执行如下命令:</p><p><code>npm config set registry https://registry.npmjs.org</code></p><p>检查</p><p><code>npm config get registry</code></p><h2 id="hexo博客系统配置" tabindex="-1">Hexo博客系统配置 <a class="header-anchor" href="#hexo博客系统配置" aria-label="Permalink to "Hexo博客系统配置""></a></h2><h3 id="下载" tabindex="-1">下载 <a class="header-anchor" href="#下载" aria-label="Permalink to "下载""></a></h3><div class="language-bash vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">bash</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">hexo</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> init</span></span>
<span class="line"><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;">sudo</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> npm</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;"> install</span></span></code></pre></div><h4 id="小尝试" tabindex="-1">小尝试 <a class="header-anchor" href="#小尝试" aria-label="Permalink to "小尝试""></a></h4><p><strong>在当前文件夹</strong>输入命令<code>hexo g</code>+ <code>hexo s</code>//分别是“generate”(生成)和“server”(服务器)的意思</p><p>然后根据提示在浏览器中访问<a href="localhost:4000" target="_blank" rel="noreferrer">localhost:4000</a>就可以看到成果啦!</p><h3 id="更换主题" tabindex="-1">更换主题 <a class="header-anchor" href="#更换主题" aria-label="Permalink to "更换主题""></a></h3><p>这里笔者用的是ayer主题 详见<a href="https://shen-yu.gitee.io/2019/ayer/" target="_blank" rel="noreferrer">官方教程</a></p><h2 id="部署" tabindex="-1">部署 <a class="header-anchor" href="#部署" aria-label="Permalink to "部署""></a></h2><p>安装git插件</p><p><code>npm install hexo-deployer-git --save</code></p><p>然后在博客根目录的<code>_config.yml</code>加上</p><div class="language-yaml vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">yaml</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;">deploy</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">:</span></span>
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> type</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">git</span></span>
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> repo</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">[email protected]:<yourname>/<yourname>.github.io.git</span></span>
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> branch</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">main</span></span>
<span class="line"><span style="--shiki-light:#22863A;--shiki-dark:#85E89D;"> massage</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">: </span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">reflash</span></span></code></pre></div><p>注意GitHub21年3月后禁用了账号密码连接的方式,因此只能用Git连接。 如有其它问题,<a href="https://hexo.io/zh-cn/docs/one-command-deployment" target="_blank" rel="noreferrer">请参见官方发布指南</a></p></div></div></main><footer class="VPDocFooter" data-v-39a288b8 data-v-e257564d><!--[--><!--]--><!----><!----></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><!----><!--[--><!--]--></div></div>
<script>window.__VP_HASH_MAP__=JSON.parse("{\"git中文乱码问题.md\":\"C7MG5pUP\",\"hello-world.md\":\"HYLK0-ut\",\"hexo写作.md\":\"7whOspxG\",\"hexo插件推荐.md\":\"Bcvs3IhM\",\"hexo配置.md\":\"pHMfkoHI\",\"index.md\":\"Ctqo22Z0\",\"mtf自述.md\":\"GFrlSHH5\",\"nodejs版本升级.md\":\"DOmmRKnG\",\"pacman常用命令.md\":\"DNjdRb3m\",\"termux配置.md\":\"CJHklke0\",\"vue框架下的响应式时钟.md\":\"DS2_uySO\",\"使用code-server.md\":\"C8eLSn30\",\"圆锥曲线.md\":\"COdDYmSu\",\"定语与状语.md\":\"DR_wkH-3\",\"小记.md\":\"Cp0v8bMA\",\"我与一位快递员的谈话.md\":\"B_MaQBa1\",\"打工人的一天.md\":\"pE03IviX\",\"时态总结.md\":\"WhiwD-Dd\",\"第一次加班.md\":\"mtf8qjDb\",\"节后上班.md\":\"bPTdc2F0\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"fangyuan's site\",\"description\":\"The blog of fangyuanmeow\",\"base\":\"/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":true,\"themeConfig\":{\"nav\":[{\"text\":\"前端\",\"items\":[{\"text\":\"Hexo写作\",\"link\":\"/Hexo写作\"},{\"text\":\"Hexo插件推荐\",\"link\":\"/Hexo插件推荐\"},{\"text\":\"Hexo配置\",\"link\":\"/Hexo配置\"},{\"text\":\"nodejs版本升级\",\"link\":\"/nodejs版本升级\"},{\"text\":\"vue框架下的响应式时钟\",\"link\":\"vue框架下的响应式时钟\"}]},{\"text\":\"运维\",\"items\":[{\"text\":\"git中文乱码问题\",\"link\":\"/git中文乱码问题\"},{\"text\":\"pacman常用命令\",\"link\":\"/pacman常用命令\"},{\"text\":\"termux配置\",\"link\":\"/termux配置\"},{\"text\":\"使用code-server\",\"link\":\"/使用code-server\"}]},{\"text\":\"生活\",\"items\":[{\"text\":\"hello world\",\"link\":\"/hello-world\"},{\"text\":\"小记\",\"link\":\"/小记\"},{\"text\":\"MtF自述\",\"link\":\"/MtF自述\"},{\"text\":\"打工人的一天\",\"link\":\"/打工人的一天\"},{\"text\":\"节后上班\",\"link\":\"/节后上班\"},{\"text\":\"第一次加班\",\"link\":\"/第一次加班\"}]},{\"text\":\"哲学\",\"items\":[{\"text\":\"我与一位快递员的谈话\",\"link\":\"/我与一位快递员的谈话\"}]},{\"text\":\"语言\",\"items\":[{\"text\":\"英语\",\"items\":[{\"text\":\"定语与状语\",\"link\":\"/定语与状语\"},{\"text\":\"时态总结\",\"link\":\"/时态总结\"}]}]},{\"text\":\"数学\",\"items\":[{\"text\":\"圆锥曲线\",\"link\":\"/圆锥曲线\"}]}],\"search\":{\"provider\":\"local\"},\"sidebar\":{},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/fangyuan-neko\"},{\"icon\":{\"svg\":\"<svg t=\\\"1721551020814\\\" class=\\\"icon\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" p-id=\\\"7110\\\" data-darkreader-inline-fill=\\\"\\\" width=\\\"200\\\" height=\\\"200\\\"><path d=\\\"M512.149999 0.177569c263.142798 99.278169 424.054451 415.566522 286.7626 672.066375L464.1704 335.656761l126.588941-128.064928-78.609342-79.718333a159.435666 159.435666 0 0 1-161.650647 33.584719L96.21348 416.113087l143.934795 143.565799 95.957197-95.5872 335.110196 335.849189c-163.864629 90.051246-391.207726 61.633484-560.239312-112.565058l-81.19432 81.194321A735.545844 735.545844 0 0 0 99.903449 858.251387a125.112953 125.112953 0 0 1-9.226923 8.488929 85.623283 85.623283 0 0 0-14.024883-2.214981A80.08733 80.08733 0 0 0 0.256283 945.351658a78.241345 78.241345 0 0 0 78.242345 78.242345 80.456327 80.456327 0 0 0 80.455327-78.611342 90.052246 90.052246 0 0 0-2.213982-14.392879l12.547895-12.179898c192.652388 129.910913 403.756621 147.625764 631.100718 9.964916l93.742216 94.111213 128.434925-126.588941-94.480209-95.5872C1198.978251 391.755291 837.664274-9.418351 512.148999 0.176569z\\\" p-id=\\\"7111\\\"></path></svg>\"},\"link\":\"http://server.fangyuanmeow.site\"},{\"icon\":{\"svg\":\"<svg t=\\\"1721553390155\\\" class=\\\"icon\\\" viewBox=\\\"0 0 1024 1024\\\" version=\\\"1.1\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\" p-id=\\\"8272\\\" data-darkreader-inline-fill=\\\"\\\" width=\\\"200\\\" height=\\\"200\\\"><path d=\\\"M963.999 128h-904c-33 0-60 27.295-60 60.655v646.69c0 33.36 27 60.655 60 60.655h904c33 0 60-27.295 60-60.655v-646.69c0-33.36-27-60.655-60-60.655z m0 60.655v18.073a29.729 29.729 0 0 0-4.569 2.139L511.999 467.191 64.568 208.867a29.962 29.962 0 0 0-4.569-2.139v-18.073h904z m-904 646.69V275.511l432.463 249.683c5.511 4.532 12.476 6.937 19.537 6.856 7.061 0.081 14.026-2.324 19.537-6.856l432.463-249.683v559.834h-904z\\\" p-id=\\\"8273\\\"></path></svg>\"},\"link\":\"mailTo:[email protected]\"}]},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
</body>
</html>