-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.xml
121 lines (58 loc) · 47 KB
/
search.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<?xml version="1.0" encoding="utf-8"?>
<search>
<entry>
<title>「Meow」主题指南</title>
<link href="/Meow-%E4%B8%BB%E9%A2%98%E6%8C%87%E5%8D%97/"/>
<url>/Meow-%E4%B8%BB%E9%A2%98%E6%8C%87%E5%8D%97/</url>
<content type="html"><![CDATA[<p>本指南详细介绍了 Hexo 主题<a href="https://github.com/chanwj/hexo-theme-meow">「Meow」</a>的安装与配置方法,包括主题下载、依赖项安装、关键配置的修改以及其它特色配置的使用说明,供大家参考使用。</p><p>点击右下角悬浮工具栏上的目录按钮可以打开/关闭标题导航,方便直达需要查看的内容。</p><span id="more"></span><br/><h2 id="安装指南"><a href="#安装指南" class="headerlink" title="安装指南"></a>安装指南</h2><h3 id="获取主题"><a href="#获取主题" class="headerlink" title="获取主题"></a>获取主题</h3><p>在博客根目录下执行以下指令。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git <span class="built_in">clone</span> -b master https://github.com/chanwj/hexo-theme-meow.git themes/meow</span><br></pre></td></tr></table></figure><br/><h3 id="应用主题"><a href="#应用主题" class="headerlink" title="应用主题"></a>应用主题</h3><p>修改博客根目录下的<code>_config.yml</code>配置文件,将主题更换为<code>meow</code>。</p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">theme:</span> <span class="string">meow</span></span><br></pre></td></tr></table></figure><br/><h3 id="安装依赖项"><a href="#安装依赖项" class="headerlink" title="安装依赖项"></a>安装依赖项</h3><p>本主题使用pug进行渲染,请提前安装pug渲染器。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-renderer-pug --save</span><br></pre></td></tr></table></figure><br/><hr><br/><h2 id="主题配置指南"><a href="#主题配置指南" class="headerlink" title="主题配置指南"></a>主题配置指南</h2><p>请在主题目录下的<code>_config.yml</code>文件中对主题配置进行修改。</p><p>主题配置文件中包含中英双语的注释,简单易用,部分特殊配置请参考以下内容。</p><p>(提示:在每次更新主题之前,建议备份主题配置文件,以免自定义的内容丢失。)</p><br/><h3 id="搜索功能"><a href="#搜索功能" class="headerlink" title="搜索功能"></a>搜索功能</h3><p>搜索功能的实现依赖<code>hexo-generator-search</code>,因此,如需装配搜索功能,请先安装此依赖项。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-generator-search --save</span><br></pre></td></tr></table></figure><p>第二步,在根目录下的<code>_config.yml</code>文件里添加以下这段配置(具体含义可查看<a href="https://github.com/wzpan/hexo-generator-search">hexo-generator-search</a>的介绍)。</p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># Search function</span></span><br><span class="line"><span class="attr">search:</span></span><br><span class="line"> <span class="attr">path:</span> <span class="string">search.xml</span></span><br><span class="line"> <span class="attr">field:</span> <span class="string">post</span></span><br><span class="line"> <span class="attr">content:</span> <span class="literal">true</span></span><br><span class="line"> <span class="attr">template:</span> <span class="string">./search.xml</span></span><br></pre></td></tr></table></figure><p>第三步,在根目录下的<code>node_modules</code>文件夹中找到<code>hexo-generator-search</code>文件夹,再进入其中的<code>templates</code>文件夹,将构建搜索内容xml的模板文件<code>search.xml</code>复制到博客根目录下。</p><p>第四步,在主题目录下的<code>_config.yml</code>文件中将搜索功能打开。</p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">search:</span></span><br><span class="line"> <span class="attr">enable:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure><p>将此配置修改为<code>false</code>可随时关闭搜索功能,包括不显示搜索入口、不引入搜索相关的js、不构建搜索内容xml。</p><br/><h3 id="特殊页面"><a href="#特殊页面" class="headerlink" title="特殊页面"></a>特殊页面</h3><p>本主题为“分类汇总、标签汇总、关于”这三个页面做了layout模版,如需展示这些页面,请执行以下指令来新增对应页面。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">hexo new page categories</span><br><span class="line">hexo new page tags</span><br><span class="line">hexo new page about</span><br></pre></td></tr></table></figure><p>接着在<code>source</code>目录下找到对应的页面文件夹,打开其中的<code>index.md</code>,在顶部的Front-matter信息中增加layout参数,参数值修改为页面对应的值。</p><figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">layout:</span> <span class="comment"># categories | tags | about</span></span><br></pre></td></tr></table></figure><br/><h3 id="选取文本"><a href="#选取文本" class="headerlink" title="选取文本"></a>选取文本</h3><p>本主题支持对用户是否能够直接选取网站上的文本内容进行配置。true: 可选取,false: 不可选取。</p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">selectable:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure><br/><h3 id="TOC目录"><a href="#TOC目录" class="headerlink" title="TOC目录"></a>TOC目录</h3><p>本主题支持生成文章目录,功能开关由以下配置决定。</p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">toc:</span></span><br><span class="line"> <span class="attr">enable:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure><p>当TOC功能打开时,默认为所有文章生成目录。如果某些文章不需要生成目录,可以在对应的文章文件的顶部Front-matter信息中单独关闭该项功能。</p><figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">toc:</span> <span class="literal">false</span></span><br></pre></td></tr></table></figure><br/><h3 id="联系方式"><a href="#联系方式" class="headerlink" title="联系方式"></a>联系方式</h3><p><code>contact_info</code>项用于配置“关于”页中的联系方式。以下列出的是默认支持的选项,可以自动显示对应的网站图标。对于不需要显示的联系方式,将值置空即可。</p><ul><li>Email|邮箱</li><li>Github</li><li>Twitter</li><li>Facebook</li><li>Instagram</li><li>Tiktok|抖音</li><li>Bilibili</li><li>Weibo|微博</li><li>Mastodon</li><li>Wechat|公众号</li></ul><p>注:带有中文的选项意味着配置中文或者英文都可以被识别和显示。</p><p>补充说明:</p><ul><li>如需新增其它联系方式,请按照格式<code>name: url</code>进行配置。注意:自定义的联系方式图标均为统一的猫爪图案。</li><li>Email|邮箱:与其它选项不同,参数值为邮箱地址。</li><li>Wechat|公众号:与其它选项不同,参数值为公众号名称。</li></ul><br/><hr><br/><h2 id="语言配置指南"><a href="#语言配置指南" class="headerlink" title="语言配置指南"></a>语言配置指南</h2><p>本主题配备了中英两种语言可供选择,如需切换网站界面语言显示,可在根目录下的<code>_config.yml</code>中进行设置。</p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">language:</span> <span class="string">zh-CN</span> <span class="comment"># 中文:zh-CN | 英文:en</span></span><br></pre></td></tr></table></figure><p>另外,针对不同的文章或页面,可以单独在文章/页面的Front-matter信息中进行语言设置。</p><figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">lang:</span> <span class="string">en</span></span><br></pre></td></tr></table></figure><p>如果需要自定义界面上的各项显示值,可以在主题目录下的<code>languages</code>文件夹中找到对应的语言文件,然后修改对应的参数。</p><p>语言文件同样包含了注释,可直观了解到每一项的作用以及配置方法。</p><br/><h3 id="“关于”页面"><a href="#“关于”页面" class="headerlink" title="“关于”页面"></a>“关于”页面</h3><p>需要特别注意的是,本主题制作了“关于”页的layout模板。为了方便进行国际化多语言适配,“关于”页中的很多项显示值均集成到了语言文件中进行配置。</p><p>点此查看英文版“关于”页面:<a href="/en/about">About</a></p><br/><hr><br/><h2 id="小说模板"><a href="#小说模板" class="headerlink" title="小说模板"></a>小说模板</h2><p>本主题针对文学创作进行了优化,方便各位作者使用模板发表原创作品,包括长篇连载小说、同人作品等。</p><p>应用小说模板后的文章样式请点击<a href="/%E5%93%A5%E6%96%AF%E6%8B%89-%E6%80%AA%E5%85%BD%E4%B9%8B%E7%8E%8B/">此处</a>进行查看。</p><br/><h3 id="应用模板"><a href="#应用模板" class="headerlink" title="应用模板"></a>应用模板</h3><p>请将主题目录下的<code>fiction.md</code>(小说模板文件)复制到博客根目录下的<code>scaffolds</code>文件夹中。以后每当需要生成新的文学作品文件时,可以使用以下指令来指定模板。</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo new fiction <span class="string">"article's title"</span></span><br></pre></td></tr></table></figure><br/><h3 id="模板配置"><a href="#模板配置" class="headerlink" title="模板配置"></a>模板配置</h3><p><code>fiction.md</code>自带了一系列Front-matter参数,每一项都配有注释说明。</p><p>其中,<code>layout: post</code>和<code>type: fiction</code>是固定配置,请勿更改。</p><p>另外,小说模板的参数可以通过语言文件中的<code>fiction</code>模块进行显示值配置。</p><br/><h4 id="文章属性"><a href="#文章属性" class="headerlink" title="文章属性"></a>文章属性</h4><p>文章的meta信息模块可通过<code>meta_show: true</code>配置来展示。</p><p>具体的属性在<code>meta_info</code>项中配置,小说模板目前支持以下meta信息的填写。</p><ul><li><strong>type</strong></li></ul><p>文章的类型,比如:原创小说 / 同人作品 / ……</p><ul><li><strong>fandom</strong></li></ul><p>原型/原作,一般只有当文章类型为“同人作品”时才需要指明。如果不需要显示原作信息,请把此项置空。</p><ul><li><strong>relationship</strong></li></ul><p>文章涉及的角色关系,一般填写CP,也可以填写重要的亲情、友情关系等。如果不需要显示关系则把此项置空即可。</p><ul><li><strong>character</strong></li></ul><p>文章中出现的重要角色。如果不需要显示角色信息,把此项置空即可。</p><ul><li><strong>rating</strong></li></ul><p>文章的分级,此配置项只能选填以下值:</p><table><thead><tr><th>分级</th><th>说明</th><th>特殊样式</th></tr></thead><tbody><tr><td>General</td><td>适合全年龄段读者,无警告</td><td>无</td></tr><tr><td>Teen</td><td>建议青少年及以上读者阅读</td><td>字体加粗</td></tr><tr><td>Mature</td><td>成人级,一般指文章含有轻微的、非详细的限制级内容</td><td>字体加粗且显示为红色</td></tr><tr><td>Explicit</td><td>限制级,一般指文章含有暴力、色情等成人主题相关的详细描写</td><td>字体加粗且显示为红色</td></tr></tbody></table><p>如果不需要显示分级信息,把此项置空即可。</p><ul><li><strong>warning</strong></li></ul><p>预警信息,也就是读者应该在阅读正文前应该知悉的内容,防止读者被创到,比如:主要角色死亡、血腥暴力描写、病娇要素……</p><p>此项内容会醒目地显示为红色加粗字体。如果不需要显示预警,或者不希望剧透,可以将此项置空。</p><br/><h4 id="完结状态"><a href="#完结状态" class="headerlink" title="完结状态"></a>完结状态</h4><p><code>status</code>用于标记这篇文章是否已完结,并在正文的最后显示相应的提示。此配置项有两个值可供选填:</p><table><thead><tr><th>完结状态</th><th>说明</th></tr></thead><tbody><tr><td>complete</td><td>已完结</td></tr><tr><td>inProgress</td><td>连载中 / 未完待续</td></tr></tbody></table><p>如果不需要显示完结状态,把此项置空即可。</p><br/><h4 id="文章简介"><a href="#文章简介" class="headerlink" title="文章简介"></a>文章简介</h4><p><code>summary</code>用于填写文章的简要介绍,支持Markdown语法。如果简介比较复杂,请使用引号将内容包裹起来。如果不需要显示简介,请将此项置空。</p><p>在文章未指定摘要内容的情况下,主题会自动检测使用小说模板的文章是否填写了简介,如果存在简介,则这篇文章在首页会显示简介内容作为摘要。</p><br/><h4 id="作者的话"><a href="#作者的话" class="headerlink" title="作者的话"></a>作者的话</h4><p>作者的话可以写在正文前和正文后,分别填写在<code>notes_before</code>和<code>notes_after</code>项中,可以对文章进行补充介绍与说明,也可以发表一些作者的感想或者想对读者说的话。</p><p>支持Markdown语法。如果内容比较复杂,请使用引号将内容包裹起来。如果不需要显示作者的话,请将参数值置空。</p><br/><hr><br/><h2 id="效果展示"><a href="#效果展示" class="headerlink" title="效果展示"></a>效果展示</h2><p>本站为展示「Meow」主题而生,您可以在站内观看到本主题不同页面的样式,也可以观察各种功能的应用效果。</p><p>另外,本主题针对小屏设备进行了响应式设计,您可以尝试切换移动设备或者使用浏览器的设备工具查看主题的变化,比如顶部菜单栏变成了按钮下拉式显示,文章TOC目录变成了左侧覆盖显示,等等。</p><p>各种常见的文章元素效果详见《<a href="/%E6%96%87%E7%AB%A0%E5%86%85%E5%AE%B9%E6%95%88%E6%9E%9C%E5%B1%95%E7%A4%BA/">文章内容效果展示</a>》。</p>]]></content>
<categories>
<category> Hexo </category>
<category> Theme Meow </category>
</categories>
<tags>
<tag> 教程 </tag>
</tags>
</entry>
<entry>
<title>「Meow」Theme Guide</title>
<link href="/en/Meow-Theme-Guide/"/>
<url>/en/Meow-Theme-Guide/</url>
<content type="html"><![CDATA[<p>This guide introduces detailed methods of installation and configuration for Hexo theme <a href="https://github.com/chanwj/hexo-theme-meow">Meow</a>, including downloading the theme, installing dependencies, modifying core configurations, and introducing the usage of some special configurations, hope it will be helpful to you.</p><p>Click the TOC button on the floating toolbar in the bottom right corner to turn on/off title navigation, making it convenient to access the content you need to check directly.</p><span id="more"></span><br/><h2 id="Installation"><a href="#Installation" class="headerlink" title="Installation"></a>Installation</h2><h3 id="Get-The-Theme"><a href="#Get-The-Theme" class="headerlink" title="Get The Theme"></a>Get The Theme</h3><p>Execute the following command in the root directory of the blog.</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">git <span class="built_in">clone</span> -b master https://github.com/chanwj/hexo-theme-meow.git themes/meow</span><br></pre></td></tr></table></figure><br/><h3 id="Apply-The-Theme"><a href="#Apply-The-Theme" class="headerlink" title="Apply The Theme"></a>Apply The Theme</h3><p>Modify the <code>_config. yml</code> file in the root directory. Set theme variable to <code>meow</code>.</p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">theme:</span> <span class="string">meow</span></span><br></pre></td></tr></table></figure><br/><h3 id="Install-Dependency"><a href="#Install-Dependency" class="headerlink" title="Install Dependency"></a>Install Dependency</h3><p><em>Meow</em> uses Pug for rendering. Please install the Pug renderer in advance.</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-renderer-pug --save</span><br></pre></td></tr></table></figure><br/><hr><br/><h2 id="Theme-Configuration"><a href="#Theme-Configuration" class="headerlink" title="Theme Configuration"></a>Theme Configuration</h2><p>Please change theme configurations in <code>_config.yml</code> file under the theme directory.</p><p>The theme configuration file contains comments in both Chinese and English, which make it simple and easy to use. For some special configurations, please refer to the following sections.</p><p>(Tip: Everytime before you update the theme, it is recommended to back up the theme configuration file to avoid losing customized content.)</p><br/><h3 id="Search-Function"><a href="#Search-Function" class="headerlink" title="Search Function"></a>Search Function</h3><p>Search function depends on plugin <code>hexo-generator-search</code>. Therefore, if you need to use the search function, please install this dependency first.</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">npm install hexo-generator-search --save</span><br></pre></td></tr></table></figure><p>Step 2: Add the following configuration to the <code>_config. yml </code>file in the root directory. (You can check the specific meaning of this configuration in <a href="https://github.com/wzpan/hexo-generator-search">hexo-generator-search</a>‘s page.</p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># Search function</span></span><br><span class="line"><span class="attr">search:</span></span><br><span class="line"> <span class="attr">path:</span> <span class="string">search.xml</span></span><br><span class="line"> <span class="attr">field:</span> <span class="string">post</span></span><br><span class="line"> <span class="attr">content:</span> <span class="literal">true</span></span><br><span class="line"> <span class="attr">template:</span> <span class="string">./search.xml</span></span><br></pre></td></tr></table></figure><p>Step 3: Find the <code>hexo-generator-search</code> folder of the <code>node_modules</code> folder in the root directory. Then enter the <code>templates</code> folder and copy <code>search.xml</code>(template file which can help build the search content XML) to the root directory of the blog.</p><p>Step 4: Enable the configuration of search function in <code>_config.yml</code> under the theme directory.</p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">search:</span></span><br><span class="line"> <span class="attr">enable:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure><p>Set it to <code>false</code> to disable the search function, including not displaying the search entry, not importing search related JavaScript, and not building search content XML.</p><br/><h3 id="Special-Pages"><a href="#Special-Pages" class="headerlink" title="Special Pages"></a>Special Pages</h3><p><em>Meow</em> has created layout templates for those three pages: Categories, Tags and About. To display these pages, please execute the following commands.</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">hexo new page categories</span><br><span class="line">hexo new page tags</span><br><span class="line">hexo new page about</span><br></pre></td></tr></table></figure><p>Next, find these pages’s folder in the <code>source</code> folder under the root directory. Open the <code>index.md</code> inside and add layout parameter to the Front-matter at the top. Change the parameter value correctly.</p><figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">layout:</span> <span class="comment"># categories | tags | about</span></span><br></pre></td></tr></table></figure><br/><h3 id="Selectable"><a href="#Selectable" class="headerlink" title="Selectable"></a>Selectable</h3><p><em>Meow</em> supports configuring whether users can select text content from the website directly. True: they can. False: they can not.</p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">selectable:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure><br/><h3 id="TOC"><a href="#TOC" class="headerlink" title="TOC"></a>TOC</h3><p><em>Meow</em> supports generating tables of contents for articles. You can enable this function with the following configuration.</p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">toc:</span></span><br><span class="line"> <span class="attr">enable:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure><p>When toc function is enabled, <em>Meow</em> will generate toc for all articles by default. If you don’t want to generate toc for some articles, you can turn off this function separately in the Front-matter at the top of the article file.</p><figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">toc:</span> <span class="literal">false</span></span><br></pre></td></tr></table></figure><br/><h3 id="Contact"><a href="#Contact" class="headerlink" title="Contact"></a>Contact</h3><p><code>contact_info</code> is used to configure the contact module in “About” page. The list below shows the default options which can display the website icon automatically. If you don’t want to display some of these items, just leave the value blank.</p><ul><li>Email</li><li>Github</li><li>Twitter</li><li>Facebook</li><li>Instagram</li><li>Tiktok</li><li>Bilibili</li><li>Weibo</li><li>Mastodon</li><li>Wechat</li></ul><p>Supplementary explanation:</p><ul><li>If you want to add other contact item, please format in <code>name: url</code>. Note that custom contact item will be display with paw icon uniformity.</li><li>Email: Unlike the other options, the parameter value should be email address.</li><li>Wechat: Unlike the other options, the parameter value should be account name.</li></ul><br/><hr><br/><h2 id="Language-Configuration"><a href="#Language-Configuration" class="headerlink" title="Language Configuration"></a>Language Configuration</h2><p><em>Meow</em> provides two languages: Chinese and English. If you want to change site language, configure it in <code>_config.yml</code> under the root directory of the site.</p><figure class="highlight yml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">language:</span> <span class="string">en</span> <span class="comment"># Chinese: zh-CN | English: en</span></span><br></pre></td></tr></table></figure><p>In addition, for different articles or pages, language setting can be changed separately in Front-matter.</p><figure class="highlight yaml"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">lang:</span> <span class="string">en</span></span><br></pre></td></tr></table></figure><p>If you need to customize the display values of various items on the site, you can open language files in the <code>languages</code> folder under the theme directory, and then modify the parameters inside.</p><p>Language files also have comments, which introduce every configuration clearly.</p><br/><h3 id="“About”-page"><a href="#“About”-page" class="headerlink" title="“About” page"></a>“About” page</h3><p>It should be noted that <em>Meow</em> has created a layout template for “About” page. For the convenience of internationalization(i18n), many display values in “About” page are integrated into language files for configuration.</p><p>Click here to check the English Version of “About” page: <a href="/en/about">About</a></p><br/><hr><br/><h2 id="Fiction-Scaffold"><a href="#Fiction-Scaffold" class="headerlink" title="Fiction Scaffold"></a>Fiction Scaffold</h2><p><em>Meow</em> optimizes the creation of literary works, allowing every author to use scaffold to publish original works easily, including serial novels, fanfictions, etc. </p><p>Check the article style using fiction scaffold <a href="/%E5%93%A5%E6%96%AF%E6%8B%89-%E6%80%AA%E5%85%BD%E4%B9%8B%E7%8E%8B/">here</a>.</p><br/><h3 id="Apply-Scaffold"><a href="#Apply-Scaffold" class="headerlink" title="Apply Scaffold"></a>Apply Scaffold</h3><p>Copy <code>fiction.md</code>(the fiction scaffold file) in theme directory into <code>scaffolds</code> folder under the root directory. Afterwards you can generate new literary work file using fiction scaffold with the following command.</p><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">hexo new fiction <span class="string">"article's title"</span></span><br></pre></td></tr></table></figure><br/><h3 id="Scaffold-Configuration"><a href="#Scaffold-Configuration" class="headerlink" title="Scaffold Configuration"></a>Scaffold Configuration</h3><p><code>fiction.md</code> has its own Front-matter parameters, each of them has comment to explain their usage.</p><p>Please note that <code>layout: post</code> and <code>type: fiction</code> are fixed configurations, do NOT change them.</p><p>You can change the display values of these parameters through the <code>fiction</code> module in language files.</p><br/><h4 id="Meta"><a href="#Meta" class="headerlink" title="Meta"></a>Meta</h4><p>The meta module of article can be displayed by this configuration: <code>meta_show: true</code>.</p><p>Detailed information should be configured in <code>meta_info</code>. The following options are supported by fiction scaffold for now.</p><ul><li><strong>type</strong></li></ul><p>The type of article, for example, Original Work, Fanfiton, etc.</p><ul><li><strong>fandom</strong></li></ul><p>If the type of article is ‘Fanction’, it’s generally necessary to indicate the fandom. Stay blank if you don’t want to show fandom information.</p><ul><li><strong>relationship</strong></li></ul><p>Relationships involved in the article, usually used to indicate romantic relationships. Important families and friendships can also be filled in. Leave it blank if you don’t want to show relationship information.</p><ul><li><strong>character</strong></li></ul><p>Major roles appear in the article. If you don’t want to show characters information, leave it blank.</p><ul><li><strong>rating</strong></li></ul><p>The rating of the article. You can only choose the following options:</p><table><thead><tr><th>Rating</th><th>Description</th><th>Style</th></tr></thead><tbody><tr><td>General</td><td>For general audiences, no warning</td><td>None</td></tr><tr><td>Teen</td><td>For teen and up audiences</td><td>Bold</td></tr><tr><td>Mature</td><td>For adults, contains minor/non detailed mature content</td><td>Bold & Red</td></tr><tr><td>Explicit</td><td>For adults, contains detailed descriptions of adult content, such as violence and pornography</td><td>Bold & Red</td></tr></tbody></table><p>If you don’t want to show rating information, leave it blank.</p><ul><li><strong>warning</strong></li></ul><p>Warning information, which audiences should be aware of before reading the article. It can prevent audiences from seeing something they don’t like. For example, the death of the main characters, bloody and violent descriptions, forced love, etc.</p><p>Warning will be displayed prominently in bold and red font. If you don’t need to display warning information or don’t want spoilers, you can leave this item blank.</p><br/><h4 id="Status"><a href="#Status" class="headerlink" title="Status"></a>Status</h4><p><code>status</code> is used to mark whether this article are completed and display tip at the end. There are two options to be choosen:</p><table><thead><tr><th>Status</th><th>Description</th></tr></thead><tbody><tr><td>complete</td><td>Already completed</td></tr><tr><td>inProgress</td><td>Still in progress / To be continued</td></tr></tbody></table><p>If you don’t want to show status, leave it blank.</p><br/><h4 id="Summary"><a href="#Summary" class="headerlink" title="Summary"></a>Summary</h4><p><code>summary</code> is used to fill in brief introduction for the article, supporting Markdown syntax. If summary is complicated, please keep the content in quotation marks. Leave it blank if you don’t want to show summary.</p><p>If the article has no excerpt, <em>Meow</em> will automatically detect whether the article has filled in summary. If summary exists, summary content will be displayed on homepage as excerpt.</p><br/><h4 id="Notes"><a href="#Notes" class="headerlink" title="Notes"></a>Notes</h4><p>Notes can be displayed before/after the article, fill the contents in <code>notes_before</code> and <code>notes_after</code>. You can write some additional introductions and explanations for the article, express your ideas or say something to your audiences.</p><p>Markdown syntax available. If notes is complicated, please keep the content in quotation marks. Leave it blank if you don’t want to show notes.</p><br/><hr><br/><h2 id="Style-Preview"><a href="#Style-Preview" class="headerlink" title="Style Preview"></a>Style Preview</h2><p>This site is created to display theme 「Meow」. You can check the styles of different pages of this theme, and also check the actual effects of various functions here.</p><p>Besides, <em>Meow</em> has responsive design for small screen devices. You can try to use mobile phone to view the changes of style, such as the top menu (which will become a dropdown menu toggled by a button), toc of articles (which will become full page overlay on the left), and so on.</p><p>Check various styles of article <a href="/%E6%96%87%E7%AB%A0%E5%86%85%E5%AE%B9%E6%95%88%E6%9E%9C%E5%B1%95%E7%A4%BA/">here</a>.</p>]]></content>
<categories>
<category> Hexo </category>
<category> Theme Meow </category>
</categories>
<tags>
<tag> Tutorial </tag>
<tag> English </tag>
</tags>
</entry>
<entry>
<title>文章内容效果展示</title>
<link href="/%E6%96%87%E7%AB%A0%E5%86%85%E5%AE%B9%E6%95%88%E6%9E%9C%E5%B1%95%E7%A4%BA/"/>
<url>/%E6%96%87%E7%AB%A0%E5%86%85%E5%AE%B9%E6%95%88%E6%9E%9C%E5%B1%95%E7%A4%BA/</url>
<content type="html"><![CDATA[<p><em>(注:本文用于展示主题效果,除摘抄部分外,其他内容并无实际意义。)</em></p><p><a href="https://hexo.io/">Hexo</a> 是一个快速、简洁且高效的博客框架,使用 Markdown(或其他标记语言)解析文章,在几秒内,即可利用靓丽的主题生成静态网页。</p><p>Hexo is a fast, simple and powerful blog framework. You write posts in Markdown (or other markup languages) and Hexo generates static files with a beautiful theme in seconds.</p><ul><li>超快速度<br>Node.js 所带来的超快生成速度,让上百个页面在几秒内瞬间完成渲染。</li><li>支持 Markdown<br>Hexo 支持 GitHub Flavored Markdown 的所有功能,甚至可以整合 Octopress 的大多数插件。</li><li>插件和可扩展性<br>强大的 API 带来无限的可能,与数种模板引擎(EJS,Pug,Nunjucks)和工具(Babel,PostCSS,Less/Sass)轻易集成</li><li>一键部署<br>只需一条指令即可部署到 GitHub Pages, Heroku 或其他平台。</li></ul><hr><p>↑ 分隔线两端具有渐变效果</p><h1 id="效果一览"><a href="#效果一览" class="headerlink" title="效果一览"></a>效果一览</h1><h2 id="图片"><a href="#图片" class="headerlink" title="图片"></a>图片</h2><p>图片位置居中,自动根据屏幕大小进行缩放。</p><img src="/images/example.png" class="" title="像素同人画(网王)" alt="迹部、真田、丸井"><h2 id="代码"><a href="#代码" class="headerlink" title="代码"></a>代码</h2><h3 id="代码块"><a href="#代码块" class="headerlink" title="代码块"></a>代码块</h3><p>使用Hexo自带的highlight.js进行高亮。</p><figure class="highlight css"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line"><span class="selector-tag">body</span>{</span><br><span class="line"> <span class="attribute">margin</span>: <span class="number">0</span> auto;</span><br><span class="line"> <span class="attribute">padding</span>: <span class="number">10px</span> <span class="number">10px</span>;</span><br><span class="line"> <span class="attribute">font-size</span>: <span class="number">18px</span>;</span><br><span class="line"> <span class="attribute">font-family</span>: <span class="string">'Lucida Console'</span>, Monaco, monospace, <span class="string">'Courier New'</span>, Courier;</span><br><span class="line"> <span class="attribute">color</span>: black, <span class="number">#ffffff</span>;</span><br><span class="line">}</span><br></pre></td></tr></table></figure><h3 id="行内代码"><a href="#行内代码" class="headerlink" title="行内代码"></a>行内代码</h3><p>主题目录下的<code>_config.yml</code>文件需要用户根据自己的情况进行配置;<code>languages</code>目录下的语言文件也需要进行对应的修改。</p><h2 id="引用"><a href="#引用" class="headerlink" title="引用"></a>引用</h2><blockquote><p>道别,就是死亡一点点。/ To Say Goodbye Is To Die A Little.<br><em>——雷蒙德·钱德勒 Raymond Chandler,漫长的告别 The Long Goodbye</em></p></blockquote><blockquote class="ql">如果你想使用这种淡色风格的引用块,可以使用以下标签指定引用块的class为"ql"。<br/>If you want to display quote in this lighter style, you can use the following tags to indicate the class "ql".</blockquote><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag"><<span class="name">blockquote</span> <span class="attr">class</span>=<span class="string">"ql"</span>></span>quote content<span class="tag"></<span class="name">blockquote</span>></span></span><br></pre></td></tr></table></figure><h2 id="字体"><a href="#字体" class="headerlink" title="字体"></a>字体</h2><p>主题使用的字体:思源宋体 Noto Serif</p><p><em>斜体</em>,<strong>粗体</strong>,<em><strong>粗斜体</strong></em></p><h2 id="列表"><a href="#列表" class="headerlink" title="列表"></a>列表</h2><h3 id="无序列表"><a href="#无序列表" class="headerlink" title="无序列表"></a>无序列表</h3><ul><li>前菜</li><li>主食<ul><li>牛排</li><li>鱼排</li></ul></li><li>甜品<ul><li>蛋糕<ul><li>巧克力味</li><li>草莓味</li></ul></li></ul></li></ul><h3 id="有序列表"><a href="#有序列表" class="headerlink" title="有序列表"></a>有序列表</h3><p><u>「TO-DO List」(Maybe…)</u></p><ol><li>增加黑暗模式支持</li><li>增加留言评论功能</li><li>增加一键复制代码功能</li><li>……</li></ol><h3 id="待办列表"><a href="#待办列表" class="headerlink" title="待办列表"></a>待办列表</h3><ul><li><input checked="" disabled="" type="checkbox"> 搜索功能</li><li><input checked="" disabled="" type="checkbox"> 卡片式归档页</li><li><input disabled="" type="checkbox"> 实装工具栏功能</li></ul><h2 id="表格"><a href="#表格" class="headerlink" title="表格"></a>表格</h2><table><thead><tr><th align="center">编号</th><th align="center">状态</th><th>具体描述</th></tr></thead><tbody><tr><td align="center">1</td><td align="center"></td><td>实装工具栏功能,支持切换黑暗模式</td></tr><tr><td align="center">2</td><td align="center">√</td><td>支持每篇文章自定义是否生成TOC</td></tr></tbody></table><table><thead><tr><th align="center">编号</th><th>类型</th><th>描述</th></tr></thead><tbody><tr><td align="center">1</td><td>中式菜系</td><td>川菜、鲁菜、闽菜、粤菜、苏菜、浙菜、湘菜、徽菜、淮扬菜、豫菜、晋菜、鄂菜、云南菜、北京菜、东北菜、西北菜、贵州菜、上海菜、新疆菜、客家菜、台湾美食、香港美食、澳门美食、赣菜</td></tr><tr><td align="center">2</td><td>外国美食</td><td>日本料理、韩国料理、泰国菜、印度菜、法国菜、意大利菜、西班牙菜、英国菜、越南菜、墨西哥菜</td></tr></tbody></table><hr><p>以下内容协助展示各级标题及其TOC的效果。</p><h1 id="美食"><a href="#美食" class="headerlink" title="美食"></a>美食</h1><p>美食,顾名思义就是美味的食物,贵的有山珍海味,便宜的有街边小吃。其实美食是不分贵贱的,只要是自己喜欢的,都可以称之为美食。中国素有“烹饪王国”这个美誉。在中国这个大家庭里,有五十六个小家庭,每个家庭都有自己的特色美食。美食吃前有期待、吃后有回味,享受美食也要看场合,场合好美食吃起来才有味道。世界各地美食文化博大精深,营养物质各不相同,品味更多美食,享受更多健康,也让人吃得更加开心。</p><p>美食不仅仅是餐桌上的食物。还包括休闲零食、各种饼干、糕点、糖类,蜜饯、干果、肉制食品、茶饮冲泡等制品,各有各的风味,都可称之为美食。</p><h2 id="中国美食"><a href="#中国美食" class="headerlink" title="中国美食"></a>中国美食</h2><p>在中国传统文化教育中的阴阳五行哲学思想、儒家伦理道德观念、中医营养养生学说,还有文化艺术成就、饮食审美风尚、民族性格特征等诸多因素的影响下,劳动人民创造出彪炳史册的中国烹饪技艺,形成博大精深的中国饮食文化。</p><p>从历史沿革看,最早可追溯到商朝末年太公望时期“别名:姜子牙”,中国饮食文化绵延3100多年,分为生食、熟食、药膳养生、自然烹饪、科学烹饪5个发展阶段,推出6万多种传统菜点、2万多种工业食品、五光十色的筵宴和流光溢彩的风味流派,获得“烹饪王国”的美誉。</p><p>中式菜系:川菜、鲁菜、闽菜、粤菜、苏菜、浙菜、湘菜、徽菜、淮扬菜、豫菜、晋菜、鄂菜、云南菜、北京菜、东北菜、西北菜、贵州菜、上海菜、新疆菜、客家菜、台湾美食、香港美食、澳门美食、赣菜</p><h3 id="粤菜"><a href="#粤菜" class="headerlink" title="粤菜"></a>粤菜</h3><p>粤菜即广东菜,是中国四大菜系、八大菜系之一。粤菜包括广府菜(即广州府菜)、潮州菜(又称潮汕菜)、东江菜(又称客家菜)、粤西菜。主打粤菜的澳门、顺德和潮州三市是联合国评定的“世界美食之都”。</p><h4 id="广府菜"><a href="#广府菜" class="headerlink" title="广府菜"></a>广府菜</h4><p>广州菜又称广府菜(即广州府菜),是粤菜的代表,源自中原,取百家之长,烹调技艺多样善变,是中国传统饮食文化最重要的流派之一,狭义上的粤菜指广府菜(即广州府菜),此处广州府含顺德 、南海、番禺,通行于以广州为中心的珠江三角洲、香港、澳门等地。</p><p>广府菜集南海菜、番禺菜、东莞菜、顺德菜、中山菜、五邑菜、深圳宝安等地方风味的特色,兼京、苏、扬、杭等外省菜以及西菜之所长,融为一体,自成一家。以炒、爆为主,兼有烩、煎、烤,讲究清而不淡,鲜而不俗,嫩而不生,油而不腻,有“五滋”(香、松、软、肥、浓)、“六味”(酸、甜、苦、辣、咸、鲜)之说,讲究菜的气势、档次。具有选料严格、做工精细、中西结合、质鲜味美、养生保健等特点。</p><h5 id="白切鸡"><a href="#白切鸡" class="headerlink" title="白切鸡"></a>白切鸡</h5><p>白斩鸡又叫白切鸡、三黄油鸡,是一道中华民族特色菜肴,起源于广东,是一道经典的粤菜,因烹鸡时不加调味白煮而成,食用时随吃随斩,故称“白斩鸡”。<br>白斩鸡形状美观,皮黄肉白,肥嫩鲜美,滋味异常鲜美,十分可口,肉色洁白皮带黄油,具有葱油香味,葱段打花镶边,食时佐以姜蓉、蒜泥、酱油,保持了鸡肉的鲜美、原汁原味,食之别有风味。</p>]]></content>
<categories>
<category> Hexo </category>
<category> Theme Meow </category>
</categories>
<tags>
<tag> 效果展示 </tag>
</tags>
</entry>
<entry>
<title>哥斯拉:怪兽之王</title>
<link href="/%E5%93%A5%E6%96%AF%E6%8B%89-%E6%80%AA%E5%85%BD%E4%B9%8B%E7%8E%8B/"/>
<url>/%E5%93%A5%E6%96%AF%E6%8B%89-%E6%80%AA%E5%85%BD%E4%B9%8B%E7%8E%8B/</url>
<content type="html"><![CDATA[<p> (这是一篇示例文章,正文什么的……下次一定!)</p><p> <strong>以下内容摘取自百度百科</strong></p><p> 《哥斯拉2:怪兽之王》是由传奇影业、华纳兄弟娱乐公司等联合出品,由迈克尔·道赫蒂执导,渡边谦、章子怡特别加盟,凯尔·钱德勒、维拉·法梅加、米莉·博比·布朗、布莱德利·惠特福德、莎莉·霍金斯等联袂主演的科幻灾难电影。</p><p> 该片是《哥斯拉》的续集,承接《金刚:骷髅岛》,讲述了强大的哥斯拉将和魔斯拉、拉顿和它的死对头王基多拉展开激烈对抗,当这些只存在于传说里的超级生物再度崛起时,它们将展开王者争霸,人类的命运岌岌可危的故事。</p><p> 该片于2019年5月31日在中国大陆和北美地区同步上映。</p><p> 2009年,动物基因组学(帝王计划)研究机构的一个小组在一座庙里研究着魔斯拉。她从幼体中孵出,在一群雇佣兵袭击这个机构时,魔斯拉逃了出去。然后她在一个瀑布包了茧,随后破茧而出,完成了全形态生长。</p><p> 2014年,哥斯拉被整个世界看到后,“帝王组织”在水下建了一个基地,在这个位于水下好几英里的水中基地中,他们研究着哥斯拉和其它可能存在的生物。那是他们真正的研究核心。</p><p> 在“旧金山事件”结束后,人类获得了短暂的和平。但这并没有阻止怪兽们觉醒,反而更加来势汹汹,长期沉睡于地底和冰川里面神秘的巨兽在星球上面已经有上万,甚至好几万年的历史,它们要把这个星球重新夺回自己的手下。接连出现在人类眼前的怪兽纷纷证明了一件事:它们才是地球的真正霸主,不论是地球的守护者还是毁灭者,战至最后的一位才能成为怪兽之王,“统领”全世界。</p><p> 正当帝王组织也一筹莫展之际,哥斯拉突然苏醒,它去消灭那些未来可能会去损害大自然平衡的生物。后来,哥斯拉和魔斯拉、拉顿以及它的强敌基多拉相遇。而击败基多拉正是抑制这次怪兽袭击的关键,两位王者巨兽的正面对决就此打响,在城市中一分高下,证明谁才是真正的怪兽之王。</p><p> 面对怪兽争霸,人类也没有选择袖手旁观,而是英勇无畏地冲向这些庞然大物,与哥斯拉并肩作战,誓死为地球存亡而战。</p>]]></content>
<categories>
<category> 同人小说 </category>
<category> 怪兽之王长篇系列 </category>
</categories>
<tags>
<tag> 哥斯拉Godzilla </tag>
<tag> 哥斯拉/魔斯拉 </tag>
<tag> 效果展示 </tag>
</tags>
</entry>
</search>