-
Notifications
You must be signed in to change notification settings - Fork 1
/
custom-site-theme-detail-zh.html
1061 lines (797 loc) · 24.4 KB
/
custom-site-theme-detail-zh.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
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>
自定网站或博客主题简单说明 - Coder For Art
</title>
<link href="atom.xml" rel="alternate" title="Coder For Art" type="application/atom+xml">
<link rel="stylesheet" href="asset/css/foundation.min.css" />
<link rel="stylesheet" href="asset/css/docs.css" />
<script src="asset/js/vendor/modernizr.js"></script>
<script src="asset/js/vendor/jquery.js"></script>
<script type="text/javascript">
function before_search(){
var searchVal = 'site:coderforart.com ' + document.getElementById('search_input').value;
document.getElementById('search_q').value = searchVal;
return true;
}
</script>
</head>
<body class="antialiased hide-extras">
<div class="marketing off-canvas-wrap" data-offcanvas>
<div class="inner-wrap">
<nav class="top-bar docs-bar hide-for-small" data-topbar>
<section class="top-bar-section">
<div class="row">
<div style="position: relative;width:100%;"><div style="position: absolute; width:100%;">
<ul id="main-menu" class="left">
<li id="menu_item_index"><a target="_self" href="index.html">Home</a></li>
<li id="menu_item_archives"><a target="_self" href="archives.html">Archives</a></li>
<li id="menu_item_about"><a target="_self" href="about.html">About</a></li>
</ul>
<ul class="right" id="search-wrap">
<li>
<form target="_blank" onsubmit="return before_search();" action="https://google.com/search" method="get">
<input type="hidden" id="search_q" name="q" value="" />
<input tabindex="1" type="search" id="search_input" placeholder="Search"/>
</form>
</li>
</ul>
</div></div>
</div>
</section>
</nav>
<nav class="tab-bar show-for-small">
<a href="javascript:void(0)" class="left-off-canvas-toggle menu-icon">
<span> Coder For Art</span>
</a>
</nav>
<aside class="left-off-canvas-menu">
<ul class="off-canvas-list">
<li><a target="_self" href="index.html">Home</a></li>
<li><a target="_self" href="archives.html">Archives</a></li>
<li><a target="_self" href="about.html">About</a></li>
<li><label>Categories</label></li>
<li><a href="Cocoa.html">Cocoa</a></li>
<li><a href="CG%20Artist.html">CG Artist</a></li>
<li><a href="Game%20Engine.html">Game Engine</a></li>
<li><a href="MWeb-cat.html">MWeb</a></li>
<li><a href="PinPhoto-cat.html">PinPhoto</a></li>
</ul>
</aside>
<a class="exit-off-canvas" href="#"></a>
<section id="main-content" role="main" class="scroll-container">
<script type="text/javascript">
$(function(){
$('#menu_item_index').addClass('is_active');
});
</script>
<div class="row">
<div class="large-8 medium-8 columns">
<div class="markdown-body article-wrap">
<div class="article">
<h1>自定网站或博客主题简单说明</h1>
<div class="read-more clearfix">
<span class="date">2015/01/07</span>
<span>posted in </span>
<span class="posted-in"><a href='Introduction.html'>Introduction</a></span>
<span class="comments">
<a href="http://coderforart.com/custom-site-theme-detail-zh.html#disqus_thread">comments</a>
</span>
</div>
</div><!-- article -->
<div class="article-content">
<p>MWeb全部主题已上传到Github: <a href="https://github.com/oulvhai/MWeb-Themes">https://github.com/oulvhai/MWeb-Themes</a>.</p>
<h2 id="toc_0">MWeb主题模板结构</h2>
<p>MWeb所有网站主题模板都放在SiteThemes这个文件夹里,点击 <img src="media/14206135238767/14227577752365.jpg" alt=""/> 这里可以直接显示SiteThemes文件夹,一个文件夹就表示一个主题。每个主题里包含的文档和文件夹的作用如下:</p>
<ul>
<li>asset -- 主题所有要用到的东西,图片、CSS、JS等等都放这里</li>
<li>archives.html -- archives.html页所使用的模板</li>
<li>atom.xml -- RSS所使用的模板</li>
<li>category.html -- 分类所使用的模板</li>
<li>footer.html -- 页面的底部</li>
<li>header.html -- 页面的顶部</li>
<li>page-index.html -- 自定首页模板</li>
<li>page.html -- 文档选中<code>Is page</code>时所使用的模板</li>
<li>post.html -- 文档不选中<code>Is page</code>所使用的模板</li>
<li>sidebar.html -- 侧边栏的模板</li>
<li>sitemap.xml -- 网站sitemap所使用的模板</li>
</ul>
<h2 id="toc_1">自定首页</h2>
<p>如图,设定想要设置为首页的文档的 HTML file name 为 <code>index</code>, 选中 <code>Is page</code> 选项。<br/>
<img src="media/14189904700669/14210659918568.jpg" alt=""/></p>
<span id="more"></span><!-- more -->
<h2 id="toc_2">自定文档页的HTML模板</h2>
<p>不选<code>Is page</code>选项时,生成HTML时读取的模板为:header.html+post.html+sidebar.html+footer.html。选中了<code>Is page</code>选项后,生成HTML时会读取的模板为:header.html+page.html+footer.html,如果要自定文档的模板,可以在主题文件夹里新增一个名称为:page-{HTML file name}.html 的页面,这样生成HTML时的读取的模板就会变成:header.html+page-{HTML file name}.html+footer.html。比如说要自定首页的模板,则在主题文件夹里新增一个名为:page-index.html 的页面即可。如 <a href="http://coderforart.com">http://coderforart.com</a> 就自定了首页,内容为:<a href="https://github.com/oulvhai/MWeb-Themes/blob/master/mweb-greyshade/page-index.html">https://github.com/oulvhai/MWeb-Themes/blob/master/mweb-greyshade/page-index.html</a> </p>
<h2 id="toc_3">自定分类页的HTML模板</h2>
<p>分类页生成HTML时读取的模板为:header.html+category.html+sidebar.html+footer.html。 其中category.html可以自定,MWeb生成分类页的HTML时,会判定是否存在:category-{HTML file name}.html的模板,如果存在,则会优先使用category-{HTML file name}.html模板。比如说有一个分类的 HTML file name 为 Cocoa,如果要自定这个分类的分类页的模板,则只要在主题文件夹里新增一个名为:category-Cocoa.html的页面即可,MWeb生成HTML时读取模板就会变为:header.html+category-Cocoa.html+sidebar.html+footer.html。</p>
<h2 id="toc_4">生成HTML时传入模板页的变量说明</h2>
<h3 id="toc_5">文档分类对象变量</h3>
<table>
<thead>
<tr>
<th>变量名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>分类的名称</td>
</tr>
<tr>
<td>url</td>
<td>分类的网址</td>
</tr>
</tbody>
</table>
<h3 id="toc_6">文档对象变量</h3>
<table>
<thead>
<tr>
<th>变量名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>title</td>
<td>文章的标题,通常为第一行</td>
</tr>
<tr>
<td>desContent</td>
<td>文章的HTML格式的描述,如果文档中没有<code><!-- more --></code>则跟content一样</td>
</tr>
<tr>
<td>desContentTextOnly</td>
<td>文章的纯文字描述,不带HTML</td>
</tr>
<tr>
<td>content</td>
<td>文章的内容</td>
</tr>
<tr>
<td>date</td>
<td>文章的时间,格式按网站设定,默认为:2014/10/24</td>
</tr>
<tr>
<td>dateGTM</td>
<td>文章的时间,格式为 2014-10-24T13:54:03GMT+08:00</td>
</tr>
<tr>
<td>artDate</td>
<td>文章新增的时间,格式按网站设定,默认为:2014/10/24</td>
</tr>
<tr>
<td>cats</td>
<td>文章分类的数组,数组的对象为<code>文档分类对象变量</code></td>
</tr>
<tr>
<td>readMore</td>
<td>文章中是否有<code><!-- more --></code></td>
</tr>
<tr>
<td>url</td>
<td>文章的网址</td>
</tr>
</tbody>
</table>
<h3 id="toc_7">最近文章变量</h3>
<table>
<thead>
<tr>
<th>变量名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>title</td>
<td>文章的名称</td>
</tr>
<tr>
<td>url</td>
<td>文章的网址</td>
</tr>
</tbody>
</table>
<h3 id="toc_8">分类对象变量</h3>
<table>
<thead>
<tr>
<th>变量名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>name</td>
<td>分类的名称</td>
</tr>
<tr>
<td>url</td>
<td>分类的网址</td>
</tr>
<tr>
<td>count</td>
<td>分类的文章数量</td>
</tr>
</tbody>
</table>
<h2 id="toc_9">生成网站</h2>
<h3 id="toc_10">所有页面都会传入的变量</h3>
<table>
<thead>
<tr>
<th>变量名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>siteURL</td>
<td>网站设置中的网站网址</td>
</tr>
<tr>
<td>siteDomain</td>
<td>网站的域名</td>
</tr>
<tr>
<td>siteName</td>
<td>网站的名称</td>
</tr>
<tr>
<td>pageTitle</td>
<td>网站的标题</td>
</tr>
<tr>
<td>siteDes</td>
<td>网站的描述</td>
</tr>
<tr>
<td>lastBuildDate</td>
<td>网站最后生成时间</td>
</tr>
<tr>
<td>mathJaxSupport</td>
<td>MathJax 支持的代码,1.3 新增</td>
</tr>
<tr>
<td>seqAndFlowChartSupport</td>
<td>顺序图和流程图支持的代码,1.3 新增</td>
</tr>
<tr>
<td>commentAndShareCode</td>
<td>评论和分享支持的代码,1.3 新增</td>
</tr>
<tr>
<td>siteOther</td>
<td>网站设置中的<code>other</code></td>
</tr>
<tr>
<td>recentPosts</td>
<td>数组,数组的对象为<code>最近文章变量</code></td>
</tr>
<tr>
<td>allCategories</td>
<td>数组,数组的对象为<code>分类对象变量</code></td>
</tr>
<tr>
<td>categoriesTree</td>
<td>二层分类树,数组,数组的对象为<code>分类对象变量</code>,外加children。请参考 <a href="https://github.com/oulvhai/MWeb-Themes/blob/master/octopress/sidebar.html">https://github.com/oulvhai/MWeb-Themes/blob/master/octopress/sidebar.html</a></td>
</tr>
</tbody>
</table>
<h3 id="toc_11">生成RSS: atom.xml</h3>
<p>读取的模板:atom.xml<br/>
传入的变量:</p>
<table>
<thead>
<tr>
<th>变量名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>posts</td>
<td>数组,数组对象为<code>文档对象变量</code></td>
</tr>
</tbody>
</table>
<p>参考模板:<a href="https://github.com/oulvhai/MWeb-Themes/blob/master/octopress/atom.xml">https://github.com/oulvhai/MWeb-Themes/blob/master/octopress/atom.xml</a></p>
<h3 id="toc_12">生成所有文章的页面</h3>
<p>读取的模板:header.html + post.html + sidebar.html + footer.html<br/>
传入的变量:</p>
<table>
<thead>
<tr>
<th>变量名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>post</td>
<td>对象为<code>文档对象变量</code></td>
</tr>
<tr>
<td>postNav</td>
<td>字典,带有<code>next</code>,<code>prev</code>两个对象,对象为 <code>最近文章变量</code></td>
</tr>
</tbody>
</table>
<p>参考模板:<a href="https://github.com/oulvhai/MWeb-Themes/blob/master/octopress/post.html">https://github.com/oulvhai/MWeb-Themes/blob/master/octopress/post.html</a></p>
<h3 id="toc_13">生成所有分类的页面</h3>
<p>读取的模板:header.html + category.html + sidebar.html + footer.html<br/>
传入的变量:</p>
<table>
<thead>
<tr>
<th>变量名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>posts</td>
<td>数组,数组的对象为<code>文档对象变量</code></td>
</tr>
<tr>
<td>prevPageUrl</td>
<td>上一页的网址</td>
</tr>
<tr>
<td>nextPageUrl</td>
<td>下一页的网址</td>
</tr>
</tbody>
</table>
<p>参考模板:<a href="https://github.com/oulvhai/MWeb-Themes/blob/master/octopress/category.html">https://github.com/oulvhai/MWeb-Themes/blob/master/octopress/category.html</a></p>
<h3 id="toc_14">生成所有文章选中<code>Is page</code>的页面</h3>
<p>读取的模板:header.html + page.html + footer.html<br/>
传入的变量:</p>
<table>
<thead>
<tr>
<th>变量名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>posts</td>
<td>数组,数组的对象为<code>文档对象变量</code></td>
</tr>
<tr>
<td>post</td>
<td>对象为<code>文档对象变量</code></td>
</tr>
</tbody>
</table>
<p>参考模板:<a href="https://github.com/oulvhai/MWeb-Themes/blob/master/mweb-greyshade/page-index.html">https://github.com/oulvhai/MWeb-Themes/blob/master/mweb-greyshade/page-index.html</a></p>
<h3 id="toc_15">生成archives.html</h3>
<p>读取的模板:header.html + archives.html + footer.html<br/>
传入的变量:</p>
<table>
<thead>
<tr>
<th>变量名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>posts</td>
<td>数组,数组对象请参考下表</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>变量名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>year</td>
<td>文章年份</td>
</tr>
<tr>
<td>title</td>
<td>文章标题</td>
</tr>
<tr>
<td>url</td>
<td>文章网址</td>
</tr>
<tr>
<td>cats</td>
<td>文章分类的数组,数组的对象为<code>文档分类对象变量</code></td>
</tr>
<tr>
<td>date</td>
<td>文章的时间,格式按网站设定,默认为:2014/10/24</td>
</tr>
<tr>
<td>dateMonth</td>
<td>文章月份</td>
</tr>
<tr>
<td>dateDay</td>
<td>文章日期</td>
</tr>
<tr>
<td>dateYear</td>
<td>文章年份</td>
</tr>
<tr>
<td>dateGTM</td>
<td>文章的时间,格式为 2014-10-24T13:54:03GMT+08:00</td>
</tr>
<tr>
<td>artDate</td>
<td>文章新增的时间,格式按网站设定,默认为:2014/10/24</td>
</tr>
</tbody>
</table>
<p>参考模板:<a href="https://github.com/oulvhai/MWeb-Themes/blob/master/octopress/archives.html">https://github.com/oulvhai/MWeb-Themes/blob/master/octopress/archives.html</a></p>
<h3 id="toc_16">生成sitemap.xml</h3>
<p>读取的模板:sitemap.xml<br/>
传入的变量:</p>
<table>
<thead>
<tr>
<th>变量名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>archives</td>
<td>数组,数组对象请参考下表</td>
</tr>
<tr>
<td>pages</td>
<td>数组,数组对象请参考下表</td>
</tr>
<tr>
<td>nowDateGTM</td>
<td>当前时间</td>
</tr>
</tbody>
</table>
<table>
<thead>
<tr>
<th>变量名称</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>title</td>
<td>文章标题</td>
</tr>
<tr>
<td>url</td>
<td>文章网址</td>
</tr>
<tr>
<td>date</td>
<td>文章的时间,格式按网站设定,默认为:2014/10/24</td>
</tr>
<tr>
<td>dateGTM</td>
<td>文章的时间,格式为 2014-10-24T13:54:03GMT+08:00</td>
</tr>
<tr>
<td>artDate</td>
<td>文章新增的时间,格式按网站设定,默认为:2014/10/24</td>
</tr>
</tbody>
</table>
<p>参考模板:<a href="https://github.com/oulvhai/MWeb-Themes/blob/master/octopress/sitemap.xml">https://github.com/oulvhai/MWeb-Themes/blob/master/octopress/sitemap.xml</a></p>
</div>
<div class="row">
<div class="large-6 columns">
<p class="text-left" style="padding:15px 0px;">
<a href="custom-site-theme-detail.html"
title="Previous Post: Custom site theme or design you owner theme">« Custom site theme or design you owner theme</a>
</p>
</div>
<div class="large-6 columns">
<p class="text-right" style="padding:15px 0px;">
<a href="mweb.html"
title="Next Post: MWeb - Markdown editor for static websites and blogs on OS X">MWeb - Markdown editor for static websites and blogs on OS X »</a>
</p>
</div>
</div>
<div class="comments-wrap">
<div class="share-comments">
<div id="disqus_thread"></div>
</div>
</div>
</div><!-- article-wrap -->
</div><!-- large 8 -->
<div class="large-4 medium-4 columns">
<div class="hide-for-small">
<div id="sidebar" class="sidebar">
<div id="site-info" class="site-info">
<div class="site-a-logo"><img src="media/14195170907881/icon.jpg" /></div>
<h1>Coder For Art</h1>
<div class="site-des">I'm an indie Mac/iOS developer, also want to be a CG artist</div>
<div class="social">
<a target="_blank" class="weibo" href="http://weibo.com/oulvhai" title="weibo">Weibo</a>
<a target="_blank" class="twitter" target="_blank" href="http://twitter.com/oulvhai" title="Twitter">Twitter</a>
<a target="_blank" class="github" target="_blank" href="https://github.com/oulvhai" title="GitHub">GitHub</a>
<a target="_blank" class="rss" href="atom.xml" title="RSS">RSS</a>
</div>
</div>
<div id="site-categories" class="side-item ">
<div class="side-header">
<h2>Important</h2>
</div>
<div class="side-content">
<div style="color:#ff0000; text-align:center; padding:8px;" class="bg-info site_notice">
<a style="color:#ff0000;" onclick="ga('send','event','global_notice_click');" href="https://zh.mweb.im/mweb3x-release-note.html" >MWeb 3 发布后 2.x 版维护说明及两者之间的功能对比!</a>
</div>
</div>
</div>
<div id="site-categories" class="side-item ">
<div class="side-header">
<h2>Categories</h2>
</div>
<div class="side-content">
<p class="cat-list">
<a href="Cocoa.html"><strong>Cocoa</strong></a>
<a href="CG%20Artist.html"><strong>CG Artist</strong></a>
<a href="Game%20Engine.html"><strong>Game Engine</strong></a>
<a href="MWeb-cat.html"><strong>MWeb</strong></a>
<a href="PinPhoto-cat.html"><strong>PinPhoto</strong></a>
</p>
</div>
</div>
<div id="site-categories" class="side-item">
<div class="side-header">
<h2>Recent Posts</h2>
</div>
<div class="side-content">
<ul class="posts-list">
<li class="post">
<a href="mweb3-release-note.html">MWeb 3.0 测试版更新情况</a>
</li>
<li class="post">
<a href="mweb3.0-on-test.html">MWeb 3.0 测试版终于发布了!欢迎大家试用!</a>
</li>
<li class="post">
<a href="15113184658847.html">MWeb for Mac, iOS 黑五半价促销一周,写个大概介绍。</a>
</li>
<li class="post">
<a href="mweb-ios-2.3.2-release.html">MWeb for iOS 2.3.2 发布!</a>
</li>
<li class="post">
<a href="how_to_use_images_in_mweb.html">MWeb Mac 版和 iOS 版图片及图床使用完全指南</a>
</li>
</ul>
</div>
</div>
</div><!-- sidebar -->
</div><!-- hide for small -->
</div><!-- large 4 -->
</div><!-- row -->
<div class="page-bottom clearfix">
<div class="row">
<p class="copyright">Copyright © 2015
Powered by <a target="_blank" href="http://www.mweb.im">MWeb</a>,
Theme used <a target="_blank" href="http://github.com">GitHub CSS</a>.</p>
</div>
</div>
</section>
</div>
</div>
<style type="text/css">
figure{margin: 0;padding: 0;}
figcaption{text-align:center;}
/* PrismJS 1.14.0
http://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */
/**
* prism.js default theme for JavaScript, CSS and HTML
* Based on dabblet (http://dabblet.com)
* @author Lea Verou
*/
code[class*="language-"],
pre[class*="language-"] {
color: black;
background: none;
text-shadow: 0 1px white;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
text-shadow: none;
background:#b3d4fc;
}
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
code[class*="language-"]::selection, code[class*="language-"] ::selection {
text-shadow: none;
background: #b3d4fc;
}
@media print {
code[class*="language-"],
pre[class*="language-"] {
text-shadow: none;
}
}
/* Code blocks */
pre[class*="language-"] {
padding: 1em;
margin: .5em 0;
overflow: auto;
}
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: #F7F7F7;
}
/* Inline code */
:not(pre) > code[class*="language-"] {
padding: .1em;
border-radius: .3em;
white-space: normal;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: slategray;
}
.token.punctuation {
color: #999;
}
.namespace {
opacity: .7;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
color: #905;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: #690;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
color: #9a6e3a;
background: hsla(0, 0%, 100%, .5);
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #07a;
}
.token.function,
.token.class-name {
color: #DD4A68;
}
.token.regex,
.token.important,
.token.variable {
color: #e90;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}
pre[class*="language-"].line-numbers {
position: relative;
padding-left: 3.8em;
counter-reset: linenumber;
}
pre[class*="language-"].line-numbers > code {
position: relative;
white-space: inherit;
}
.line-numbers .line-numbers-rows {
position: absolute;
pointer-events: none;
top: 0;
font-size: 100%;
left: -3.8em;
width: 3em; /* works for line-numbers below 1000 lines */
letter-spacing: -1px;
border-right: 1px solid #999;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.line-numbers-rows > span {
pointer-events: none;
display: block;
counter-increment: linenumber;
}
.line-numbers-rows > span:before {
content: counter(linenumber);
color: #999;