提交 26abd808 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

Update docs

上级
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>hexo-theme-stun</title>
<meta name="generator" content="VuePress 1.5.2">
<link rel="icon" href="/hexo-theme-stun/icons/favicon-32x32.png">
<meta name="description" content="A beautiful & simple theme for Hexo">
<link rel="preload" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css" as="style"><link rel="preload" href="/hexo-theme-stun/assets/js/app.b850f147.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/4.d9ad600e.js" as="script"><link rel="prefetch" href="/hexo-theme-stun/assets/js/10.b83ac2ab.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/11.5d746985.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/12.7359c5ec.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/13.e62248d6.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/14.68c5f93f.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/15.88a42515.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/16.aefc9e47.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/17.e1988749.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/18.5cde9d58.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/19.a9abcb29.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/2.883641a6.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/20.ecbadd78.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/3.67dc95e3.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/5.685d6db4.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/6.9f577310.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/7.47a12772.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/8.aec2064e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/9.b0c5ecc0.js">
<link rel="stylesheet" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><div class="theme-default-content"><h1>404</h1> <blockquote>Looks like we've got some broken links.</blockquote> <a href="/hexo-theme-stun/" class="router-link-active">
Take me home.
</a></div></div><div class="global-ui"></div></div>
<script src="/hexo-theme-stun/assets/js/app.b850f147.js" defer></script><script src="/hexo-theme-stun/assets/js/4.d9ad600e.js" defer></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Advanced setting | hexo-theme-stun</title>
<meta name="generator" content="VuePress 1.5.2">
<link rel="icon" href="/hexo-theme-stun/icons/favicon-32x32.png">
<meta name="description" content="A beautiful & simple theme for Hexo">
<link rel="preload" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css" as="style"><link rel="preload" href="/hexo-theme-stun/assets/js/app.b850f147.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/2.883641a6.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/6.9f577310.js" as="script"><link rel="prefetch" href="/hexo-theme-stun/assets/js/10.b83ac2ab.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/11.5d746985.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/12.7359c5ec.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/13.e62248d6.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/14.68c5f93f.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/15.88a42515.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/16.aefc9e47.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/17.e1988749.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/18.5cde9d58.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/19.a9abcb29.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/20.ecbadd78.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/3.67dc95e3.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/4.d9ad600e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/5.685d6db4.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/7.47a12772.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/8.aec2064e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/9.b0c5ecc0.js">
<link rel="stylesheet" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/hexo-theme-stun/" class="home-link router-link-active"><img src="/hexo-theme-stun/icons/favicon-192x192.png" alt="hexo-theme-stun" class="logo"> <span class="site-name can-hide">hexo-theme-stun</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" class="nav-link">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" class="nav-link">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" class="nav-link">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" class="nav-link">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/advanced.html" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" class="nav-link">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" class="nav-link">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" class="nav-link">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" class="nav-link">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/advanced.html" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Guide</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/guide/quick-start.html" class="sidebar-link">Quick start</a></li><li><a href="/hexo-theme-stun/guide/primary.html" class="sidebar-link">Primary Setting</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>Advanced</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/advanced/advanced.html" aria-current="page" class="active sidebar-link">Advanced setting</a></li><li><a href="/hexo-theme-stun/advanced/third-part.html" class="sidebar-link">Third part</a></li><li><a href="/hexo-theme-stun/advanced/assist.html" class="sidebar-link">Assist function</a></li><li><a href="/hexo-theme-stun/advanced/optimize.html" class="sidebar-link">Optimize</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Contribution</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/contribute/contribute.html" class="sidebar-link">Contribution</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="advanced-setting"><a href="#advanced-setting" class="header-anchor">#</a> Advanced setting</h1> <blockquote><p>Documentation is writing...</p></blockquote></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/liuyib/hexo-theme-stun/edit/master/docs/advanced/advanced.md" target="_blank" rel="noopener noreferrer">Edit this page on GitHub</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">5/5/2020, 1:34:17 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/hexo-theme-stun/guide/primary.html" class="prev">
Primary Setting
</a></span> <span class="next"><a href="/hexo-theme-stun/advanced/third-part.html">
Third part
</a>
</span></p></div> </main></div><div class="global-ui"></div></div>
<script src="/hexo-theme-stun/assets/js/app.b850f147.js" defer></script><script src="/hexo-theme-stun/assets/js/2.883641a6.js" defer></script><script src="/hexo-theme-stun/assets/js/6.9f577310.js" defer></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Assist function | hexo-theme-stun</title>
<meta name="generator" content="VuePress 1.5.2">
<link rel="icon" href="/hexo-theme-stun/icons/favicon-32x32.png">
<meta name="description" content="A beautiful & simple theme for Hexo">
<link rel="preload" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css" as="style"><link rel="preload" href="/hexo-theme-stun/assets/js/app.b850f147.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/2.883641a6.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/7.47a12772.js" as="script"><link rel="prefetch" href="/hexo-theme-stun/assets/js/10.b83ac2ab.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/11.5d746985.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/12.7359c5ec.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/13.e62248d6.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/14.68c5f93f.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/15.88a42515.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/16.aefc9e47.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/17.e1988749.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/18.5cde9d58.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/19.a9abcb29.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/20.ecbadd78.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/3.67dc95e3.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/4.d9ad600e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/5.685d6db4.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/6.9f577310.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/8.aec2064e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/9.b0c5ecc0.js">
<link rel="stylesheet" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/hexo-theme-stun/" class="home-link router-link-active"><img src="/hexo-theme-stun/icons/favicon-192x192.png" alt="hexo-theme-stun" class="logo"> <span class="site-name can-hide">hexo-theme-stun</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" class="nav-link">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" class="nav-link">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" class="nav-link">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" class="nav-link">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/assist.html" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" class="nav-link">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" class="nav-link">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" class="nav-link">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" class="nav-link">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/assist.html" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Guide</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/guide/quick-start.html" class="sidebar-link">Quick start</a></li><li><a href="/hexo-theme-stun/guide/primary.html" class="sidebar-link">Primary Setting</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>Advanced</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/advanced/advanced.html" class="sidebar-link">Advanced setting</a></li><li><a href="/hexo-theme-stun/advanced/third-part.html" class="sidebar-link">Third part</a></li><li><a href="/hexo-theme-stun/advanced/assist.html" aria-current="page" class="active sidebar-link">Assist function</a></li><li><a href="/hexo-theme-stun/advanced/optimize.html" class="sidebar-link">Optimize</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Contribution</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/contribute/contribute.html" class="sidebar-link">Contribution</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="assist-function"><a href="#assist-function" class="header-anchor">#</a> Assist function</h1> <blockquote><p>Documentation is writing...</p></blockquote></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/liuyib/hexo-theme-stun/edit/master/docs/advanced/assist.md" target="_blank" rel="noopener noreferrer">Edit this page on GitHub</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2/17/2020, 3:22:22 AM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/hexo-theme-stun/advanced/third-part.html" class="prev">
Third part
</a></span> <span class="next"><a href="/hexo-theme-stun/advanced/optimize.html">
Optimize
</a>
</span></p></div> </main></div><div class="global-ui"></div></div>
<script src="/hexo-theme-stun/assets/js/app.b850f147.js" defer></script><script src="/hexo-theme-stun/assets/js/2.883641a6.js" defer></script><script src="/hexo-theme-stun/assets/js/7.47a12772.js" defer></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Optimize | hexo-theme-stun</title>
<meta name="generator" content="VuePress 1.5.2">
<link rel="icon" href="/hexo-theme-stun/icons/favicon-32x32.png">
<meta name="description" content="A beautiful & simple theme for Hexo">
<link rel="preload" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css" as="style"><link rel="preload" href="/hexo-theme-stun/assets/js/app.b850f147.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/2.883641a6.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/8.aec2064e.js" as="script"><link rel="prefetch" href="/hexo-theme-stun/assets/js/10.b83ac2ab.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/11.5d746985.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/12.7359c5ec.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/13.e62248d6.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/14.68c5f93f.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/15.88a42515.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/16.aefc9e47.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/17.e1988749.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/18.5cde9d58.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/19.a9abcb29.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/20.ecbadd78.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/3.67dc95e3.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/4.d9ad600e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/5.685d6db4.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/6.9f577310.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/7.47a12772.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/9.b0c5ecc0.js">
<link rel="stylesheet" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/hexo-theme-stun/" class="home-link router-link-active"><img src="/hexo-theme-stun/icons/favicon-192x192.png" alt="hexo-theme-stun" class="logo"> <span class="site-name can-hide">hexo-theme-stun</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" class="nav-link">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" class="nav-link">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" class="nav-link">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" class="nav-link">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" class="nav-link">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/optimize.html" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" class="nav-link">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" class="nav-link">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" class="nav-link">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" class="nav-link">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" class="nav-link">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/optimize.html" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Guide</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/guide/quick-start.html" class="sidebar-link">Quick start</a></li><li><a href="/hexo-theme-stun/guide/primary.html" class="sidebar-link">Primary Setting</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>Advanced</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/advanced/advanced.html" class="sidebar-link">Advanced setting</a></li><li><a href="/hexo-theme-stun/advanced/third-part.html" class="sidebar-link">Third part</a></li><li><a href="/hexo-theme-stun/advanced/assist.html" class="sidebar-link">Assist function</a></li><li><a href="/hexo-theme-stun/advanced/optimize.html" aria-current="page" class="active sidebar-link">Optimize</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Contribution</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/contribute/contribute.html" class="sidebar-link">Contribution</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="optimize"><a href="#optimize" class="header-anchor">#</a> Optimize</h1> <blockquote><p>Documentation is writing...</p></blockquote></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/liuyib/hexo-theme-stun/edit/master/docs/advanced/optimize.md" target="_blank" rel="noopener noreferrer">Edit this page on GitHub</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2/17/2020, 3:22:22 AM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/hexo-theme-stun/advanced/assist.html" class="prev">
Assist function
</a></span> <span class="next"><a href="/hexo-theme-stun/contribute/contribute.html">
Contribution
</a>
</span></p></div> </main></div><div class="global-ui"></div></div>
<script src="/hexo-theme-stun/assets/js/app.b850f147.js" defer></script><script src="/hexo-theme-stun/assets/js/2.883641a6.js" defer></script><script src="/hexo-theme-stun/assets/js/8.aec2064e.js" defer></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Third part | hexo-theme-stun</title>
<meta name="generator" content="VuePress 1.5.2">
<link rel="icon" href="/hexo-theme-stun/icons/favicon-32x32.png">
<meta name="description" content="A beautiful & simple theme for Hexo">
<link rel="preload" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css" as="style"><link rel="preload" href="/hexo-theme-stun/assets/js/app.b850f147.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/2.883641a6.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/9.b0c5ecc0.js" as="script"><link rel="prefetch" href="/hexo-theme-stun/assets/js/10.b83ac2ab.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/11.5d746985.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/12.7359c5ec.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/13.e62248d6.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/14.68c5f93f.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/15.88a42515.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/16.aefc9e47.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/17.e1988749.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/18.5cde9d58.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/19.a9abcb29.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/20.ecbadd78.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/3.67dc95e3.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/4.d9ad600e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/5.685d6db4.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/6.9f577310.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/7.47a12772.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/8.aec2064e.js">
<link rel="stylesheet" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/hexo-theme-stun/" class="home-link router-link-active"><img src="/hexo-theme-stun/icons/favicon-192x192.png" alt="hexo-theme-stun" class="logo"> <span class="site-name can-hide">hexo-theme-stun</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" class="nav-link">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" class="nav-link">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" class="nav-link">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" class="nav-link">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/third-part.html" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" class="nav-link">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" class="nav-link">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" class="nav-link">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" class="nav-link">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/third-part.html" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Guide</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/guide/quick-start.html" class="sidebar-link">Quick start</a></li><li><a href="/hexo-theme-stun/guide/primary.html" class="sidebar-link">Primary Setting</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>Advanced</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/advanced/advanced.html" class="sidebar-link">Advanced setting</a></li><li><a href="/hexo-theme-stun/advanced/third-part.html" aria-current="page" class="active sidebar-link">Third part</a></li><li><a href="/hexo-theme-stun/advanced/assist.html" class="sidebar-link">Assist function</a></li><li><a href="/hexo-theme-stun/advanced/optimize.html" class="sidebar-link">Optimize</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Contribution</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/contribute/contribute.html" class="sidebar-link">Contribution</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="third-part"><a href="#third-part" class="header-anchor">#</a> Third part</h1> <blockquote><p>Documentation is writing...</p></blockquote></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/liuyib/hexo-theme-stun/edit/master/docs/advanced/third-part.md" target="_blank" rel="noopener noreferrer">Edit this page on GitHub</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">2/17/2020, 3:22:22 AM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/hexo-theme-stun/advanced/advanced.html" class="prev">
Advanced setting
</a></span> <span class="next"><a href="/hexo-theme-stun/advanced/assist.html">
Assist function
</a>
</span></p></div> </main></div><div class="global-ui"></div></div>
<script src="/hexo-theme-stun/assets/js/app.b850f147.js" defer></script><script src="/hexo-theme-stun/assets/js/2.883641a6.js" defer></script><script src="/hexo-theme-stun/assets/js/9.b0c5ecc0.js" defer></script>
</body>
</html>
此差异已折叠。
<?xml version="1.0" encoding="UTF-8"?><svg xmlns="http://www.w3.org/2000/svg" width="12" height="13"><g stroke-width="2" stroke="#aaa" fill="none"><path d="M11.29 11.71l-4-4"/><circle cx="5" cy="5" r="4"/></g></svg>
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{430:function(e,t,o){"use strict";o.r(t);var s=o(53),n=Object(s.a)({},(function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[o("h1",{attrs:{id:"contribution"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#contribution"}},[e._v("#")]),e._v(" Contribution ")]),e._v(" "),o("div",{staticStyle:{color:"#73c8ff","font-size":"36px"},attrs:{align:"center"}},[o("a",{attrs:{title:"Go to homepage",href:"https://github.com/liuyib/hexo-theme-stun"}},[o("img",{attrs:{align:"center",width:"60",height:"60",src:"https://raw.githubusercontent.com/liuyib/hexo-theme-stun/master/source/images/icons/stun-logo.svg?sanitize=true"}})]),e._v(" t u n")]),e._v(" "),o("p",[e._v("Hi! I'm really excited that you are interested in contributing to «Stun». Before submitting your contribution, please make sure to take a moment and read through the following guidelines:")]),e._v(" "),o("ul",[o("li",[o("a",{attrs:{href:"#pull-request-guidelines"}},[e._v("Pull Request Guidelines")])]),e._v(" "),o("li",[o("a",{attrs:{href:"#development-setup"}},[e._v("Development Setup")])]),e._v(" "),o("li",[o("a",{attrs:{href:"#commit-messages-rules"}},[e._v("Commit Messages Rules")])])]),e._v(" "),o("h2",{attrs:{id:"pull-request-guidelines"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#pull-request-guidelines"}},[e._v("#")]),e._v(" Pull Request Guidelines")]),e._v(" "),o("p",[e._v("The "),o("code",[e._v("master")]),e._v(" branch is just a snapshot of the latest stable release. All development should be done in dedicated branches. "),o("strong",[e._v("Do not submit PRs against the "),o("code",[e._v("master")]),e._v(" branch")]),e._v(".")]),e._v(" "),o("ul",[o("li",[e._v("Fork the repository to your Github and clone it.")]),e._v(" "),o("li",[e._v("Switch to a "),o("strong",[e._v("new branch")]),e._v(" (e.g. "),o("code",[e._v("patch-1")]),e._v(") to develop.")]),e._v(" "),o("li",[e._v("Submit changes locally (If you modified source code, please run "),o("code",[e._v("npm run lint:fix")]),e._v(").")]),e._v(" "),o("li",[e._v("Push the commit to the repository of fork.")]),e._v(" "),o("li",[e._v("Create a Pull request to the "),o("strong",[e._v("dev branch")]),e._v(" of the Stun theme repository.")])]),e._v(" "),o("h2",{attrs:{id:"development-setup"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#development-setup"}},[e._v("#")]),e._v(" Development Setup")]),e._v(" "),o("p",[e._v("You need to install "),o("a",{attrs:{href:"http://nodejs.org/",target:"_blank",rel:"noopener noreferrer"}},[e._v("Node.js"),o("OutboundLink")],1),e._v(" and "),o("a",{attrs:{href:"https://docs.npmjs.com/downloading-and-installing-node-js-and-npm",target:"_blank",rel:"noopener noreferrer"}},[e._v("npm"),o("OutboundLink")],1),e._v(".")]),e._v(" "),o("p",[e._v("After cloning the repo, run:")]),e._v(" "),o("div",{staticClass:"language-bash extra-class"},[o("pre",{pre:!0,attrs:{class:"language-bash"}},[o("code",[e._v("$ "),o("span",{pre:!0,attrs:{class:"token function"}},[e._v("npm")]),e._v(" "),o("span",{pre:!0,attrs:{class:"token function"}},[e._v("install")]),e._v("\n")])])]),o("h2",{attrs:{id:"commit-messages-rules"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#commit-messages-rules"}},[e._v("#")]),e._v(" Commit Messages Rules")]),e._v(" "),o("p",[e._v("We agree on the format of Git commit information, and each commit information is composed of "),o("code",[e._v("type")]),e._v(" + "),o("code",[e._v("subject")]),e._v(", which will improve the readability of the project log.")]),e._v(" "),o("ul",[o("li",[o("code",[e._v("type")]),e._v(" Describes the meaning of this submission, all lowercase, including only the following types:\n"),o("ul",[o("li",[o("code",[e._v("feat")]),e._v(": A new feature")]),e._v(" "),o("li",[o("code",[e._v("fix")]),e._v(": A bug fix")]),e._v(" "),o("li",[o("code",[e._v("refactor")]),e._v(": A code change that neither adds a feature nor fixes a bug")]),e._v(" "),o("li",[o("code",[e._v("docs")]),e._v(": Documentation only changes")]),e._v(" "),o("li",[o("code",[e._v("style")]),e._v(": Code format changes (white-space, indentation, line breaks, semicolons, etc.)")]),e._v(" "),o("li",[o("code",[e._v("test")]),e._v(": Code test correlation")]),e._v(" "),o("li",[o("code",[e._v("chore")]),e._v(": Changes to basic build tools or dependent libraries (no source code involved)")]),e._v(" "),o("li",[o("code",[e._v("revert")]),e._v(": Revert some existing commits")])])]),e._v(" "),o("li",[o("code",[e._v("subject")]),e._v(" contains a succinct description of the change, like "),o("code",[e._v("Update quick start in readme.md")]),e._v(" "),o("ul",[o("li",[e._v("No dot ("),o("code",[e._v(".")]),e._v(") at the end")]),e._v(" "),o("li",[e._v('Use the imperative, present tense ("change" not "changed" nor "changes")')])])])]),e._v(" "),o("h2",{attrs:{id:"contributors"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#contributors"}},[e._v("#")]),e._v(" Contributors")]),e._v(" "),o("p",[e._v("Thank you to all the people who have already contributed to «Stun»!")]),e._v(" "),o("a",{attrs:{href:"https://github.com/liuyib/hexo-theme-stun/graphs/contributors"}},[o("img",{attrs:{src:"https://opencollective.com/hexo-theme-stun/contributors.svg?width=980"}})])])}),[],!1,null,null,null);t.default=n.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[11],{431:function(t,s,i){"use strict";i.r(s);var e=i(53),r=Object(e.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"primary-setting"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#primary-setting"}},[this._v("#")]),this._v(" Primary Setting")]),this._v(" "),s("blockquote",[s("p",[this._v("Documentation is writing...")])])])}),[],!1,null,null,null);s.default=r.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{432:function(t,a,s){"use strict";s.r(a);var e=s(53),n=Object(e.a)({},(function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"quick-start"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#quick-start"}},[t._v("#")]),t._v(" Quick start")]),t._v(" "),s("h2",{attrs:{id:"installation"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#installation"}},[t._v("#")]),t._v(" Installation")]),t._v(" "),s("ul",[s("li",[s("p",[t._v("Install "),s("code",[t._v("Stun")])]),t._v(" "),s("p",[t._v("Enter your hexo directory, run this.")]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[t._v("$ "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("git")]),t._v(" clone https://github.com/liuyib/hexo-theme-stun.git themes/stun\n")])])])]),t._v(" "),s("li",[s("p",[t._v("Install dependency "),s("code",[t._v("hexo-render-pug")])]),t._v(" "),s("p",[t._v("Enter your hexo directory, run this.")]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[t._v("$ "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("npm")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v(" --save hexo-render-pug\n")])])])])]),t._v(" "),s("h2",{attrs:{id:"how-to-use"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#how-to-use"}},[t._v("#")]),t._v(" How to use")]),t._v(" "),s("p",[t._v("Change the "),s("code",[t._v("_config.yml")]),t._v(" file in your hexo root directory.")]),t._v(" "),s("div",{staticClass:"language-yml extra-class"},[s("pre",{pre:!0,attrs:{class:"language-yml"}},[s("code",[s("span",{pre:!0,attrs:{class:"token key atrule"}},[t._v("theme")]),s("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v(" stun\n")])])]),s("p",[t._v("Run your hexo server.")]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[t._v("$ hexo clean "),s("span",{pre:!0,attrs:{class:"token operator"}},[t._v("&&")]),t._v(" hexo s\n")])])]),s("h2",{attrs:{id:"update"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#update"}},[t._v("#")]),t._v(" Update")]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[t._v("$ "),s("span",{pre:!0,attrs:{class:"token builtin class-name"}},[t._v("cd")]),t._v(" themes/stun\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# Update to stable version (Recommend).")]),t._v("\n$ "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("git")]),t._v(" pull origin master\n\n"),s("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# Update to the latest features (Not recommended).")]),t._v("\n$ "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("git")]),t._v(" pull origin dev\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{433:function(t,e,n){"use strict";n.r(e);var s=n(53),l=Object(s.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}})}),[],!1,null,null,null);e.default=l.exports}}]);
\ No newline at end of file
此差异已折叠。
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{435:function(t,s,a){"use strict";a.r(s);var e=a(53),n=Object(e.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"辅助功能"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#辅助功能"}},[t._v("#")]),t._v(" 辅助功能")]),t._v(" "),a("h2",{attrs:{id:"快捷键"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#快捷键"}},[t._v("#")]),t._v(" 快捷键")]),t._v(" "),a("h3",{attrs:{id:"快速切换文章"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#快速切换文章"}},[t._v("#")]),t._v(" 快速切换文章 "),a("Badge",{attrs:{text:"Beta",type:"warn"}}),t._v(" "),a("Badge",{attrs:{text:"v1.1.3"}})],1),t._v(" "),a("div",{staticClass:"custom-block tip"},[a("p",{staticClass:"custom-block-title"},[t._v("TIP")]),t._v(" "),a("p",[t._v("该功能在 "),a("code",[t._v("v1.1.0")]),t._v(" 版本中快捷键为("),a("code",[t._v("")]),t._v(":切换到上一篇文章,"),a("code",[t._v("")]),t._v(":切换到下一篇文章),在 "),a("code",[t._v("v1.1.3")]),t._v(" 版本中快捷键修改为(Ctrl + "),a("code",[t._v("")]),t._v(",Ctrl + "),a("code",[t._v("")]),t._v(")。")])]),t._v(" "),a("p",[t._v("当你浏览文章时,如果不想通过鼠标点击按钮来切换文章,那么你可以使用快捷键(Ctrl + "),a("code",[t._v("")]),t._v(",Ctrl + "),a("code",[t._v("")]),t._v(")来快速切换文章。")]),t._v(" "),a("p",[t._v("如果你想启用这一功能,请修改主题配置文件:")]),t._v(" "),a("div",{staticClass:"language-yaml extra-class"},[a("pre",{pre:!0,attrs:{class:"language-yaml"}},[a("code",[a("span",{pre:!0,attrs:{class:"token key atrule"}},[t._v("shortcuts")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 切换文章的快捷键")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v('# "Ctrl + ←" 切换到上一篇文章')]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v('# "Ctrl + →" 切换到下一篇文章')]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token key atrule"}},[t._v("switch_post")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("# 是否启用")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token key atrule"}},[t._v("enable")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token boolean important"}},[t._v("false")]),t._v("\n")])])]),a("blockquote",[a("p",[t._v("考虑到这里的快捷键可能会和用户系统或软件的冲突,所以在 Stun 主题 "),a("code",[t._v("v1.1.3")]),t._v(" 版本中,这个功能加入了配置项,用户可以自己决定是否开启,默认不启用。并且在 Stun 主题以后的版本中,可能会留出配置项让用户自定义快捷键。")])]),t._v(" "),a("h3",{attrs:{id:"快速关闭搜索框"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#快速关闭搜索框"}},[t._v("#")]),t._v(" 快速关闭搜索框 "),a("Badge",{attrs:{text:"Stable"}}),t._v(" "),a("Badge",{attrs:{text:"v1.0.3"}})],1),t._v(" "),a("p",[t._v("关闭搜索框有三种方式,1. 点击关闭按钮,2. 点击蒙版,3. 按下 "),a("code",[t._v("Esc")]),t._v(" 键。")]),t._v(" "),a("h2",{attrs:{id:"标签插件"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#标签插件"}},[t._v("#")]),t._v(" 标签插件")]),t._v(" "),a("p",[t._v("该功能相当于 Hexo 对 Markdown 语法的一种扩展,用于快速在文章中插入指定的内容。你可以访问"),a("a",{attrs:{href:"https://hexo.io/zh-cn/docs/tag-plugins",target:"_blank",rel:"noopener noreferrer"}},[t._v("这里"),a("OutboundLink")],1),t._v("查看 Hexo 都支持哪些标签插件。")]),t._v(" "),a("p",[t._v("Hexo 主题一般都会扩展一些自己特有的标签插件,在这方面做得最好的是 NexT 主题,你可以查看 NexT 主题所特有的标签插件:"),a("a",{attrs:{href:"https://theme-next.org/docs/tag-plugins/",target:"_blank",rel:"noopener noreferrer"}},[t._v("https://theme-next.org/docs/tag-plugins/"),a("OutboundLink")],1),t._v("")]),t._v(" "),a("p",[t._v("此外,Stun 主题也有自己扩展的一些标签插件,这些标签插件如下:")]),t._v(" "),a("h3",{attrs:{id:"插入表格"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#插入表格"}},[t._v("#")]),t._v(" 插入表格 "),a("Badge",{attrs:{text:"Stable"}}),t._v(" "),a("Badge",{attrs:{text:"v1.2.0"}})],1),t._v(" "),a("p",[t._v("如果想要在文章中显示一个表格,你可以使用 Markdown 原生支持的语法,但是如果你想要让表格里的数据存储在外部文件中,那么你可以使用下面这种语法:")]),t._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v("{% table [path] [thead1,thead2,...] %}\n")])])]),a("p",[t._v("参数:")]),t._v(" "),a("p",[a("code",[t._v("[path]")]),t._v(":数据文件的路径")]),t._v(" "),a("p",[a("code",[t._v("[thead1,thead2,...]")]),t._v(":表格头部的文字(用半角逗号分隔,逗号前后不要有空格)")]),t._v(" "),a("div",{staticClass:"custom-block warning"},[a("p",{staticClass:"custom-block-title"},[t._v("WARNING")]),t._v(" "),a("p",[t._v("数据文件必须放在 "),a("code",[t._v("/source/")]),t._v(" 目录下,建议放在 "),a("code",[t._v("/source/_data/")]),t._v(" 目录下。")])]),t._v(" "),a("p",[t._v("举例:")]),t._v(" "),a("p",[t._v("在文章或页面中显示一个打赏列表。")]),t._v(" "),a("ol",[a("li",[a("p",[t._v(""),a("code",[t._v("/source/_data/")]),t._v(" 目录下新建文件 "),a("code",[t._v("reward.json")]),t._v(",填入数据。")]),t._v(" "),a("div",{staticClass:"language-json extra-class"},[a("pre",{pre:!0,attrs:{class:"language-json"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"time"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"2019-6-1"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"sponsor"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"张三"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"money"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"9.9"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"remark"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"支持一下~"')]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"time"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"2019-6-16"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"sponsor"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"李四"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"money"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"11"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"remark"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"前来支持,继续加油!"')]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])])]),t._v(" "),a("li",[a("p",[t._v("在文章或页面的 Markdown 源文件中,插入如下标签。")]),t._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v("{% table _data/reward.json 时间,赞助人,金额,留言 %}\n")])])])]),t._v(" "),a("li",[a("p",[t._v("重启 Hexo 服务器,效果如下。")]),t._v(" "),a("p",[a("img",{attrs:{src:"https://raw.githubusercontent.com/liuyib/picBed/master/hexo-theme-stun/doc/20190803141118.png",alt:"Stun | tag plugins - table"}})])])]),t._v(" "),a("h3",{attrs:{id:"插入注释"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#插入注释"}},[t._v("#")]),t._v(" 插入注释 "),a("Badge",{attrs:{text:"Stable"}}),t._v(" "),a("Badge",{attrs:{text:"v1.2.0"}})],1),t._v(" "),a("div",{staticClass:"custom-block warning"},[a("p",{staticClass:"custom-block-title"},[t._v("WARNING")]),t._v(" "),a("p",[a("strong",[t._v("info")]),t._v(" 类型的标注从 "),a("code",[t._v("v2.0.0-rc.0")]),t._v(" 开始支持,其他类型的标注均从 "),a("code",[t._v("v1.2.0")]),t._v(" 开始支持。")])]),t._v(" "),a("p",[t._v("语法如下:")]),t._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v("{% note [type] [no-icon] %}\n**header text**\nAny text\n{% endnote %}\n")])])]),a("blockquote",[a("p",[t._v("标签内可以是任意文字,支持 Markdown 和 HTML 语法。")])]),t._v(" "),a("p",[t._v("参数:")]),t._v(" "),a("p",[a("code",[t._v("[type]")]),t._v(":标注类型")]),t._v(" "),a("p",[a("code",[t._v("[no-icon]")]),t._v(":是否显示 ICON")]),t._v(" "),a("p",[t._v("举例:")]),t._v(" "),a("div",{staticClass:"language-markdown extra-class"},[a("pre",{pre:!0,attrs:{class:"language-markdown"}},[a("code",[a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("\x3c!-- With header, With icon --\x3e")]),t._v("\n{% note success %}\n"),a("span",{pre:!0,attrs:{class:"token bold"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("**")]),a("span",{pre:!0,attrs:{class:"token content"}},[t._v("Success")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("**")])]),t._v("\nThis is success note.\n{% endnote %}\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("\x3c!-- With header, No icon --\x3e")]),t._v("\n{% note success no-icon %}\n"),a("span",{pre:!0,attrs:{class:"token bold"}},[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("**")]),a("span",{pre:!0,attrs:{class:"token content"}},[t._v("Success")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("**")])]),t._v("\nThis is success note.\n{% endnote %}\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("\x3c!-- No header, With icon --\x3e")]),t._v("\n{% note success %}\nThis is success note.\n{% endnote %}\n\n"),a("span",{pre:!0,attrs:{class:"token comment"}},[t._v("\x3c!-- No header, No icon --\x3e")]),t._v("\n{% note success no-icon %}\nThis is success note.\n{% endnote %}\n")])])]),a("p",[t._v("全部效果如下:")]),t._v(" "),a("p",[a("img",{attrs:{src:"https://raw.githubusercontent.com/liuyib/picBed/master/hexo-theme-stun/doc/20200225192132.jpg",alt:"Stun | tag plugins - note"}})]),t._v(" "),a("h3",{attrs:{id:"插入友链"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#插入友链"}},[t._v("#")]),t._v(" 插入友链 "),a("Badge",{attrs:{text:"Stable"}}),t._v(" "),a("Badge",{attrs:{text:"v1.2.0"}})],1),t._v(" "),a("p",[t._v("语法如下:")]),t._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v("{% friends [path] %}\n")])])]),a("p",[t._v("参数:")]),t._v(" "),a("p",[a("code",[t._v("[path]")]),t._v(":数据文件的路径")]),t._v(" "),a("div",{staticClass:"custom-block warning"},[a("p",{staticClass:"custom-block-title"},[t._v("WARNING")]),t._v(" "),a("p",[t._v("数据文件必须放在 "),a("code",[t._v("/source/")]),t._v(" 目录下,建议放在 "),a("code",[t._v("/source/_data/")]),t._v(" 目录下。")])]),t._v(" "),a("p",[t._v("举例:")]),t._v(" "),a("ol",[a("li",[t._v(""),a("code",[t._v("/source/_data/")]),t._v(" 目录下新建文件 "),a("code",[t._v("friends.json")]),t._v(",填入数据。")])]),t._v(" "),a("div",{staticClass:"language-json extra-class"},[a("pre",{pre:!0,attrs:{class:"language-json"}},[a("code",[a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("[")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"avatar"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"https://placehold.it/100x100.jpg"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"name"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"张三"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"introduction"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"李四是大佬,李四是大佬,李四是大佬,李四是大佬,李四是大佬"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"url"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"https://liuyib.github.io/"')]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"avatar"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"https://placehold.it/100x100.jpg"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"name"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"李四"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"introduction"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"我不是大佬,我不是大佬,我不是大佬,我不是大佬,我不是大佬"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"url"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"https://liuyib.github.io/"')]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("{")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"avatar"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"https://placehold.it/100x100.jpg"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"name"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"王五"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"introduction"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"我是小白"')]),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(",")]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token property"}},[t._v('"url"')]),a("span",{pre:!0,attrs:{class:"token operator"}},[t._v(":")]),t._v(" "),a("span",{pre:!0,attrs:{class:"token string"}},[t._v('"https://liuyib.github.io/"')]),t._v("\n "),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("}")]),t._v("\n"),a("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v("]")]),t._v("\n")])])]),a("div",{staticClass:"custom-block warning"},[a("p",{staticClass:"custom-block-title"},[t._v("WARNING")]),t._v(" "),a("p",[t._v("数据的格式要和上面保持一致,即要有:"),a("code",[t._v("avatar")]),t._v(""),a("code",[t._v("name")]),t._v(""),a("code",[t._v("introduction")]),t._v(""),a("code",[t._v("url")]),t._v(" 几个字段。")])]),t._v(" "),a("ol",{attrs:{start:"2"}},[a("li",[t._v("在文章或页面的 Markdown 源文件中,插入如下标签。")])]),t._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v("{% friends _data/friends.json %}\n")])])]),a("ol",{attrs:{start:"3"}},[a("li",[t._v("重启 Hexo 服务器,效果如下。")])]),t._v(" "),a("p",[a("img",{attrs:{src:"https://raw.githubusercontent.com/liuyib/picBed/master/hexo-theme-stun/doc/20190803141110.png",alt:"Stun | tag plugins - friends"}})])])}),[],!1,null,null,null);s.default=n.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[16],{436:function(t,a,e){"use strict";e.r(a);var s=e(53),n=Object(s.a)({},(function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[e("h1",{attrs:{id:"优化建议"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#优化建议"}},[t._v("#")]),t._v(" 优化建议")]),t._v(" "),e("h2",{attrs:{id:"打包、压缩资源文件"}},[e("a",{staticClass:"header-anchor",attrs:{href:"#打包、压缩资源文件"}},[t._v("#")]),t._v(" 打包、压缩资源文件 "),e("Badge",{attrs:{text:"Disrelated",type:"warning"}})],1),t._v(" "),e("div",{staticClass:"custom-block danger"},[e("p",{staticClass:"custom-block-title"},[t._v("WARNING")]),t._v(" "),e("p",[t._v("由于我在使用过程中,发现了该插件的很多问题,例如:"),e("a",{attrs:{href:"https://github.com/chenzhutian/hexo-all-minifier/issues/93",target:"_blank",rel:"noopener noreferrer"}},[t._v("#93"),e("OutboundLink")],1),t._v(",所以暂时不再推荐使用!")])]),t._v(" "),e("p",[t._v("Stun 主题的源码中,"),e("code",[t._v("HTML")]),t._v(", "),e("code",[t._v("CSS")]),t._v(", "),e("code",[t._v("JavaScript")]),t._v(", "),e("code",[t._v("图片")]),t._v(" 等资源文件是没有打包压缩的。绝大部分的 Hexo 主题也是如此。庆幸的是,可以找到相关的插件来解决这一问题。")]),t._v(" "),e("p",[t._v("这里可以使用 "),e("a",{attrs:{href:"https://github.com/chenzhutian/hexo-all-minifier",target:"_blank",rel:"noopener noreferrer"}},[t._v("hexo-all-minifier"),e("OutboundLink")],1),t._v(" 插件,它集成了 "),e("code",[t._v("html-minifier")]),t._v(", "),e("code",[t._v("clean-css")]),t._v(", "),e("code",[t._v("uglify")]),t._v(""),e("code",[t._v("imagemin")]),t._v(",只需安装和简单的配置即可使用。")]),t._v(" "),e("ul",[e("li",[e("p",[t._v("安装")]),t._v(" "),e("p",[t._v("在 Hexo 根目录下执行指令。")]),t._v(" "),e("blockquote",[e("p",[t._v("一定要在 Git Bash 中执行,在 Window 的 PowerShell 或 CMD 中执行可能会失败。建议养成在 Git Bash 中执行 npm 指令的好习惯!")])]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[t._v("$ "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("npm")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v(" hexo-all-minifier --save\n")])])]),e("p",[t._v("如果是 Mac 用户,你还需要执行下面的指令。")]),t._v(" "),e("div",{staticClass:"language-bash extra-class"},[e("pre",{pre:!0,attrs:{class:"language-bash"}},[e("code",[t._v("$ brew "),e("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v(" libtool automake autoconf nasm\n")])])])]),t._v(" "),e("li",[e("p",[t._v("使用")]),t._v(" "),e("p",[t._v("在 Hexo 根目录下的 "),e("code",[t._v("_config.yml")]),t._v(" 文件中,添加以下字段即可使用。")]),t._v(" "),e("div",{staticClass:"language-yaml extra-class"},[e("pre",{pre:!0,attrs:{class:"language-yaml"}},[e("code",[e("span",{pre:!0,attrs:{class:"token key atrule"}},[t._v("all_minifier")]),e("span",{pre:!0,attrs:{class:"token punctuation"}},[t._v(":")]),t._v(" "),e("span",{pre:!0,attrs:{class:"token boolean important"}},[t._v("true")]),t._v("\n")])])])])]),t._v(" "),e("p",[t._v("如果你使用插件时"),e("strong",[t._v("遇到了问题")]),t._v(" 或者 想进行"),e("strong",[t._v("更详细的设置")]),t._v(",请查看插件的"),e("a",{attrs:{href:"https://github.com/chenzhutian/hexo-all-minifier/blob/master/README.md",target:"_blank",rel:"noopener noreferrer"}},[t._v("文档"),e("OutboundLink")],1),t._v("")]),t._v(" "),e("blockquote",[e("p",[e("s",[t._v("安装这个插件后,不管使用哪一个主题,都可以生效,所以强烈推荐使用。")])])])])}),[],!1,null,null,null);a.default=n.exports}}]);
\ No newline at end of file
此差异已折叠。
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{438:function(t,e,s){"use strict";s.r(e);var v=s(53),r=Object(v.a)({},(function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[s("h1",{attrs:{id:"贡献准则"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#贡献准则"}},[t._v("#")]),t._v(" 贡献准则 ")]),t._v(" "),s("div",{staticStyle:{color:"#73c8ff","font-size":"36px"},attrs:{align:"center"}},[s("a",{attrs:{title:"Go to homepage",href:"https://github.com/liuyib/hexo-theme-stun"}},[s("img",{attrs:{align:"center",width:"60",height:"60",src:"https://raw.githubusercontent.com/liuyib/hexo-theme-stun/master/source/images/icons/stun-logo.svg?sanitize=true"}})]),t._v(" t u n")]),t._v(" "),s("p",[t._v("嗨!我很高兴您有兴趣为 «Stun» 做贡献。在进行贡献之前,请务必花一些时间通读以下准则:")]),t._v(" "),s("ul",[s("li",[s("a",{attrs:{href:"#pull-request-%e5%87%86%e5%88%99"}},[t._v("Pull request 准则")])]),t._v(" "),s("li",[s("a",{attrs:{href:"#%e5%bc%80%e5%8f%91%e4%b9%8b%e5%89%8d%e7%9a%84%e5%87%86%e5%a4%87"}},[t._v("开发之前的准备")])]),t._v(" "),s("li",[s("a",{attrs:{href:"#%e6%8f%90%e4%ba%a4%e4%bf%a1%e6%81%af%e8%a7%84%e8%8c%83"}},[t._v("提交信息规范")])])]),t._v(" "),s("h2",{attrs:{id:"pull-request-准则"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#pull-request-准则"}},[t._v("#")]),t._v(" Pull request 准则")]),t._v(" "),s("p",[t._v("要知道,"),s("code",[t._v("master")]),t._v(" 分支只是最新稳定版本的一个快照。所有的开发都应该在专门的分支中进行,"),s("strong",[t._v("不要向 "),s("code",[t._v("master")]),t._v(" 分支提交 PRs")]),t._v("")]),t._v(" "),s("ul",[s("li",[t._v("将仓库 fork 到你的 Github,并 clone 到本地")]),t._v(" "),s("li",[t._v("切换到"),s("strong",[t._v("新分支")]),t._v("(例如 "),s("code",[t._v("patch-1")]),t._v(")上开发")]),t._v(" "),s("li",[t._v("将本地修改进行提交(如果你修改了源代码,请执行 "),s("code",[t._v("npm run lint:fix")]),t._v("")]),t._v(" "),s("li",[t._v("将提交 push 到 fork 的仓库下")]),t._v(" "),s("li",[t._v("创建一个 Pull request 到 Stun 主题仓库的 "),s("strong",[t._v("dev 分支")])])]),t._v(" "),s("h2",{attrs:{id:"开发之前的准备"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#开发之前的准备"}},[t._v("#")]),t._v(" 开发之前的准备")]),t._v(" "),s("p",[t._v("你需要安装 "),s("a",{attrs:{href:"http://nodejs.org/",target:"_blank",rel:"noopener noreferrer"}},[t._v("Node.js"),s("OutboundLink")],1),t._v(""),s("a",{attrs:{href:"https://docs.npmjs.com/downloading-and-installing-node-js-and-npm",target:"_blank",rel:"noopener noreferrer"}},[t._v("npm"),s("OutboundLink")],1),t._v("")]),t._v(" "),s("p",[t._v("在 clone 该仓库后,执行:")]),t._v(" "),s("div",{staticClass:"language-bash extra-class"},[s("pre",{pre:!0,attrs:{class:"language-bash"}},[s("code",[t._v("$ "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("npm")]),t._v(" "),s("span",{pre:!0,attrs:{class:"token function"}},[t._v("install")]),t._v("\n")])])]),s("h2",{attrs:{id:"提交信息规范"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#提交信息规范"}},[t._v("#")]),t._v(" 提交信息规范")]),t._v(" "),s("p",[t._v("我们对项目的 git 提交信息格式进行统一格式约定,每条提交信息由 "),s("code",[t._v("type")]),t._v(" + "),s("code",[t._v("subject")]),t._v(" 组成,这将提升项目日志的可读性。")]),t._v(" "),s("ul",[s("li",[s("code",[t._v("type")]),t._v(" 用于描述此次提交信息的意义,全小写,仅包括如下类型:\n"),s("ul",[s("li",[s("code",[t._v("feat")]),t._v(":新功能")]),t._v(" "),s("li",[s("code",[t._v("fix")]),t._v(":Bug 修复")]),t._v(" "),s("li",[s("code",[t._v("refactor")]),t._v(":重构(既不是新增功能,也不是修改 Bug 的代码变动)")]),t._v(" "),s("li",[s("code",[t._v("docs")]),t._v(":文档变化")]),t._v(" "),s("li",[s("code",[t._v("style")]),t._v(":代码格式变化(空格、缩进、换行、分号等)")]),t._v(" "),s("li",[s("code",[t._v("test")]),t._v(":代码测试相关")]),t._v(" "),s("li",[s("code",[t._v("chore")]),t._v(":基础构建工具或依赖库的变化(不涉及源码)")]),t._v(" "),s("li",[s("code",[t._v("revert")]),t._v(":代码回滚(回退已经存在的 "),s("code",[t._v("commit")]),t._v("")])])]),t._v(" "),s("li",[s("code",[t._v("subject")]),t._v(" 用于简要描述修改变更的内容,如 "),s("code",[t._v("Update quick start in readme.md")]),t._v(" "),s("ul",[s("li",[t._v("句尾不要使用符号")]),t._v(" "),s("li",[t._v("使用现在时、祈使句语气")])])])]),t._v(" "),s("h2",{attrs:{id:"贡献人员"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#贡献人员"}},[t._v("#")]),t._v(" 贡献人员")]),t._v(" "),s("p",[t._v("感谢所有为 «Stun» 做出贡献的人!")]),t._v(" "),s("a",{attrs:{href:"https://github.com/liuyib/hexo-theme-stun/graphs/contributors"}},[s("img",{attrs:{src:"https://opencollective.com/hexo-theme-stun/contributors.svg?width=980"}})])])}),[],!1,null,null,null);e.default=r.exports}}]);
\ No newline at end of file
此差异已折叠。
此差异已折叠。
(window.webpackJsonp=window.webpackJsonp||[]).push([[20],{440:function(s,a,t){"use strict";t.r(a);var e=t(53),n=Object(e.a)({},(function(){var s=this,a=s.$createElement,t=s._self._c||a;return t("ContentSlotsDistributor",{attrs:{"slot-key":s.$parent.slotKey}},[t("h1",{attrs:{id:"快速开始"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#快速开始"}},[s._v("#")]),s._v(" 快速开始")]),s._v(" "),t("h2",{attrs:{id:"安装"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#安装"}},[s._v("#")]),s._v(" 安装")]),s._v(" "),t("ul",[t("li",[t("p",[s._v("安装 Stun")]),s._v(" "),t("p",[s._v("在 Hexo 根目录下,执行指令:")]),s._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[s._v("$ "),t("span",{pre:!0,attrs:{class:"token function"}},[s._v("git")]),s._v(" clone https://github.com/liuyib/hexo-theme-stun.git themes/stun\n")])])])]),s._v(" "),t("li",[t("p",[s._v("安装依赖 "),t("code",[s._v("hexo-render-pug")])]),s._v(" "),t("p",[s._v("在 Hexo 根目录下,执行指令:")]),s._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[s._v("$ "),t("span",{pre:!0,attrs:{class:"token function"}},[s._v("npm")]),s._v(" "),t("span",{pre:!0,attrs:{class:"token function"}},[s._v("install")]),s._v(" --save hexo-render-pug\n")])])])])]),s._v(" "),t("h2",{attrs:{id:"使用"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#使用"}},[s._v("#")]),s._v(" 使用")]),s._v(" "),t("p",[s._v("修改 Hexo 根目录下的 "),t("code",[s._v("_config.yml")]),s._v(" 文件:")]),s._v(" "),t("div",{staticClass:"language-yml extra-class"},[t("pre",{pre:!0,attrs:{class:"language-yml"}},[t("code",[t("span",{pre:!0,attrs:{class:"token key atrule"}},[s._v("theme")]),t("span",{pre:!0,attrs:{class:"token punctuation"}},[s._v(":")]),s._v(" stun\n")])])]),t("p",[s._v("启动 Hexo 服务器:")]),s._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[s._v("$ hexo clean "),t("span",{pre:!0,attrs:{class:"token operator"}},[s._v("&&")]),s._v(" hexo s\n")])])]),t("h2",{attrs:{id:"更新"}},[t("a",{staticClass:"header-anchor",attrs:{href:"#更新"}},[s._v("#")]),s._v(" 更新")]),s._v(" "),t("p",[s._v("在 Hexo 根目录下,执行指令:")]),s._v(" "),t("div",{staticClass:"language-bash extra-class"},[t("pre",{pre:!0,attrs:{class:"language-bash"}},[t("code",[s._v("$ "),t("span",{pre:!0,attrs:{class:"token builtin class-name"}},[s._v("cd")]),s._v(" themes/stun\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[s._v("# 更新到稳定版本(推荐)")]),s._v("\n$ "),t("span",{pre:!0,attrs:{class:"token function"}},[s._v("git")]),s._v(" pull origin master\n\n"),t("span",{pre:!0,attrs:{class:"token comment"}},[s._v("# 更新到最新功能(不推荐)")]),s._v("\n$ "),t("span",{pre:!0,attrs:{class:"token function"}},[s._v("git")]),s._v(" pull origin dev\n")])])])])}),[],!1,null,null,null);a.default=n.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{389:function(t,e,n){},422:function(t,e,n){"use strict";var i=n(389);n.n(i).a},441:function(t,e,n){"use strict";n.r(e);var i={functional:!0,props:{type:{type:String,default:"tip"},text:String,vertical:{type:String,default:"top"}},render:function(t,e){var n=e.props,i=e.slots;return t("span",{class:["badge",n.type],style:{verticalAlign:n.vertical}},n.text||i().default)}},r=(n(422),n(53)),a=Object(r.a)(i,void 0,void 0,!1,null,"15b7b770",null);e.default=a.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[4],{424:function(t,e,s){"use strict";s.r(e);var n=["There's nothing here.","How did we get here?","That's a Four-Oh-Four.","Looks like we've got some broken links."],o={methods:{getMsg:function(){return n[Math.floor(Math.random()*n.length)]}}},i=s(53),h=Object(i.a)(o,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"theme-container"},[e("div",{staticClass:"theme-default-content"},[e("h1",[this._v("404")]),this._v(" "),e("blockquote",[this._v(this._s(this.getMsg()))]),this._v(" "),e("RouterLink",{attrs:{to:"/"}},[this._v("\n Take me home.\n ")])],1)])}),[],!1,null,null,null);e.default=h.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{425:function(t,e,n){"use strict";n.r(e);var s=n(53),l=Object(s.a)({},(function(){var t=this.$createElement;return(this._self._c||t)("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}})}),[],!1,null,null,null);e.default=l.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[6],{426:function(t,s,e){"use strict";e.r(s);var n=e(53),i=Object(n.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"advanced-setting"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#advanced-setting"}},[this._v("#")]),this._v(" Advanced setting")]),this._v(" "),s("blockquote",[s("p",[this._v("Documentation is writing...")])])])}),[],!1,null,null,null);s.default=i.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{427:function(t,s,i){"use strict";i.r(s);var n=i(53),e=Object(n.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"assist-function"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#assist-function"}},[this._v("#")]),this._v(" Assist function")]),this._v(" "),s("blockquote",[s("p",[this._v("Documentation is writing...")])])])}),[],!1,null,null,null);s.default=e.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{428:function(t,i,s){"use strict";s.r(i);var e=s(53),n=Object(e.a)({},(function(){var t=this.$createElement,i=this._self._c||t;return i("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[i("h1",{attrs:{id:"optimize"}},[i("a",{staticClass:"header-anchor",attrs:{href:"#optimize"}},[this._v("#")]),this._v(" Optimize")]),this._v(" "),i("blockquote",[i("p",[this._v("Documentation is writing...")])])])}),[],!1,null,null,null);i.default=n.exports}}]);
\ No newline at end of file
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{429:function(t,s,r){"use strict";r.r(s);var i=r(53),e=Object(i.a)({},(function(){var t=this.$createElement,s=this._self._c||t;return s("ContentSlotsDistributor",{attrs:{"slot-key":this.$parent.slotKey}},[s("h1",{attrs:{id:"third-part"}},[s("a",{staticClass:"header-anchor",attrs:{href:"#third-part"}},[this._v("#")]),this._v(" Third part")]),this._v(" "),s("blockquote",[s("p",[this._v("Documentation is writing...")])])])}),[],!1,null,null,null);s.default=e.exports}}]);
\ No newline at end of file
此差异已折叠。
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Contribution | hexo-theme-stun</title>
<meta name="generator" content="VuePress 1.5.2">
<link rel="icon" href="/hexo-theme-stun/icons/favicon-32x32.png">
<meta name="description" content="A beautiful & simple theme for Hexo">
<link rel="preload" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css" as="style"><link rel="preload" href="/hexo-theme-stun/assets/js/app.b850f147.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/2.883641a6.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/10.b83ac2ab.js" as="script"><link rel="prefetch" href="/hexo-theme-stun/assets/js/11.5d746985.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/12.7359c5ec.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/13.e62248d6.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/14.68c5f93f.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/15.88a42515.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/16.aefc9e47.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/17.e1988749.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/18.5cde9d58.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/19.a9abcb29.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/20.ecbadd78.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/3.67dc95e3.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/4.d9ad600e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/5.685d6db4.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/6.9f577310.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/7.47a12772.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/8.aec2064e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/9.b0c5ecc0.js">
<link rel="stylesheet" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/hexo-theme-stun/" class="home-link router-link-active"><img src="/hexo-theme-stun/icons/favicon-192x192.png" alt="hexo-theme-stun" class="logo"> <span class="site-name can-hide">hexo-theme-stun</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" class="nav-link">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" class="nav-link">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" class="nav-link">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" class="nav-link">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" class="nav-link">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/contribute/contribute.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/contribute/contribute.html" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" class="nav-link">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" class="nav-link">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" class="nav-link">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" class="nav-link">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" class="nav-link">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/contribute/contribute.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/contribute/contribute.html" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Guide</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/guide/quick-start.html" class="sidebar-link">Quick start</a></li><li><a href="/hexo-theme-stun/guide/primary.html" class="sidebar-link">Primary Setting</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Advanced</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/advanced/advanced.html" class="sidebar-link">Advanced setting</a></li><li><a href="/hexo-theme-stun/advanced/third-part.html" class="sidebar-link">Third part</a></li><li><a href="/hexo-theme-stun/advanced/assist.html" class="sidebar-link">Assist function</a></li><li><a href="/hexo-theme-stun/advanced/optimize.html" class="sidebar-link">Optimize</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>Contribution</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/contribute/contribute.html" aria-current="page" class="active sidebar-link">Contribution</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/hexo-theme-stun/contribute/contribute.html#pull-request-guidelines" class="sidebar-link">Pull Request Guidelines</a></li><li class="sidebar-sub-header"><a href="/hexo-theme-stun/contribute/contribute.html#development-setup" class="sidebar-link">Development Setup</a></li><li class="sidebar-sub-header"><a href="/hexo-theme-stun/contribute/contribute.html#commit-messages-rules" class="sidebar-link">Commit Messages Rules</a></li><li class="sidebar-sub-header"><a href="/hexo-theme-stun/contribute/contribute.html#contributors" class="sidebar-link">Contributors</a></li></ul></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="contribution"><a href="#contribution" class="header-anchor">#</a> Contribution </h1> <div align="center" style="color:#73c8ff;font-size:36px;"><a title="Go to homepage" href="https://github.com/liuyib/hexo-theme-stun"><img align="center" width="60" height="60" src="https://raw.githubusercontent.com/liuyib/hexo-theme-stun/master/source/images/icons/stun-logo.svg?sanitize=true"></a> t u n</div> <p>Hi! I'm really excited that you are interested in contributing to «Stun». Before submitting your contribution, please make sure to take a moment and read through the following guidelines:</p> <ul><li><a href="#pull-request-guidelines">Pull Request Guidelines</a></li> <li><a href="#development-setup">Development Setup</a></li> <li><a href="#commit-messages-rules">Commit Messages Rules</a></li></ul> <h2 id="pull-request-guidelines"><a href="#pull-request-guidelines" class="header-anchor">#</a> Pull Request Guidelines</h2> <p>The <code>master</code> branch is just a snapshot of the latest stable release. All development should be done in dedicated branches. <strong>Do not submit PRs against the <code>master</code> branch</strong>.</p> <ul><li>Fork the repository to your Github and clone it.</li> <li>Switch to a <strong>new branch</strong> (e.g. <code>patch-1</code>) to develop.</li> <li>Submit changes locally (If you modified source code, please run <code>npm run lint:fix</code>).</li> <li>Push the commit to the repository of fork.</li> <li>Create a Pull request to the <strong>dev branch</strong> of the Stun theme repository.</li></ul> <h2 id="development-setup"><a href="#development-setup" class="header-anchor">#</a> Development Setup</h2> <p>You need to install <a href="http://nodejs.org/" target="_blank" rel="noopener noreferrer">Node.js<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> and <a href="https://docs.npmjs.com/downloading-and-installing-node-js-and-npm" target="_blank" rel="noopener noreferrer">npm<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>.</p> <p>After cloning the repo, run:</p> <div class="language-bash extra-class"><pre class="language-bash"><code>$ <span class="token function">npm</span> <span class="token function">install</span>
</code></pre></div><h2 id="commit-messages-rules"><a href="#commit-messages-rules" class="header-anchor">#</a> Commit Messages Rules</h2> <p>We agree on the format of Git commit information, and each commit information is composed of <code>type</code> + <code>subject</code>, which will improve the readability of the project log.</p> <ul><li><code>type</code> Describes the meaning of this submission, all lowercase, including only the following types:
<ul><li><code>feat</code>: A new feature</li> <li><code>fix</code>: A bug fix</li> <li><code>refactor</code>: A code change that neither adds a feature nor fixes a bug</li> <li><code>docs</code>: Documentation only changes</li> <li><code>style</code>: Code format changes (white-space, indentation, line breaks, semicolons, etc.)</li> <li><code>test</code>: Code test correlation</li> <li><code>chore</code>: Changes to basic build tools or dependent libraries (no source code involved)</li> <li><code>revert</code>: Revert some existing commits</li></ul></li> <li><code>subject</code> contains a succinct description of the change, like <code>Update quick start in readme.md</code> <ul><li>No dot (<code>.</code>) at the end</li> <li>Use the imperative, present tense (&quot;change&quot; not &quot;changed&quot; nor &quot;changes&quot;)</li></ul></li></ul> <h2 id="contributors"><a href="#contributors" class="header-anchor">#</a> Contributors</h2> <p>Thank you to all the people who have already contributed to «Stun»!</p> <a href="https://github.com/liuyib/hexo-theme-stun/graphs/contributors"><img src="https://opencollective.com/hexo-theme-stun/contributors.svg?width=980"></a></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/liuyib/hexo-theme-stun/edit/master/docs/contribute/contribute.md" target="_blank" rel="noopener noreferrer">Edit this page on GitHub</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">5/7/2020, 3:43:59 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/hexo-theme-stun/advanced/optimize.html" class="prev">
Optimize
</a></span> <!----></p></div> </main></div><div class="global-ui"></div></div>
<script src="/hexo-theme-stun/assets/js/app.b850f147.js" defer></script><script src="/hexo-theme-stun/assets/js/2.883641a6.js" defer></script><script src="/hexo-theme-stun/assets/js/10.b83ac2ab.js" defer></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Primary Setting | hexo-theme-stun</title>
<meta name="generator" content="VuePress 1.5.2">
<link rel="icon" href="/hexo-theme-stun/icons/favicon-32x32.png">
<meta name="description" content="A beautiful & simple theme for Hexo">
<link rel="preload" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css" as="style"><link rel="preload" href="/hexo-theme-stun/assets/js/app.b850f147.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/2.883641a6.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/11.5d746985.js" as="script"><link rel="prefetch" href="/hexo-theme-stun/assets/js/10.b83ac2ab.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/12.7359c5ec.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/13.e62248d6.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/14.68c5f93f.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/15.88a42515.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/16.aefc9e47.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/17.e1988749.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/18.5cde9d58.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/19.a9abcb29.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/20.ecbadd78.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/3.67dc95e3.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/4.d9ad600e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/5.685d6db4.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/6.9f577310.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/7.47a12772.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/8.aec2064e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/9.b0c5ecc0.js">
<link rel="stylesheet" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/hexo-theme-stun/" class="home-link router-link-active"><img src="/hexo-theme-stun/icons/favicon-192x192.png" alt="hexo-theme-stun" class="logo"> <span class="site-name can-hide">hexo-theme-stun</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" class="nav-link">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" class="nav-link">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" class="nav-link">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" class="nav-link">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/guide/primary.html" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" class="nav-link">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" class="nav-link">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" class="nav-link">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" class="nav-link">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/guide/primary.html" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>Guide</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/guide/quick-start.html" class="sidebar-link">Quick start</a></li><li><a href="/hexo-theme-stun/guide/primary.html" aria-current="page" class="active sidebar-link">Primary Setting</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Advanced</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/advanced/advanced.html" class="sidebar-link">Advanced setting</a></li><li><a href="/hexo-theme-stun/advanced/third-part.html" class="sidebar-link">Third part</a></li><li><a href="/hexo-theme-stun/advanced/assist.html" class="sidebar-link">Assist function</a></li><li><a href="/hexo-theme-stun/advanced/optimize.html" class="sidebar-link">Optimize</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Contribution</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/contribute/contribute.html" class="sidebar-link">Contribution</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="primary-setting"><a href="#primary-setting" class="header-anchor">#</a> Primary Setting</h1> <blockquote><p>Documentation is writing...</p></blockquote></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/liuyib/hexo-theme-stun/edit/master/docs/guide/primary.md" target="_blank" rel="noopener noreferrer">Edit this page on GitHub</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">5/5/2020, 1:34:17 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/hexo-theme-stun/guide/quick-start.html" class="prev">
Quick start
</a></span> <span class="next"><a href="/hexo-theme-stun/advanced/advanced.html">
Advanced setting
</a>
</span></p></div> </main></div><div class="global-ui"></div></div>
<script src="/hexo-theme-stun/assets/js/app.b850f147.js" defer></script><script src="/hexo-theme-stun/assets/js/2.883641a6.js" defer></script><script src="/hexo-theme-stun/assets/js/11.5d746985.js" defer></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Quick start | hexo-theme-stun</title>
<meta name="generator" content="VuePress 1.5.2">
<link rel="icon" href="/hexo-theme-stun/icons/favicon-32x32.png">
<meta name="description" content="A beautiful & simple theme for Hexo">
<link rel="preload" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css" as="style"><link rel="preload" href="/hexo-theme-stun/assets/js/app.b850f147.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/2.883641a6.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/12.7359c5ec.js" as="script"><link rel="prefetch" href="/hexo-theme-stun/assets/js/10.b83ac2ab.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/11.5d746985.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/13.e62248d6.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/14.68c5f93f.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/15.88a42515.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/16.aefc9e47.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/17.e1988749.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/18.5cde9d58.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/19.a9abcb29.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/20.ecbadd78.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/3.67dc95e3.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/4.d9ad600e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/5.685d6db4.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/6.9f577310.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/7.47a12772.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/8.aec2064e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/9.b0c5ecc0.js">
<link rel="stylesheet" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/hexo-theme-stun/" class="home-link router-link-active"><img src="/hexo-theme-stun/icons/favicon-192x192.png" alt="hexo-theme-stun" class="logo"> <span class="site-name can-hide">hexo-theme-stun</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" class="nav-link">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" class="nav-link">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" class="nav-link">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" class="nav-link">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/guide/quick-start.html" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" class="nav-link">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" class="nav-link">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" class="nav-link">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" class="nav-link">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/guide/quick-start.html" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>Guide</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/guide/quick-start.html" aria-current="page" class="active sidebar-link">Quick start</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/hexo-theme-stun/guide/quick-start.html#installation" class="sidebar-link">Installation</a></li><li class="sidebar-sub-header"><a href="/hexo-theme-stun/guide/quick-start.html#how-to-use" class="sidebar-link">How to use</a></li><li class="sidebar-sub-header"><a href="/hexo-theme-stun/guide/quick-start.html#update" class="sidebar-link">Update</a></li></ul></li><li><a href="/hexo-theme-stun/guide/primary.html" class="sidebar-link">Primary Setting</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Advanced</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/advanced/advanced.html" class="sidebar-link">Advanced setting</a></li><li><a href="/hexo-theme-stun/advanced/third-part.html" class="sidebar-link">Third part</a></li><li><a href="/hexo-theme-stun/advanced/assist.html" class="sidebar-link">Assist function</a></li><li><a href="/hexo-theme-stun/advanced/optimize.html" class="sidebar-link">Optimize</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Contribution</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/contribute/contribute.html" class="sidebar-link">Contribution</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="quick-start"><a href="#quick-start" class="header-anchor">#</a> Quick start</h1> <h2 id="installation"><a href="#installation" class="header-anchor">#</a> Installation</h2> <ul><li><p>Install <code>Stun</code></p> <p>Enter your hexo directory, run this.</p> <div class="language-bash extra-class"><pre class="language-bash"><code>$ <span class="token function">git</span> clone https://github.com/liuyib/hexo-theme-stun.git themes/stun
</code></pre></div></li> <li><p>Install dependency <code>hexo-render-pug</code></p> <p>Enter your hexo directory, run this.</p> <div class="language-bash extra-class"><pre class="language-bash"><code>$ <span class="token function">npm</span> <span class="token function">install</span> --save hexo-render-pug
</code></pre></div></li></ul> <h2 id="how-to-use"><a href="#how-to-use" class="header-anchor">#</a> How to use</h2> <p>Change the <code>_config.yml</code> file in your hexo root directory.</p> <div class="language-yml extra-class"><pre class="language-yml"><code><span class="token key atrule">theme</span><span class="token punctuation">:</span> stun
</code></pre></div><p>Run your hexo server.</p> <div class="language-bash extra-class"><pre class="language-bash"><code>$ hexo clean <span class="token operator">&amp;&amp;</span> hexo s
</code></pre></div><h2 id="update"><a href="#update" class="header-anchor">#</a> Update</h2> <div class="language-bash extra-class"><pre class="language-bash"><code>$ <span class="token builtin class-name">cd</span> themes/stun
<span class="token comment"># Update to stable version (Recommend).</span>
$ <span class="token function">git</span> pull origin master
<span class="token comment"># Update to the latest features (Not recommended).</span>
$ <span class="token function">git</span> pull origin dev
</code></pre></div></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/liuyib/hexo-theme-stun/edit/master/docs/guide/quick-start.md" target="_blank" rel="noopener noreferrer">Edit this page on GitHub</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">3/29/2020, 4:09:52 AM</span></div></footer> <div class="page-nav"><p class="inner"><!----> <span class="next"><a href="/hexo-theme-stun/guide/primary.html">
Primary Setting
</a>
</span></p></div> </main></div><div class="global-ui"></div></div>
<script src="/hexo-theme-stun/assets/js/app.b850f147.js" defer></script><script src="/hexo-theme-stun/assets/js/2.883641a6.js" defer></script><script src="/hexo-theme-stun/assets/js/12.7359c5ec.js" defer></script>
</body>
</html>
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>hexo-theme-stun</title>
<meta name="generator" content="VuePress 1.5.2">
<link rel="icon" href="/hexo-theme-stun/icons/favicon-32x32.png">
<meta name="description" content="A beautiful & simple theme for Hexo">
<link rel="preload" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css" as="style"><link rel="preload" href="/hexo-theme-stun/assets/js/app.b850f147.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/2.883641a6.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/5.685d6db4.js" as="script"><link rel="prefetch" href="/hexo-theme-stun/assets/js/10.b83ac2ab.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/11.5d746985.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/12.7359c5ec.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/13.e62248d6.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/14.68c5f93f.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/15.88a42515.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/16.aefc9e47.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/17.e1988749.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/18.5cde9d58.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/19.a9abcb29.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/20.ecbadd78.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/3.67dc95e3.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/4.d9ad600e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/6.9f577310.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/7.47a12772.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/8.aec2064e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/9.b0c5ecc0.js">
<link rel="stylesheet" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container no-sidebar"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/hexo-theme-stun/" aria-current="page" class="home-link router-link-exact-active router-link-active"><img src="/hexo-theme-stun/icons/favicon-192x192.png" alt="hexo-theme-stun" class="logo"> <span class="site-name can-hide">hexo-theme-stun</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" class="nav-link">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" class="nav-link">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" class="nav-link">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" class="nav-link">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" class="nav-link">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Guide" class="dropdown-title"><span class="title">Guide</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/quick-start.html" class="nav-link">
Quick start
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/guide/primary.html" class="nav-link">
Primary setting
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Advanced" class="dropdown-title"><span class="title">Advanced</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/advanced.html" class="nav-link">
Advanced setting
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/third-part.html" class="nav-link">
Third part
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/assist.html" class="nav-link">
Assist function
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
Optimization
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
Contribute
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">Languages</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/" aria-current="page" class="nav-link router-link-exact-active router-link-active">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/" class="nav-link">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>Guide</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/guide/quick-start.html" class="sidebar-link">Quick start</a></li><li><a href="/hexo-theme-stun/guide/primary.html" class="sidebar-link">Primary Setting</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Advanced</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/advanced/advanced.html" class="sidebar-link">Advanced setting</a></li><li><a href="/hexo-theme-stun/advanced/third-part.html" class="sidebar-link">Third part</a></li><li><a href="/hexo-theme-stun/advanced/assist.html" class="sidebar-link">Assist function</a></li><li><a href="/hexo-theme-stun/advanced/optimize.html" class="sidebar-link">Optimize</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>Contribution</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/contribute/contribute.html" class="sidebar-link">Contribution</a></li></ul></section></li></ul> </aside> <main aria-labelledby="main-title" class="home"><header class="hero"><img src="/hexo-theme-stun/icons/favicon-192x192.png" alt="hero"> <h1 id="main-title">
hexo-theme-stun
</h1> <p class="description">
A beautiful &amp; simple theme for Hexo
</p> <p class="action"><a href="/hexo-theme-stun/guide/quick-start.html" class="nav-link action-button">
Quick Started →
</a></p></header> <!----> <div class="theme-default-content custom content__default"></div> <div class="footer">
MIT Licensed | Copyright © 2019-present liuyib
</div></main></div><div class="global-ui"></div></div>
<script src="/hexo-theme-stun/assets/js/app.b850f147.js" defer></script><script src="/hexo-theme-stun/assets/js/2.883641a6.js" defer></script><script src="/hexo-theme-stun/assets/js/5.685d6db4.js" defer></script>
</body>
</html>
此差异已折叠。
此差异已折叠。
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>优化建议 | hexo-theme-stun</title>
<meta name="generator" content="VuePress 1.5.2">
<link rel="icon" href="/hexo-theme-stun/icons/favicon-32x32.png">
<meta name="description" content="一个漂亮、简洁的 Hexo 主题">
<link rel="preload" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css" as="style"><link rel="preload" href="/hexo-theme-stun/assets/js/app.b850f147.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/2.883641a6.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/16.aefc9e47.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/3.67dc95e3.js" as="script"><link rel="prefetch" href="/hexo-theme-stun/assets/js/10.b83ac2ab.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/11.5d746985.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/12.7359c5ec.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/13.e62248d6.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/14.68c5f93f.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/15.88a42515.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/17.e1988749.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/18.5cde9d58.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/19.a9abcb29.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/20.ecbadd78.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/4.d9ad600e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/5.685d6db4.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/6.9f577310.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/7.47a12772.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/8.aec2064e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/9.b0c5ecc0.js">
<link rel="stylesheet" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/hexo-theme-stun/zh-CN/" class="home-link router-link-active"><img src="/hexo-theme-stun/icons/favicon-192x192.png" alt="hexo-theme-stun" class="logo"> <span class="site-name can-hide">hexo-theme-stun</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="配置指南" class="dropdown-title"><span class="title">配置指南</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/guide/quick-start.html" class="nav-link">
快速开始
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/guide/primary.html" class="nav-link">
新手上路
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="高级设置" class="dropdown-title"><span class="title">高级设置</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/advanced.html" class="nav-link">
新手进阶
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/third-part.html" class="nav-link">
第三方支持
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/assist.html" class="nav-link">
辅助功能
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/optimize.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
优化建议
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/zh-CN/contribute/contribute.html" class="nav-link">
参与贡献
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">选择语言</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/optimize.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="配置指南" class="dropdown-title"><span class="title">配置指南</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/guide/quick-start.html" class="nav-link">
快速开始
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/guide/primary.html" class="nav-link">
新手上路
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="高级设置" class="dropdown-title"><span class="title">高级设置</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/advanced.html" class="nav-link">
新手进阶
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/third-part.html" class="nav-link">
第三方支持
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/assist.html" class="nav-link">
辅助功能
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/optimize.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
优化建议
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/zh-CN/contribute/contribute.html" class="nav-link">
参与贡献
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">选择语言</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/advanced/optimize.html" class="nav-link">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/optimize.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>配置指南</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/zh-CN/guide/quick-start.html" class="sidebar-link">快速开始</a></li><li><a href="/hexo-theme-stun/zh-CN/guide/primary.html" class="sidebar-link">新手上路</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>高级设置</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/zh-CN/advanced/advanced.html" class="sidebar-link">新手进阶</a></li><li><a href="/hexo-theme-stun/zh-CN/advanced/third-part.html" class="sidebar-link">第三方支持</a></li><li><a href="/hexo-theme-stun/zh-CN/advanced/assist.html" class="sidebar-link">辅助功能</a></li><li><a href="/hexo-theme-stun/zh-CN/advanced/optimize.html" aria-current="page" class="active sidebar-link">优化建议</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/hexo-theme-stun/zh-CN/advanced/optimize.html#打包、压缩资源文件" class="sidebar-link">打包、压缩资源文件</a></li></ul></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>参与贡献</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/zh-CN/contribute/contribute.html" class="sidebar-link">贡献准则</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="优化建议"><a href="#优化建议" class="header-anchor">#</a> 优化建议</h1> <h2 id="打包、压缩资源文件"><a href="#打包、压缩资源文件" class="header-anchor">#</a> 打包、压缩资源文件 <span class="badge warning" style="vertical-align:top;" data-v-15b7b770>Disrelated</span></h2> <div class="custom-block danger"><p class="custom-block-title">WARNING</p> <p>由于我在使用过程中,发现了该插件的很多问题,例如:<a href="https://github.com/chenzhutian/hexo-all-minifier/issues/93" target="_blank" rel="noopener noreferrer">#93<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a>,所以暂时不再推荐使用!</p></div> <p>Stun 主题的源码中,<code>HTML</code>, <code>CSS</code>, <code>JavaScript</code>, <code>图片</code> 等资源文件是没有打包压缩的。绝大部分的 Hexo 主题也是如此。庆幸的是,可以找到相关的插件来解决这一问题。</p> <p>这里可以使用 <a href="https://github.com/chenzhutian/hexo-all-minifier" target="_blank" rel="noopener noreferrer">hexo-all-minifier<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> 插件,它集成了 <code>html-minifier</code>, <code>clean-css</code>, <code>uglify</code><code>imagemin</code>,只需安装和简单的配置即可使用。</p> <ul><li><p>安装</p> <p>在 Hexo 根目录下执行指令。</p> <blockquote><p>一定要在 Git Bash 中执行,在 Window 的 PowerShell 或 CMD 中执行可能会失败。建议养成在 Git Bash 中执行 npm 指令的好习惯!</p></blockquote> <div class="language-bash extra-class"><pre class="language-bash"><code>$ <span class="token function">npm</span> <span class="token function">install</span> hexo-all-minifier --save
</code></pre></div><p>如果是 Mac 用户,你还需要执行下面的指令。</p> <div class="language-bash extra-class"><pre class="language-bash"><code>$ brew <span class="token function">install</span> libtool automake autoconf nasm
</code></pre></div></li> <li><p>使用</p> <p>在 Hexo 根目录下的 <code>_config.yml</code> 文件中,添加以下字段即可使用。</p> <div class="language-yaml extra-class"><pre class="language-yaml"><code><span class="token key atrule">all_minifier</span><span class="token punctuation">:</span> <span class="token boolean important">true</span>
</code></pre></div></li></ul> <p>如果你使用插件时<strong>遇到了问题</strong> 或者 想进行<strong>更详细的设置</strong>,请查看插件的<a href="https://github.com/chenzhutian/hexo-all-minifier/blob/master/README.md" target="_blank" rel="noopener noreferrer">文档<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p> <blockquote><p><s>安装这个插件后,不管使用哪一个主题,都可以生效,所以强烈推荐使用。</s></p></blockquote></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/liuyib/hexo-theme-stun/edit/master/docs/zh-CN/advanced/optimize.md" target="_blank" rel="noopener noreferrer">在 GitHub 上编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">上次更新:</span> <span class="time">2020/5/5 下午1:34:17</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/hexo-theme-stun/zh-CN/advanced/assist.html" class="prev">
辅助功能
</a></span> <span class="next"><a href="/hexo-theme-stun/zh-CN/contribute/contribute.html">
贡献准则
</a>
</span></p></div> </main></div><div class="global-ui"></div></div>
<script src="/hexo-theme-stun/assets/js/app.b850f147.js" defer></script><script src="/hexo-theme-stun/assets/js/2.883641a6.js" defer></script><script src="/hexo-theme-stun/assets/js/16.aefc9e47.js" defer></script><script src="/hexo-theme-stun/assets/js/3.67dc95e3.js" defer></script>
</body>
</html>
此差异已折叠。
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>贡献准则 | hexo-theme-stun</title>
<meta name="generator" content="VuePress 1.5.2">
<link rel="icon" href="/hexo-theme-stun/icons/favicon-32x32.png">
<meta name="description" content="一个漂亮、简洁的 Hexo 主题">
<link rel="preload" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css" as="style"><link rel="preload" href="/hexo-theme-stun/assets/js/app.b850f147.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/2.883641a6.js" as="script"><link rel="preload" href="/hexo-theme-stun/assets/js/18.5cde9d58.js" as="script"><link rel="prefetch" href="/hexo-theme-stun/assets/js/10.b83ac2ab.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/11.5d746985.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/12.7359c5ec.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/13.e62248d6.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/14.68c5f93f.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/15.88a42515.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/16.aefc9e47.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/17.e1988749.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/19.a9abcb29.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/20.ecbadd78.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/3.67dc95e3.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/4.d9ad600e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/5.685d6db4.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/6.9f577310.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/7.47a12772.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/8.aec2064e.js"><link rel="prefetch" href="/hexo-theme-stun/assets/js/9.b0c5ecc0.js">
<link rel="stylesheet" href="/hexo-theme-stun/assets/css/0.styles.bed02c6c.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/hexo-theme-stun/zh-CN/" class="home-link router-link-active"><img src="/hexo-theme-stun/icons/favicon-192x192.png" alt="hexo-theme-stun" class="logo"> <span class="site-name can-hide">hexo-theme-stun</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="配置指南" class="dropdown-title"><span class="title">配置指南</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/guide/quick-start.html" class="nav-link">
快速开始
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/guide/primary.html" class="nav-link">
新手上路
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="高级设置" class="dropdown-title"><span class="title">高级设置</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/advanced.html" class="nav-link">
新手进阶
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/third-part.html" class="nav-link">
第三方支持
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/assist.html" class="nav-link">
辅助功能
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/optimize.html" class="nav-link">
优化建议
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/zh-CN/contribute/contribute.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
参与贡献
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">选择语言</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/contribute/contribute.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="配置指南" class="dropdown-title"><span class="title">配置指南</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/guide/quick-start.html" class="nav-link">
快速开始
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/guide/primary.html" class="nav-link">
新手上路
</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="高级设置" class="dropdown-title"><span class="title">高级设置</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/advanced.html" class="nav-link">
新手进阶
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/third-part.html" class="nav-link">
第三方支持
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/assist.html" class="nav-link">
辅助功能
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/advanced/optimize.html" class="nav-link">
优化建议
</a></li></ul></div></div><div class="nav-item"><a href="/hexo-theme-stun/zh-CN/contribute/contribute.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
参与贡献
</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="Select language" class="dropdown-title"><span class="title">选择语言</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/contribute/contribute.html" class="nav-link">
English
</a></li><li class="dropdown-item"><!----> <a href="/hexo-theme-stun/zh-CN/contribute/contribute.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
简体中文
</a></li></ul></div></div> <a href="https://github.com/liuyib/hexo-theme-stun" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>配置指南</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/zh-CN/guide/quick-start.html" class="sidebar-link">快速开始</a></li><li><a href="/hexo-theme-stun/zh-CN/guide/primary.html" class="sidebar-link">新手上路</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading"><span>高级设置</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/zh-CN/advanced/advanced.html" class="sidebar-link">新手进阶</a></li><li><a href="/hexo-theme-stun/zh-CN/advanced/third-part.html" class="sidebar-link">第三方支持</a></li><li><a href="/hexo-theme-stun/zh-CN/advanced/assist.html" class="sidebar-link">辅助功能</a></li><li><a href="/hexo-theme-stun/zh-CN/advanced/optimize.html" class="sidebar-link">优化建议</a></li></ul></section></li><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>参与贡献</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/hexo-theme-stun/zh-CN/contribute/contribute.html" aria-current="page" class="active sidebar-link">贡献准则</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/hexo-theme-stun/zh-CN/contribute/contribute.html#pull-request-准则" class="sidebar-link">Pull request 准则</a></li><li class="sidebar-sub-header"><a href="/hexo-theme-stun/zh-CN/contribute/contribute.html#开发之前的准备" class="sidebar-link">开发之前的准备</a></li><li class="sidebar-sub-header"><a href="/hexo-theme-stun/zh-CN/contribute/contribute.html#提交信息规范" class="sidebar-link">提交信息规范</a></li><li class="sidebar-sub-header"><a href="/hexo-theme-stun/zh-CN/contribute/contribute.html#贡献人员" class="sidebar-link">贡献人员</a></li></ul></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="贡献准则"><a href="#贡献准则" class="header-anchor">#</a> 贡献准则 </h1> <div align="center" style="color:#73c8ff;font-size:36px;"><a title="Go to homepage" href="https://github.com/liuyib/hexo-theme-stun"><img align="center" width="60" height="60" src="https://raw.githubusercontent.com/liuyib/hexo-theme-stun/master/source/images/icons/stun-logo.svg?sanitize=true"></a> t u n</div> <p>嗨!我很高兴您有兴趣为 «Stun» 做贡献。在进行贡献之前,请务必花一些时间通读以下准则:</p> <ul><li><a href="#pull-request-%e5%87%86%e5%88%99">Pull request 准则</a></li> <li><a href="#%e5%bc%80%e5%8f%91%e4%b9%8b%e5%89%8d%e7%9a%84%e5%87%86%e5%a4%87">开发之前的准备</a></li> <li><a href="#%e6%8f%90%e4%ba%a4%e4%bf%a1%e6%81%af%e8%a7%84%e8%8c%83">提交信息规范</a></li></ul> <h2 id="pull-request-准则"><a href="#pull-request-准则" class="header-anchor">#</a> Pull request 准则</h2> <p>要知道,<code>master</code> 分支只是最新稳定版本的一个快照。所有的开发都应该在专门的分支中进行,<strong>不要向 <code>master</code> 分支提交 PRs</strong></p> <ul><li>将仓库 fork 到你的 Github,并 clone 到本地</li> <li>切换到<strong>新分支</strong>(例如 <code>patch-1</code>)上开发</li> <li>将本地修改进行提交(如果你修改了源代码,请执行 <code>npm run lint:fix</code></li> <li>将提交 push 到 fork 的仓库下</li> <li>创建一个 Pull request 到 Stun 主题仓库的 <strong>dev 分支</strong></li></ul> <h2 id="开发之前的准备"><a href="#开发之前的准备" class="header-anchor">#</a> 开发之前的准备</h2> <p>你需要安装 <a href="http://nodejs.org/" target="_blank" rel="noopener noreferrer">Node.js<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a><a href="https://docs.npmjs.com/downloading-and-installing-node-js-and-npm" target="_blank" rel="noopener noreferrer">npm<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p> <p>在 clone 该仓库后,执行:</p> <div class="language-bash extra-class"><pre class="language-bash"><code>$ <span class="token function">npm</span> <span class="token function">install</span>
</code></pre></div><h2 id="提交信息规范"><a href="#提交信息规范" class="header-anchor">#</a> 提交信息规范</h2> <p>我们对项目的 git 提交信息格式进行统一格式约定,每条提交信息由 <code>type</code> + <code>subject</code> 组成,这将提升项目日志的可读性。</p> <ul><li><code>type</code> 用于描述此次提交信息的意义,全小写,仅包括如下类型:
<ul><li><code>feat</code>:新功能</li> <li><code>fix</code>:Bug 修复</li> <li><code>refactor</code>:重构(既不是新增功能,也不是修改 Bug 的代码变动)</li> <li><code>docs</code>:文档变化</li> <li><code>style</code>:代码格式变化(空格、缩进、换行、分号等)</li> <li><code>test</code>:代码测试相关</li> <li><code>chore</code>:基础构建工具或依赖库的变化(不涉及源码)</li> <li><code>revert</code>:代码回滚(回退已经存在的 <code>commit</code></li></ul></li> <li><code>subject</code> 用于简要描述修改变更的内容,如 <code>Update quick start in readme.md</code> <ul><li>句尾不要使用符号</li> <li>使用现在时、祈使句语气</li></ul></li></ul> <h2 id="贡献人员"><a href="#贡献人员" class="header-anchor">#</a> 贡献人员</h2> <p>感谢所有为 «Stun» 做出贡献的人!</p> <a href="https://github.com/liuyib/hexo-theme-stun/graphs/contributors"><img src="https://opencollective.com/hexo-theme-stun/contributors.svg?width=980"></a></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/liuyib/hexo-theme-stun/edit/master/docs/zh-CN/contribute/contribute.md" target="_blank" rel="noopener noreferrer">在 GitHub 上编辑此页</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">上次更新:</span> <span class="time">2020/5/7 下午3:43:59</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
<a href="/hexo-theme-stun/zh-CN/advanced/optimize.html" class="prev">
优化建议
</a></span> <!----></p></div> </main></div><div class="global-ui"></div></div>
<script src="/hexo-theme-stun/assets/js/app.b850f147.js" defer></script><script src="/hexo-theme-stun/assets/js/2.883641a6.js" defer></script><script src="/hexo-theme-stun/assets/js/18.5cde9d58.js" defer></script>
</body>
</html>
此差异已折叠。
此差异已折叠。
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册