-
Notifications
You must be signed in to change notification settings - Fork 0
/
建站辛酸.html
807 lines (467 loc) · 71.9 KB
/
建站辛酸.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
<!DOCTYPE html>
<html class="theme-next pisces" lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="generator" content="Hexo 3.9.0">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="google-site-verification" content="5kQ1pLcJBOrSXQ4-tRz_R_V6TfGCs1Jls9WuWt6-l6w">
<meta name="sogou-site-verification" content="nOkR7Wa5yE">
<meta name="360-site-verification" content="998ba408010b57a9856982d547a1cf5c">
<meta name="baidu-site-verification" content="pO45hC5Gb2">
<link rel="apple-touch-icon" sizes="180x180" href="/images/headicon.png?v=7.2.0">
<link rel="icon" type="image/png" sizes="32x32" href="/images/headicon.png?v=7.2.0">
<link rel="icon" type="image/png" sizes="16x16" href="/images/headicon.png?v=7.2.0">
<link rel="mask-icon" href="/images/headicon.svg?v=7.2.0" color="#222">
<link rel="stylesheet" href="/css/main.css?v=7.2.0">
<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css?v=4.7.0">
<link rel="stylesheet" href="//cdn.jsdelivr.net/fancybox/2.1.5/jquery.fancybox.min.css">
<script id="hexo.configurations">
var NexT = window.NexT || {};
var CONFIG = {
root: '/',
scheme: 'Pisces',
version: '7.2.0',
sidebar: {"position":"left","display":"post","offset":12,"onmobile":false},
back2top: {"enable":true,"sidebar":true,"scrollpercent":true},
copycode: {"enable":true,"show_result":true,"style":"mac"},
fancybox: true,
mediumzoom: false,
lazyload: false,
pangu: false,
algolia: {
applicationID: '',
apiKey: '',
indexName: '',
hits: {"per_page":10},
labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
},
localsearch: {"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},
search: {
root: '/',
path: ''
},
tabs: true,
motion: {"enable":false,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
translation: {
copy_button: '复制',
copy_success: '复制成功',
copy_failure: '复制失败'
}
};
</script>
<meta name="description" content="准备工作http://blog.haoji.me/build-blog-website-by-hexo-github.html?from=xa 配置hexo安装1git clone https://github.com/theme-next/hexo-theme-next themes/next 项目地址 更换为hexo12345# Extensions## Plugins: https://h">
<meta property="og:type" content="article">
<meta property="og:title" content="建站辛酸">
<meta property="og:url" content="http://0xe4s0n.github.io/建站辛酸.html">
<meta property="og:site_name" content="0xE4s0n的博客">
<meta property="og:description" content="准备工作http://blog.haoji.me/build-blog-website-by-hexo-github.html?from=xa 配置hexo安装1git clone https://github.com/theme-next/hexo-theme-next themes/next 项目地址 更换为hexo12345# Extensions## Plugins: https://h">
<meta property="og:locale" content="zh-CN">
<meta property="og:image" content="https://i.loli.net/2019/07/30/5d3fb65f8ee0361580.jpg">
<meta property="og:updated_time" content="2019-08-14T03:49:27.098Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="建站辛酸">
<meta name="twitter:description" content="准备工作http://blog.haoji.me/build-blog-website-by-hexo-github.html?from=xa 配置hexo安装1git clone https://github.com/theme-next/hexo-theme-next themes/next 项目地址 更换为hexo12345# Extensions## Plugins: https://h">
<meta name="twitter:image" content="https://i.loli.net/2019/07/30/5d3fb65f8ee0361580.jpg">
<link rel="alternate" href="/atom.xml" title="0xE4s0n的博客" type="application/atom+xml">
<link rel="canonical" href="http://0xe4s0n.github.io/建站辛酸">
<script id="page.configurations">
CONFIG.page = {
sidebar: "",
};
</script>
<title>建站辛酸 | 0xE4s0n的博客</title>
<noscript>
<style>
.use-motion .motion-element,
.use-motion .brand,
.use-motion .menu-item,
.sidebar-inner,
.use-motion .post-block,
.use-motion .pagination,
.use-motion .comments,
.use-motion .post-header,
.use-motion .post-body,
.use-motion .collection-title { opacity: initial; }
.use-motion .logo,
.use-motion .site-title,
.use-motion .site-subtitle {
opacity: initial;
top: initial;
}
.use-motion .logo-line-before i { left: initial; }
.use-motion .logo-line-after i { right: initial; }
</style>
</noscript>
</head>
<body itemscope itemtype="http://schema.org/WebPage" lang="zh-CN">
<div class="container sidebar-position-left page-post-detail">
<div class="headband"></div>
<header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
<div class="header-inner"><div class="site-brand-wrapper">
<div class="site-meta">
<div class="custom-logo-site-title">
<a href="/" class="brand" rel="start">
<span class="logo-line-before"><i></i></span>
<span class="site-title">0xE4s0n的博客</span>
<span class="logo-line-after"><i></i></span>
</a>
</div>
</div>
<div class="site-nav-toggle">
<button aria-label="切换导航栏">
<span class="btn-bar"></span>
<span class="btn-bar"></span>
<span class="btn-bar"></span>
</button>
</div>
</div>
<nav class="site-nav">
<ul id="menu" class="menu">
<li class="menu-item menu-item-home">
<a href="/" rel="section"><i class="menu-item-icon fa fa-fw fa-home"></i> <br/>首页</a>
</li>
<li class="menu-item menu-item-about">
<a href="/about/" rel="section"><i class="menu-item-icon fa fa-fw fa-user"></i> <br/>关于</a>
</li>
<li class="menu-item menu-item-tags">
<a href="/tags/" rel="section"><i class="menu-item-icon fa fa-fw fa-tags"></i> <br/>标签<span class="badge">4</span></a>
</li>
<li class="menu-item menu-item-categories">
<a href="/categories/" rel="section"><i class="menu-item-icon fa fa-fw fa-th"></i> <br/>分类<span class="badge">3</span></a>
</li>
<li class="menu-item menu-item-archives">
<a href="/archives/" rel="section"><i class="menu-item-icon fa fa-fw fa-archive"></i> <br/>归档<span class="badge">8</span></a>
</li>
</ul>
</nav>
</div>
</header>
<main id="main" class="main">
<div class="main-inner">
<div class="content-wrap">
<div id="content" class="content">
<div id="posts" class="posts-expand">
<article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
<div class="post-block">
<link itemprop="mainEntityOfPage" href="http://0xe4s0n.github.io/建站辛酸.html">
<span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
<meta itemprop="name" content="0xE4s0n">
<meta itemprop="description" content="">
<meta itemprop="image" content="/images/headicon.png">
</span>
<span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
<meta itemprop="name" content="0xE4s0n的博客">
</span>
<header class="post-header">
<h2 class="post-title" itemprop="name headline">建站辛酸
</h2>
<div class="post-meta">
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-o"></i>
</span>
<span class="post-meta-item-text">发表于</span>
<time title="创建时间:2019-07-30 15:58:44" itemprop="dateCreated datePublished" datetime="2019-07-30T15:58:44+08:00">2019-07-30</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon">
<i class="fa fa-calendar-check-o"></i>
</span>
<span class="post-meta-item-text">更新于</span>
<time title="修改时间:2019-08-14 11:49:27" itemprop="dateModified" datetime="2019-08-14T11:49:27+08:00">2019-08-14</time>
</span>
<span class="post-meta-item">
<span class="post-meta-item-icon"
>
<i class="fa fa-eye"></i>
阅读次数:
<span class="busuanzi-value" id="busuanzi_value_page_pv"></span>
</span>
</span>
<br/>
</div>
</header>
<div class="post-body" itemprop="articleBody">
<h1 id="准备工作"><a href="#准备工作" class="headerlink" title="准备工作"></a>准备工作</h1><p><a href="http://blog.haoji.me/build-blog-website-by-hexo-github.html?from=xa" target="_blank" rel="noopener">http://blog.haoji.me/build-blog-website-by-hexo-github.html?from=xa</a></p>
<h1 id="配置hexo"><a href="#配置hexo" class="headerlink" title="配置hexo"></a>配置hexo</h1><h2 id="安装"><a href="#安装" class="headerlink" title="安装"></a>安装</h2><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> https://github.com/theme-next/hexo-theme-next themes/next</span><br></pre></td></tr></table></figure>
<p><a href="https://github.com/theme-next/hexo-theme-next" target="_blank" rel="noopener">项目地址</a></p>
<h2 id="更换为hexo"><a href="#更换为hexo" class="headerlink" title="更换为hexo"></a>更换为hexo</h2><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></pre></td><td class="code"><pre><span class="line"><span class="comment"># Extensions</span></span><br><span class="line"><span class="comment">## Plugins: https://hexo.io/plugins/</span></span><br><span class="line"><span class="comment">## Themes: https://hexo.io/themes/</span></span><br><span class="line"><span class="attr">-theme:</span> <span class="string">landscape</span></span><br><span class="line"><span class="string">+theme:</span> <span class="string">next</span></span><br></pre></td></tr></table></figure>
<h2 id="站点信息"><a href="#站点信息" class="headerlink" title="站点信息"></a>站点信息</h2><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><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># Site</span></span><br><span class="line"><span class="attr">title:</span> <span class="number">0xE4</span><span class="string">s0n的博客</span></span><br><span class="line"><span class="attr">subtitle:</span></span><br><span class="line"><span class="attr">description:</span></span><br><span class="line"><span class="attr">keywords:</span></span><br><span class="line"><span class="attr">author:</span> <span class="number">0xE4</span><span class="string">s0n</span></span><br><span class="line"><span class="attr">language:</span> <span class="string">zh-CN</span></span><br><span class="line"><span class="attr">timezone:</span></span><br></pre></td></tr></table></figure>
<h2 id="仓库"><a href="#仓库" class="headerlink" title="仓库"></a>仓库</h2><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"># Deployment</span></span><br><span class="line"><span class="comment">## Docs: https://hexo.io/docs/deployment.html</span></span><br><span class="line"><span class="attr">deploy:</span></span><br><span class="line"><span class="attr"> type:</span> <span class="string">git</span></span><br><span class="line"><span class="attr"> repository:</span> <span class="string">[email protected]:0xE4s0n/0xE4s0n.github.io.git</span></span><br><span class="line"><span class="attr"> branch:</span> <span class="string">master</span></span><br></pre></td></tr></table></figure>
<h2 id="头像"><a href="#头像" class="headerlink" title="头像"></a>头像</h2><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></pre></td><td class="code"><pre><span class="line"><span class="attr">favicon:</span></span><br><span class="line"><span class="attr"> small:</span> <span class="string">/images/headicon.png</span></span><br><span class="line"><span class="attr"> medium:</span> <span class="string">/images/headicon.png</span></span><br><span class="line"><span class="attr"> apple_touch_icon:</span> <span class="string">/images/headicon.png</span></span><br><span class="line"><span class="attr"> safari_pinned_tab:</span> <span class="string">/images/headicon.svg</span></span><br></pre></td></tr></table></figure>
<h2 id="移除next页脚"><a href="#移除next页脚" class="headerlink" title="移除next页脚"></a>移除next页脚</h2><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><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">powered:</span></span><br><span class="line"> <span class="comment"># Hexo link (Powered by Hexo).</span></span><br><span class="line"><span class="attr"> enable:</span> <span class="literal">false</span></span><br><span class="line"> <span class="comment"># Version info of Hexo after Hexo link (vX.X.X).</span></span><br><span class="line"><span class="attr"> version:</span> <span class="literal">true</span></span><br><span class="line"></span><br><span class="line"><span class="attr">theme:</span></span><br><span class="line"> <span class="comment"># Theme & scheme info link (Theme - NexT.scheme).</span></span><br><span class="line"><span class="attr"> enable:</span> <span class="literal">false</span></span><br><span class="line"> <span class="comment"># Version info of NexT after scheme info (vX.X.X).</span></span><br><span class="line"><span class="attr"> version:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure>
<h2 id="添加其它页面"><a href="#添加其它页面" class="headerlink" title="添加其它页面"></a>添加其它页面</h2><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 about</span><br><span class="line">hexo new page tags</span><br><span class="line">hexo new page categories</span><br></pre></td></tr></table></figure>
<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="attr">menu:</span></span><br><span class="line"><span class="attr"> home:</span> <span class="string">/</span> <span class="string">||</span> <span class="string">home</span></span><br><span class="line"><span class="attr"> categories:</span> <span class="string">/categories/</span> <span class="string">||</span> <span class="string">th</span></span><br><span class="line"><span class="attr"> tags:</span> <span class="string">/tags/</span> <span class="string">||</span> <span class="string">tags</span></span><br><span class="line"><span class="attr"> archives:</span> <span class="string">/archives/</span> <span class="string">||</span> <span class="string">archive</span></span><br><span class="line"><span class="attr"> about:</span> <span class="string">/about/</span> <span class="string">||</span> <span class="string">user</span></span><br></pre></td></tr></table></figure>
<p>更改tags/index.md</p>
<figure class="highlight md"><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></pre></td><td class="code"><pre><span class="line">---</span><br><span class="line">title: tags</span><br><span class="line">date: 2019-07-30 10:34:06</span><br><span class="line">type: "tags"</span><br><span class="line">---</span><br></pre></td></tr></table></figure>
<p>更改categories/index.md</p>
<figure class="highlight md"><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></pre></td><td class="code"><pre><span class="line">---</span><br><span class="line">title: categories</span><br><span class="line">date: 2019-07-30 10:34:15</span><br><span class="line">type: "categories"</span><br><span class="line">---</span><br></pre></td></tr></table></figure>
<h2 id="侧栏"><a href="#侧栏" class="headerlink" title="侧栏"></a>侧栏</h2><p>显示数目</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></pre></td><td class="code"><pre><span class="line"><span class="attr">menu_settings:</span></span><br><span class="line"><span class="attr"> icons:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr"> badges:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure>
<h2 id="主题"><a href="#主题" class="headerlink" title="主题"></a>主题</h2><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></pre></td><td class="code"><pre><span class="line"><span class="comment"># Schemes</span></span><br><span class="line"><span class="comment">#scheme: Muse</span></span><br><span class="line"><span class="comment">#scheme: Mist</span></span><br><span class="line"><span class="comment">#scheme: Pisces</span></span><br><span class="line"><span class="attr">scheme:</span> <span class="string">Gemini</span></span><br></pre></td></tr></table></figure>
<h2 id="大头像"><a href="#大头像" class="headerlink" title="大头像"></a>大头像</h2><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><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">avatar:</span></span><br><span class="line"> <span class="comment"># In theme directory (source/images): /images/avatar.gif</span></span><br><span class="line"> <span class="comment"># In site directory (source/uploads): /uploads/avatar.gif</span></span><br><span class="line"> <span class="comment"># You can also use other linking images.</span></span><br><span class="line"><span class="attr"> url:</span> <span class="string">/images/headicon.png</span></span><br><span class="line"> <span class="comment"># 圆角头像</span></span><br><span class="line"><span class="attr"> rounded:</span> <span class="literal">true</span></span><br><span class="line"> <span class="comment"># 不透明度</span></span><br><span class="line"><span class="attr"> opacity:</span> <span class="number">1</span></span><br><span class="line"> <span class="comment"># 鼠标指示旋转头像</span></span><br><span class="line"><span class="attr"> rotated:</span> <span class="literal">false</span></span><br></pre></td></tr></table></figure>
<h2 id="back2top"><a href="#back2top" class="headerlink" title="back2top"></a>back2top</h2><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="attr">back2top:</span></span><br><span class="line"><span class="attr"> enable:</span> <span class="literal">true</span></span><br><span class="line"> <span class="comment"># Back to top in sidebar.</span></span><br><span class="line"><span class="attr"> sidebar:</span> <span class="literal">true</span></span><br><span class="line"> <span class="comment"># Scroll percent label in b2t button.</span></span><br><span class="line"><span class="attr"> scrollpercent:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure>
<h2 id="首页收起文章详情"><a href="#首页收起文章详情" class="headerlink" title="首页收起文章详情"></a>首页收起文章详情</h2><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></pre></td><td class="code"><pre><span class="line"><span class="attr">auto_excerpt:</span></span><br><span class="line"><span class="attr"> enable:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr"> length:</span> <span class="number">150</span></span><br></pre></td></tr></table></figure>
<h2 id="代码块"><a href="#代码块" class="headerlink" title="代码块"></a>代码块</h2><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><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">codeblock:</span></span><br><span class="line"> <span class="comment"># Code Highlight theme</span></span><br><span class="line"> <span class="comment"># Available values: normal | night | night eighties | night blue | night bright</span></span><br><span class="line"> <span class="comment"># See: https://github.com/chriskempson/tomorrow-theme</span></span><br><span class="line"><span class="attr"> highlight_theme:</span> <span class="string">normal</span></span><br><span class="line"> <span class="comment"># Add copy button on codeblock</span></span><br><span class="line"><span class="attr"> copy_button:</span></span><br><span class="line"><span class="attr"> enable:</span> <span class="literal">true</span></span><br><span class="line"> <span class="comment"># Show text copy result.</span></span><br><span class="line"><span class="attr"> show_result:</span> <span class="literal">true</span></span><br><span class="line"> <span class="comment"># Available values: default | flat | mac</span></span><br><span class="line"><span class="attr"> style:</span></span><br></pre></td></tr></table></figure>
<h2 id="上传附件"><a href="#上传附件" class="headerlink" title="上传附件"></a>上传附件</h2><ul>
<li>在source下创建download文件夹,把附件放到这个文件夹下</li>
<li>最后在文章中按照markdown的格式引入即可<code>[点击下载](/download/xxx)</code></li>
</ul>
<h2 id="添加百度收录"><a href="#添加百度收录" class="headerlink" title="添加百度收录"></a>添加百度收录</h2><p>到百度站点管理提交你的站点获得一个token<br>在<code>_config.yml</code>中配置<code>baidu_site_verification:</code></p>
<h2 id="第三方插件"><a href="#第三方插件" class="headerlink" title="第三方插件"></a>第三方插件</h2><p><strong>以下配置特别注意,如果配置了CDN以CDN的配置为准</strong></p>
<h3 id="fancybox"><a href="#fancybox" class="headerlink" title="fancybox"></a>fancybox</h3><p><strong>图片放大功能</strong><br>在next目录下</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> https://github.com/theme-next/theme-next-fancybox3 <span class="built_in">source</span>/lib/fancybox</span><br></pre></td></tr></table></figure>
<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">fancybox:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure>
<h3 id="gitalk"><a href="#gitalk" class="headerlink" title="gitalk"></a>gitalk</h3><p>在github申请一个<br><img src="https://i.loli.net/2019/07/30/5d3fb65f8ee0361580.jpg" alt><br>得到<code>client_id</code>和<code>client_secret</code></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><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">gitalk:</span></span><br><span class="line"><span class="attr"> enable:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr"> github_id:</span> <span class="number">0xE4</span><span class="string">s0n</span> <span class="comment"># Github repo owner</span></span><br><span class="line"><span class="attr"> repo:</span> <span class="number">0xE4</span><span class="string">s0n.github.io</span> <span class="comment"># Repository name to store issues</span></span><br><span class="line"><span class="attr"> client_id:</span> <span class="string">xxxxx</span> <span class="comment"># Github Application Client ID</span></span><br><span class="line"><span class="attr"> client_secret:</span> <span class="string">xxxxxx</span> <span class="comment"># Github Application Client Secret</span></span><br><span class="line"><span class="attr"> admin_user:</span> <span class="number">0xE4</span><span class="string">s0n</span> <span class="comment"># GitHub repo owner and collaborators, only these guys can initialize github issues</span></span><br><span class="line"><span class="attr"> distraction_free_mode:</span> <span class="literal">true</span> <span class="comment"># Facebook-like distraction free mode</span></span><br><span class="line"> <span class="comment"># Gitalk's display language depends on user's browser or system environment</span></span><br><span class="line"> <span class="comment"># If you want everyone visiting your site to see a uniform language, you can set a force language value</span></span><br><span class="line"> <span class="comment"># Available values: en, es-ES, fr, ru, zh-CN, zh-TW</span></span><br><span class="line"><span class="attr"> language:</span> <span class="string">zh-CN</span></span><br></pre></td></tr></table></figure>
<h3 id="不蒜子访客统计"><a href="#不蒜子访客统计" class="headerlink" title="不蒜子访客统计"></a>不蒜子访客统计</h3><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><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># 访客人数统计</span></span><br><span class="line"><span class="attr">busuanzi_count:</span></span><br><span class="line"><span class="attr"> enable:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr"> total_visitors:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr"> total_visitors_icon:</span> <span class="string">user</span></span><br><span class="line"><span class="attr"> total_views:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr"> total_views_icon:</span> <span class="string">eye</span></span><br><span class="line"><span class="attr"> post_views:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr"> post_views_icon:</span> <span class="string">eye</span></span><br></pre></td></tr></table></figure>
<p><strong>更改显示样式</strong></p>
<p>更改<code>blog\themes\next\layout\_partials\analytics\busuanzi-counter.swig</code>下布局</p>
<figure class="highlight html"><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><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br></pre></td><td class="code"><pre><span class="line">{%- if theme.busuanzi_count.enable %}</span><br><span class="line"><span class="tag"><<span class="name">div</span> <span class="attr">class</span>=<span class="string">"busuanzi-count"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">script</span> <span class="attr">async</span> <span class="attr">src</span>=<span class="string">"https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br><span class="line"></span><br><span class="line"> {%- if theme.busuanzi_count.total_visitors %}</span><br><span class="line"> <span class="tag"><<span class="name">span</span> <span class="attr">class</span>=<span class="string">"post-meta-item-icon"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">i</span> <span class="attr">class</span>=<span class="string">"fa fa-{{ theme.busuanzi_count.total_visitors_icon }}"</span>></span><span class="tag"></<span class="name">i</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">span</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">span</span> <span class="attr">class</span>=<span class="string">"site-uv"</span> <span class="attr">title</span>=<span class="string">"{{ __('footer.total_visitors') }}"</span>></span></span><br><span class="line"> 访客:<span class="tag"><<span class="name">span</span> <span class="attr">class</span>=<span class="string">"busuanzi-value"</span> <span class="attr">id</span>=<span class="string">"busuanzi_value_site_uv"</span>></span><span class="tag"></<span class="name">span</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">span</span>></span></span><br><span class="line"> {%- endif %}</span><br><span class="line"></span><br><span class="line"> {%- if theme.busuanzi_count.total_visitors and theme.busuanzi_count.total_views %}</span><br><span class="line"> <span class="tag"><<span class="name">span</span> <span class="attr">class</span>=<span class="string">"post-meta-divider"</span>></span>|<span class="tag"></<span class="name">span</span>></span></span><br><span class="line"> {%- endif %}</span><br><span class="line"></span><br><span class="line"> {%- if theme.busuanzi_count.total_views %}</span><br><span class="line"> <span class="tag"><<span class="name">span</span> <span class="attr">class</span>=<span class="string">"post-meta-item-icon"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">i</span> <span class="attr">class</span>=<span class="string">"fa fa-{{ theme.busuanzi_count.total_views_icon }}"</span>></span><span class="tag"></<span class="name">i</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">span</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">span</span> <span class="attr">class</span>=<span class="string">"site-pv"</span> <span class="attr">title</span>=<span class="string">"{{ __('footer.total_views') }}"</span>></span></span><br><span class="line"> 浏览次数:<span class="tag"><<span class="name">span</span> <span class="attr">class</span>=<span class="string">"busuanzi-value"</span> <span class="attr">id</span>=<span class="string">"busuanzi_value_site_pv"</span>></span><span class="tag"></<span class="name">span</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">span</span>></span></span><br><span class="line"> {%- endif %}</span><br><span class="line"><span class="tag"></<span class="name">div</span>></span></span><br><span class="line">{%- endif %}</span><br></pre></td></tr></table></figure>
<h3 id="本地搜索"><a href="#本地搜索" class="headerlink" title="本地搜索"></a>本地搜索</h3><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><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">local_search:</span></span><br><span class="line"><span class="attr"> enable:</span> <span class="literal">true</span></span><br><span class="line"> <span class="comment"># If auto, trigger search by changing input.</span></span><br><span class="line"> <span class="comment"># If manual, trigger search by pressing enter key or search button.</span></span><br><span class="line"><span class="attr"> trigger:</span> <span class="string">auto</span></span><br><span class="line"> <span class="comment"># Show top n results per article, show all results by setting to -1</span></span><br><span class="line"><span class="attr"> top_n_per_article:</span> <span class="number">1</span></span><br><span class="line"> <span class="comment"># Unescape html strings to the readable one.</span></span><br><span class="line"><span class="attr"> unescape:</span> <span class="literal">false</span></span><br><span class="line"> <span class="comment"># Preload the search data when the page loads.</span></span><br><span class="line"><span class="attr"> preload:</span> <span class="literal">false</span></span><br></pre></td></tr></table></figure>
<h3 id="背景动画"><a href="#背景动画" class="headerlink" title="背景动画"></a>背景动画</h3><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> https://github.com/theme-next/theme-next-three <span class="built_in">source</span>/lib/three</span><br></pre></td></tr></table></figure>
<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><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment"># JavaScript 3D library.</span></span><br><span class="line"><span class="comment"># Dependencies: https://github.com/theme-next/theme-next-three</span></span><br><span class="line"><span class="attr">three:</span></span><br><span class="line"><span class="attr"> enable:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr"> delay:</span> <span class="literal">false</span> <span class="comment"># Set true to further delay loading</span></span><br><span class="line"><span class="attr"> three_waves:</span> <span class="literal">false</span></span><br><span class="line"><span class="attr"> canvas_lines:</span> <span class="literal">false</span></span><br><span class="line"><span class="attr"> canvas_sphere:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure>
<h2 id="添加看板娘"><a href="#添加看板娘" class="headerlink" title="添加看板娘"></a>添加看板娘</h2><h3 id="官方低配版"><a href="#官方低配版" class="headerlink" title="官方低配版"></a>官方低配版</h3><p><a href="https://github.com/EYHN/hexo-helper-live2d/blob/HEAD/README.zh-CN.md" target="_blank" rel="noopener">项目地址</a> <a href="https://www.cnblogs.com/Friends-A/p/11054968.html#live2dwidgetmodelkoharu_30" target="_blank" rel="noopener">模型预览</a></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 --save hexo-helper-live2d</span><br></pre></td></tr></table></figure>
<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><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><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line"><span class="attr">live2d:</span></span><br><span class="line"><span class="attr"> enable:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr"> scriptFrom:</span> <span class="string">local</span></span><br><span class="line"><span class="attr"> pluginRootPath:</span> <span class="string">live2dw/</span></span><br><span class="line"><span class="attr"> pluginJsPath:</span> <span class="string">lib/</span></span><br><span class="line"><span class="attr"> pluginModelPath:</span> <span class="string">assets/</span></span><br><span class="line"><span class="attr"> tagMode:</span> <span class="literal">false</span></span><br><span class="line"><span class="attr"> debug:</span> <span class="literal">false</span></span><br><span class="line"><span class="attr"> model:</span></span><br><span class="line"><span class="attr"> use:</span> <span class="string">live2d-widget-model-shizuku</span></span><br><span class="line"><span class="attr"> display:</span></span><br><span class="line"><span class="attr"> position:</span> <span class="string">right</span></span><br><span class="line"><span class="attr"> width:</span> <span class="number">150</span></span><br><span class="line"><span class="attr"> height:</span> <span class="number">300</span></span><br><span class="line"><span class="attr"> mobile:</span></span><br><span class="line"><span class="attr"> show:</span> <span class="literal">true</span></span><br><span class="line"><span class="attr"> react:</span></span><br><span class="line"><span class="attr"> opacity:</span> <span class="number">0.7</span></span><br></pre></td></tr></table></figure>
<h3 id="再开发高配版"><a href="#再开发高配版" class="headerlink" title="再开发高配版"></a>再开发高配版</h3><p>1.下载 <a href="https://github.com/stevenjoezhang/live2d-widget" target="_blank" rel="noopener">张书樵大神的项目</a>,解压到本地博客目录的<code>themes/next/source</code>下,修改<code>autoload.js</code>文件</p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">const</span> live2d_path = <span class="string">"/live2d-widget/"</span>;</span><br></pre></td></tr></table></figure>
<p>2.在<code>/themes/next/layout/_layout.swing</code>中,新增如下内容:</p>
<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">script</span> <span class="attr">src</span>=<span class="string">"/live2d-widget/autoload.js"</span>></span><span class="tag"></<span class="name">script</span>></span></span><br></pre></td></tr></table></figure>
<p>3.在配置文件中,新增如下内容:</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">live2d:</span></span><br><span class="line"><span class="attr"> enable:</span> <span class="literal">true</span></span><br></pre></td></tr></table></figure>
<p>4.想修改看板娘大小、位置、格式、文本内容等,可查看并修改<code>waifu-tips.js</code>、<code>waifu-tips.json</code>和<code>waifu.css</code></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><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br></pre></td><td class="code"><pre><span class="line"><span class="selector-id">#waifu</span> {</span><br><span class="line"> <span class="attribute">position</span>: fixed;</span><br><span class="line"> <span class="attribute">bottom</span>: -<span class="number">1000px</span>;</span><br><span class="line"> <span class="comment">/* left: 0; */</span></span><br><span class="line"> <span class="attribute">right</span>: <span class="number">20px</span>;</span><br><span class="line"> <span class="attribute">z-index</span>: <span class="number">1</span>;</span><br><span class="line"> <span class="attribute">line-height</span>: <span class="number">0</span>;</span><br><span class="line"> <span class="attribute">transition</span>: transform .<span class="number">3s</span> ease-in-out;</span><br><span class="line"> <span class="attribute">transform</span>: <span class="built_in">translateY</span>(3px);</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
<h2 id="显示网站运行时间"><a href="#显示网站运行时间" class="headerlink" title="显示网站运行时间"></a>显示网站运行时间</h2><p>在<code>blog\themes\next\layout\_partials\footer.swig</code>末尾添加</p>
<figure class="highlight html"><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><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag"><<span class="name">div</span> <span class="attr">id</span>=<span class="string">"days"</span>></span><span class="tag"></<span class="name">div</span>></span></span><br><span class="line"><span class="tag"><<span class="name">script</span>></span></span><br><span class="line"><span class="javascript"><span class="function"><span class="keyword">function</span> <span class="title">show_date_time</span>(<span class="params"></span>)</span>{</span></span><br><span class="line"><span class="javascript"> <span class="built_in">window</span>.setTimeout(<span class="string">"show_date_time()"</span>, <span class="number">1000</span>);</span></span><br><span class="line"><span class="javascript"> BirthDay=<span class="keyword">new</span> <span class="built_in">Date</span>(<span class="string">"04/17/2017 15:13:14"</span>);<span class="comment">//修改为自己的blog建站时间</span></span></span><br><span class="line"><span class="javascript"> today=<span class="keyword">new</span> <span class="built_in">Date</span>();</span></span><br><span class="line"> timeold=(today.getTime()-BirthDay.getTime());</span><br><span class="line"> sectimeold=timeold/1000</span><br><span class="line"><span class="javascript"> secondsold=<span class="built_in">Math</span>.floor(sectimeold);</span></span><br><span class="line"> msPerDay=24*60*60*1000</span><br><span class="line"> e_daysold=timeold/msPerDay</span><br><span class="line"><span class="javascript"> daysold=<span class="built_in">Math</span>.floor(e_daysold);</span></span><br><span class="line"> e_hrsold=(e_daysold-daysold)*24;</span><br><span class="line"><span class="javascript"> hrsold=setzero(<span class="built_in">Math</span>.floor(e_hrsold));</span></span><br><span class="line"> e_minsold=(e_hrsold-hrsold)*60;</span><br><span class="line"><span class="javascript"> minsold=setzero(<span class="built_in">Math</span>.floor((e_hrsold-hrsold)*<span class="number">60</span>));</span></span><br><span class="line"><span class="javascript"> seconds=setzero(<span class="built_in">Math</span>.floor((e_minsold-minsold)*<span class="number">60</span>));</span></span><br><span class="line"><span class="javascript"> <span class="built_in">document</span>.getElementById(<span class="string">'days'</span>).innerHTML=<span class="string">"已运行"</span>+daysold+<span class="string">"天"</span>+hrsold+<span class="string">"小时"</span>+minsold+<span class="string">"分"</span>+seconds+<span class="string">"秒"</span>;</span></span><br><span class="line">}</span><br><span class="line"><span class="javascript"><span class="function"><span class="keyword">function</span> <span class="title">setzero</span>(<span class="params">i</span>)</span>{</span></span><br><span class="line"><span class="javascript"> <span class="keyword">if</span> (i<<span class="number">10</span>)</span></span><br><span class="line"><span class="javascript"> {i=<span class="string">"0"</span> + i};</span></span><br><span class="line"><span class="javascript"> <span class="keyword">return</span> i;</span></span><br><span class="line">}</span><br><span class="line">show_date_time();</span><br><span class="line"><span class="tag"></<span class="name">script</span>></span></span><br></pre></td></tr></table></figure>
<h2 id="配置主题"><a href="#配置主题" class="headerlink" title="配置主题"></a>配置主题</h2><ul>
<li><strong>布局在<code>blog\themes\next\layout\</code>文件夹下</strong> </li>
<li><strong>配色等在<code>blog\themes\next\source\</code>文件夹下</strong> </li>
<li><strong>主题的配置在<code>blog\themes\next\source\css\_schemes</code>,对应变量在<code>blog\themes\next\source\css\_variables</code></strong></li>
</ul>
<h3 id="配置背景"><a href="#配置背景" class="headerlink" title="配置背景"></a>配置背景</h3><p><strong><code>blog\themes\next\source\css\_common\scaffolding\base</code></strong></p>
<figure class="highlight plain"><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><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br></pre></td><td class="code"><pre><span class="line">body {</span><br><span class="line"> position: relative; // Required by scrollspy</span><br><span class="line"> font-family: $font-family-base;</span><br><span class="line"> font-size: $font-size-small;</span><br><span class="line"> line-height: $line-height-base;</span><br><span class="line"> color: $text-color;</span><br><span class="line"> background:url(/images/background.png);</span><br><span class="line"> background-repeat: no-repeat;</span><br><span class="line"> background-attachment:fixed;</span><br><span class="line"> background-position:50% 50%;</span><br><span class="line"> background-size: cover;</span><br><span class="line"> -webkit-background-size: cover;</span><br><span class="line"> -o-background-size: cover;</span><br><span class="line"> -moz-background-size: cover;</span><br><span class="line"> -ms-background-size: cover;</span><br><span class="line"> +tablet-mobile() { padding-right: 0 !important; }</span><br><span class="line"> +desktop-large() { font-size: $font-size-medium; }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
<h3 id="圆角"><a href="#圆角" class="headerlink" title="圆角"></a>圆角</h3><ul>
<li><p><strong>主板块</strong><br><code>blog\themes\next\source\css\_schemes\Pisces\_layout.styl</code></p>
<figure class="highlight plain"><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><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br></pre></td><td class="code"><pre><span class="line">.content-wrap {</span><br><span class="line"> float: right;</span><br><span class="line"> box-sizing: border-box;</span><br><span class="line"> padding: $content-desktop-padding;</span><br><span class="line"> width: $content-wrap;</span><br><span class="line"> background: rgba(255,255,255,0.5);</span><br><span class="line"> min-height: 700px;</span><br><span class="line"> box-shadow: $box-shadow-inner;</span><br><span class="line"> border-radius: 16px;</span><br><span class="line"></span><br><span class="line"> +tablet() {</span><br><span class="line"> width: 100%;</span><br><span class="line"> padding: 20px;</span><br><span class="line"> border-radius: initial;</span><br><span class="line"> }</span><br><span class="line"> +mobile() {</span><br><span class="line"> width: 100%;</span><br><span class="line"> padding: 20px;</span><br><span class="line"> min-height: auto;</span><br><span class="line"> border-radius: initial;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
</li>
<li><p><strong>侧边</strong><br><code>blog\themes\next\source\css\_schemes\Pisces\_sidebar.styl</code></p>
<figure class="highlight plain"><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><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br></pre></td><td class="code"><pre><span class="line">.sidebar-inner {</span><br><span class="line"> //padding: 20px 10px 0;</span><br><span class="line"> box-sizing: border-box;</span><br><span class="line"> width: $sidebar-desktop;</span><br><span class="line"> color: $text-color;</span><br><span class="line"> background: white;</span><br><span class="line"> box-shadow: $box-shadow;</span><br><span class="line"> border-radius: $border-radius;</span><br><span class="line"> if (hexo-config('motion.enable') and hexo-config('motion.transition.sidebar')) { opacity: 0; }</span><br><span class="line"></span><br><span class="line"> &.affix {</span><br><span class="line"> position: fixed;</span><br><span class="line"> top: $sidebar-offset;</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> &.affix-bottom {</span><br><span class="line"> position: absolute;</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
</li>
</ul>
<p><code>blog\themes\next\source\css\_common\components\back-to-top.styl</code></p>
<figure class="highlight plain"><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><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br></pre></td><td class="code"><pre><span class="line">.back-to-top {</span><br><span class="line"> visibility: hidden;</span><br><span class="line"> margin: (20px - $sidebar-offset) -10px -20px;</span><br><span class="line"> background: $b2t-sidebar-bg-color;</span><br><span class="line"> font-size: $b2t-font-size;</span><br><span class="line"> opacity: $b2t-opacity;</span><br><span class="line"> cursor: pointer;</span><br><span class="line"> text-align: center;</span><br><span class="line"> border-radius: $border-radius</span><br><span class="line"> &:hover { opacity: $b2t-opacity-hover; }</span><br><span class="line"></span><br><span class="line"> +tablet-mobile() {</span><br><span class="line"> hide() if not hexo-config('sidebar.onmobile');</span><br><span class="line"> }</span><br><span class="line"></span><br><span class="line"> &.back-to-top-on {</span><br><span class="line"> visibility: visible;</span><br><span class="line"> the-transition();</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
<p><code>blog\themes\next\source\css\_schemes\Pisces\_layout.styl</code></p>
<figure class="highlight plain"><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><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">.sidebar {</span><br><span class="line"> position: static;</span><br><span class="line"> float: left;</span><br><span class="line"> margin-left: -100%;</span><br><span class="line"> width: $sidebar-desktop;</span><br><span class="line"> background: $body-bg-color;</span><br><span class="line"> box-shadow: none</span><br><span class="line"> border-radius: $border-radius;</span><br><span class="line"></span><br><span class="line"> +tablet-mobile() {</span><br><span class="line"> hide();</span><br><span class="line"> }</span><br><span class="line">}</span><br></pre></td></tr></table></figure>
</div>
<footer class="post-footer">
<div class="post-nav">
<div class="post-nav-next post-nav-item">
<a href="/2019暑假任务———CTF-GAME.html" rel="next" title="2019暑假任务———CTF_GAME">
<i class="fa fa-chevron-left"></i> 2019暑假任务———CTF_GAME
</a>
</div>
<span class="post-nav-divider"></span>
<div class="post-nav-prev post-nav-item">
<a href="/2019暑假任务———Encoder.html" rel="prev" title="2019暑假任务———Encoder">
2019暑假任务———Encoder <i class="fa fa-chevron-right"></i>
</a>
</div>
</div>
</footer>
</div>
</article>
</div>
</div>
<div class="comments" id="gitalk-container"></div>
</div>
<div class="sidebar-toggle">
<div class="sidebar-toggle-line-wrap">
<span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
<span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
</div>
</div>
<aside id="sidebar" class="sidebar">
<div class="sidebar-inner">
<ul class="sidebar-nav motion-element">
<li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
文章目录
</li>
<li class="sidebar-nav-overview" data-target="site-overview-wrap">
站点概览
</li>
</ul>
<div class="site-overview-wrap sidebar-panel">
<div class="site-overview">
<div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
<img class="site-author-image" itemprop="image"
src="/images/headicon.png"
alt="0xE4s0n">
<p class="site-author-name" itemprop="name">0xE4s0n</p>
<div class="site-description motion-element" itemprop="description"></div>
</div>
<nav class="site-state motion-element">
<div class="site-state-item site-state-posts">
<a href="/archives/">
<span class="site-state-item-count">8</span>
<span class="site-state-item-name">日志</span>
</a>
</div>
<div class="site-state-item site-state-categories">
<a href="/categories/">
<span class="site-state-item-count">3</span>
<span class="site-state-item-name">分类</span>
</a>
</div>
<div class="site-state-item site-state-tags">
<a href="/tags/">
<span class="site-state-item-count">4</span>
<span class="site-state-item-name">标签</span>
</a>
</div>
</nav>
<div class="feed-link motion-element">
<a href="/atom.xml" rel="alternate">
<i class="fa fa-rss"></i>RSS
</a>
</div>
<div class="links-of-blogroll motion-element links-of-blogroll-block">
<div class="links-of-blogroll-title">
<i class="fa fa-fw fa-link"></i>
友链
</div>
<ul class="links-of-blogroll-list">
<li class="links-of-blogroll-item">
<a href="https://syc-2019--fxxy.repl.co" title="https://syc-2019--fxxy.repl.co" rel="noopener" target="_blank">Syclover</a>
</li>
<li class="links-of-blogroll-item">
<a href="https://www.0xpoker.cn/" title="https://www.0xpoker.cn/" rel="noopener" target="_blank">0xpoker</a>
</li>
<li class="links-of-blogroll-item">
<a href="https://fingerprint.bitcron.com/" title="https://fingerprint.bitcron.com/" rel="noopener" target="_blank">0x指纹</a>
</li>
<li class="links-of-blogroll-item">
<a href="http://www.reversing.win/" title="http://www.reversing.win/" rel="noopener" target="_blank">0x7o8v</a>
</li>
<li class="links-of-blogroll-item">
<a href="https://zoniony.github.io/" title="https://zoniony.github.io/" rel="noopener" target="_blank">zoniony</a>
</li>
<li class="links-of-blogroll-item">
<a href="https://abcdefghijklmnopqrst.xyz/" title="https://abcdefghijklmnopqrst.xyz/" rel="noopener" target="_blank">骑麦兜看日落</a>
</li>
</ul>
</div>
</div>
</div>
<!--noindex-->
<div class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
<div class="post-toc">
<div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#准备工作"><span class="nav-number">1.</span> <span class="nav-text">准备工作</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#配置hexo"><span class="nav-number">2.</span> <span class="nav-text">配置hexo</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#安装"><span class="nav-number">2.1.</span> <span class="nav-text">安装</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#更换为hexo"><span class="nav-number">2.2.</span> <span class="nav-text">更换为hexo</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#站点信息"><span class="nav-number">2.3.</span> <span class="nav-text">站点信息</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#仓库"><span class="nav-number">2.4.</span> <span class="nav-text">仓库</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#头像"><span class="nav-number">2.5.</span> <span class="nav-text">头像</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#移除next页脚"><span class="nav-number">2.6.</span> <span class="nav-text">移除next页脚</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#添加其它页面"><span class="nav-number">2.7.</span> <span class="nav-text">添加其它页面</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#侧栏"><span class="nav-number">2.8.</span> <span class="nav-text">侧栏</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#主题"><span class="nav-number">2.9.</span> <span class="nav-text">主题</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#大头像"><span class="nav-number">2.10.</span> <span class="nav-text">大头像</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#back2top"><span class="nav-number">2.11.</span> <span class="nav-text">back2top</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#首页收起文章详情"><span class="nav-number">2.12.</span> <span class="nav-text">首页收起文章详情</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#代码块"><span class="nav-number">2.13.</span> <span class="nav-text">代码块</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#上传附件"><span class="nav-number">2.14.</span> <span class="nav-text">上传附件</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#添加百度收录"><span class="nav-number">2.15.</span> <span class="nav-text">添加百度收录</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#第三方插件"><span class="nav-number">2.16.</span> <span class="nav-text">第三方插件</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#fancybox"><span class="nav-number">2.16.1.</span> <span class="nav-text">fancybox</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#gitalk"><span class="nav-number">2.16.2.</span> <span class="nav-text">gitalk</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#不蒜子访客统计"><span class="nav-number">2.16.3.</span> <span class="nav-text">不蒜子访客统计</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#本地搜索"><span class="nav-number">2.16.4.</span> <span class="nav-text">本地搜索</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#背景动画"><span class="nav-number">2.16.5.</span> <span class="nav-text">背景动画</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#添加看板娘"><span class="nav-number">2.17.</span> <span class="nav-text">添加看板娘</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#官方低配版"><span class="nav-number">2.17.1.</span> <span class="nav-text">官方低配版</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#再开发高配版"><span class="nav-number">2.17.2.</span> <span class="nav-text">再开发高配版</span></a></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#显示网站运行时间"><span class="nav-number">2.18.</span> <span class="nav-text">显示网站运行时间</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#配置主题"><span class="nav-number">2.19.</span> <span class="nav-text">配置主题</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#配置背景"><span class="nav-number">2.19.1.</span> <span class="nav-text">配置背景</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#圆角"><span class="nav-number">2.19.2.</span> <span class="nav-text">圆角</span></a></li></ol></li></ol></li></ol></div>
</div>
</div>
<!--/noindex-->
<div class="back-to-top motion-element">
<i class="fa fa-arrow-up"></i>
<span id="scrollpercent"><span>0</span>%</span>
</div>
</div>
</aside>
<div id="sidebar-dimmer"></div>
</div>
</main>
<footer id="footer" class="footer">
<div class="footer-inner">
<div class="copyright">© <span itemprop="copyrightYear">2021</span>
<span class="with-love" id="animate">
<i class="fa fa-user"></i>
</span>
<span class="author" itemprop="copyrightHolder">0xE4s0n</span>
</div>
<div id="days"></div>
<script>
function show_date_time(){
window.setTimeout("show_date_time()", 1000);
BirthDay=new Date("06/17/2019 15:13:14");//修改为自己的blog建站时间
today=new Date();
timeold=(today.getTime()-BirthDay.getTime());
sectimeold=timeold/1000
secondsold=Math.floor(sectimeold);
msPerDay=24*60*60*1000
e_daysold=timeold/msPerDay
daysold=Math.floor(e_daysold);
e_hrsold=(e_daysold-daysold)*24;
hrsold=setzero(Math.floor(e_hrsold));
e_minsold=(e_hrsold-hrsold)*60;
minsold=setzero(Math.floor((e_hrsold-hrsold)*60));
seconds=setzero(Math.floor((e_minsold-minsold)*60));
document.getElementById('days').innerHTML="已运行"+daysold+"天"+hrsold+"小时"+minsold+"分"+seconds+"秒";
}
function setzero(i){
if (i<10)
{i="0" + i};
return i;
}
show_date_time();
</script>
<div class="busuanzi-count">
<script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
<span class="post-meta-item-icon">
<i class="fa fa-user"></i>
</span>
<span class="site-uv" title="总访客量">
访客:<span class="busuanzi-value" id="busuanzi_value_site_uv"></span>
</span>
<span class="post-meta-divider">|</span>
<span class="post-meta-item-icon">
<i class="fa fa-eye"></i>
</span>
<span class="site-pv" title="总访问量">
浏览次数:<span class="busuanzi-value" id="busuanzi_value_site_pv"></span>
</span>
</div>
</div>
</footer>
</div>
<script color='0,0,255' opacity='0.5' zIndex='-1' count='99' src="//cdn.bootcss.com/canvas-nest.js/1.0.1/canvas-nest.min.js"></script>
<script src="//cdn.jsdelivr.net/jquery/2.1.3/jquery.min.js"></script>
<script src="//cdn.jsdelivr.net/fancybox/2.1.5/jquery.fancybox.pack.js"></script>
<script defer src="/lib/three/three.min.js"></script>
<script defer src="/lib/three/canvas_sphere.min.js"></script>
<script src="/js/utils.js?v=7.2.0"></script>
<script src="/js/affix.js?v=7.2.0"></script>
<script src="/js/schemes/pisces.js?v=7.2.0"></script>
<script src="/js/scrollspy.js?v=7.2.0"></script>
<script src="/js/post-details.js?v=7.2.0"></script>
<script src="/js/next-boot.js?v=7.2.0"></script>
<script>
(function(){
var bp = document.createElement('script');
var curProtocol = window.location.protocol.split(':')[0];
bp.src = (curProtocol === 'https') ? 'https://zz.bdstatic.com/linksubmit/push.js' : 'http://push.zhanzhang.baidu.com/push.js';
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(bp, s);
})();
</script>
<script src="//cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.js"></script>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.min.css">
<script src="//cdn.jsdelivr.net/npm/[email protected]/src/md5.min.js"></script>
<script>
var gitalk = new Gitalk({
clientID: '20a66d45deddc86a7b8f',
clientSecret: 'e7f74883281913b8ce00b761fcd7b79f844e4d4d',
repo: '0xE4s0n.github.io',
owner: '0xE4s0n',
admin: ['0xE4s0n'],
id: md5(location.pathname),
language: 'zh-CN',
distractionFreeMode: 'true'
});
gitalk.render('gitalk-container');
</script>
<script src="/live2d-widget/autoload.js"></script>
</body>
</html>