This repository was archived by the owner on Nov 10, 2020. It is now read-only.
File tree 15 files changed +674
-81
lines changed
15 files changed +674
-81
lines changed Original file line number Diff line number Diff line change 77
77
body .home {
78
78
#header {
79
79
height : 235px ;
80
-
80
+
81
81
h1 {
82
82
font-size : 60px ;
83
83
font-weight : normal ;
@@ -217,10 +217,8 @@ body.home {
217
217
218
218
}
219
219
220
- h2 {
221
- font-weight : 700 ;
222
- margin : 35px 0 ;
223
- }
220
+ h2 { font-weight : 700 ; margin : 35px 0 ; }
221
+ .p-news h2 { font-weight : 600 ; }
224
222
225
223
.content {
226
224
margin : 0 0 50px ;
@@ -358,58 +356,73 @@ h2 {
358
356
}
359
357
}
360
358
}
359
+ }
360
+
361
+ .posts {
362
+ line-height : 23px ;
361
363
362
- .posts {
363
- line-height : 23px ;
364
-
365
- .post { margin-bottom : 70px ; }
366
-
367
- h1 {
368
- font-size : 36px ; font-weight : 500 ; margin : 0 ;
369
- a {
370
- color : #000 ;
371
- }
372
- }
373
- h2 { font-size : 22px ; font-weight : 600 ; margin : 20px 0 7px ; }
374
- h3 { font-size : 17px ; font-weight : 600 ; margin : 0 ; }
375
- header {
376
- margin : 0 0 15px ;
377
- }
378
- .date {
379
- color : @content-light ;
380
- margin : 0 0 5px ;
364
+ .post { margin : 35px 0 70px ; }
365
+
366
+ h1 {
367
+ font-size : 36px ; font-weight : 500 ; margin : 0 ;
368
+ a {
369
+ color : #000 ;
381
370
}
382
- p {
383
- margin : 0 0 15px ;
371
+ }
372
+ h2 { font-size : 22px ; font-weight : 600 ; margin : 20px 0 7px ; }
373
+ h3 { font-size : 17px ; font-weight : 600 ; margin : 0 ; }
374
+ header {
375
+ margin : 0 0 15px ;
376
+ }
377
+ .date {
378
+ color : @content-light ;
379
+ margin : 0 0 5px ;
380
+ }
381
+ p {
382
+ margin : 0 0 15px ;
383
+ }
384
+ .release {
385
+ h1 {
386
+ display : inline-block ;
387
+ font-size : 17px ;
388
+ margin-left : 5px ;
384
389
}
385
- .release {
386
- h1 {
387
- display : inline-block ;
388
- font-size : 17 px ;
389
- margin-left : 5 px ;
390
- }
391
- .date { display : inline ; }
390
+ .date { display : inline ; }
391
+ }
392
+ .tags {
393
+ font-size : 0.85 em ;
394
+ a {
395
+ display : inline-block ;
396
+ margin-left : 3 px ;
392
397
}
393
- .tags {
394
- font-size : 0.85em ;
395
- a {
396
- display : inline-block ;
397
- margin-left : 3px ;
398
- }
399
- .glyphicon {
400
- color : #bbb ;
401
- font-size : 13px ;
402
- position : relative ;
403
- top : 3px ;
404
- }
398
+ .glyphicon {
399
+ color : #bbb ;
400
+ font-size : 13px ;
401
+ position : relative ;
402
+ top : 3px ;
405
403
}
406
- code { font-size : 14px ; }
404
+ }
405
+ code { font-size : 14px ; }
406
+ }
407
+
408
+ .postlist {
409
+ .Delistify ;
410
+
411
+ li {
412
+ .Delistify ;
413
+ margin-bottom : 10px ;
414
+ display : block ;
415
+ }
416
+ .date {
417
+ color : @content-light ;
418
+ white-space : nowrap ;
407
419
}
408
420
}
409
421
410
422
.push {
411
423
height : 60px ;
412
424
}
425
+
413
426
#footer {
414
427
.MainBG ;
415
428
Original file line number Diff line number Diff line change @@ -19,3 +19,5 @@ paginate: 10
19
19
permalink : /news/:year/:month/:title
20
20
paginate_path : /news/page:num
21
21
tag_dir : /news/tags
22
+ monthly_archive :
23
+ path : /news
Original file line number Diff line number Diff line change
1
+ < li >
2
+ < a href ="{{ post.url | prepend: site.baseurl }} "> {{ post.title }}</ a >
3
+ < span class ="date "> {{ post.date | date: "%B %-d, %Y" }}</ span >
4
+ </ li >
Original file line number Diff line number Diff line change 1
1
< div class ="post{% if post.class %}{{ post.class | prepend: " " }}{% endif %}">
2
2
3
- < header class =" post-header " >
3
+ < header >
4
4
< p class ="date "> {{ post.date | date: "%B %-d, %Y" }}</ p >
5
5
< h1 > < a href ="{{ post.url | prepend: site.baseurl }} "> {{ post.title }}</ a > </ h1 >
6
6
</ header >
7
7
8
- < article class =" post-content " >
8
+ < article >
9
9
{{ content }}
10
10
</ article >
11
11
12
12
< p class ="meta ">
13
13
< span class ="tags ">
14
14
< span class ="glyphicon glyphicon-tag "> </ span >
15
15
{% for tag in post.tags %}
16
- < a href ="{{ site.baseurl }}/blog /tags/{{ tag }} "> {{ tag }}</ a >
16
+ < a href ="{{ site.baseurl }}/news /tags/{{ tag }} "> {{ tag }}</ a >
17
17
{% endfor %}
18
18
</ span >
19
19
</ p >
Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
2
- < html >
3
- {% include head.html %}
4
- < body class ="{{ page.dir | replace: '/', ' p-' | replace_first: ' ', '' }} ">
5
- < div id ="wrapper ">
1
+ ---
2
+ layout: wrapper
6
3
7
- {% include header.html %}
8
-
9
- < div class ="container ">
10
- < div class ="row ">
11
- < div class ="col-sm-4 col-md-3 " id ="sidebar ">
12
-
13
- < div class ="form-group input-group has-feedback ">
14
- < input type ="hidden " class ="form-control select2 ">
15
- < span class ="glyphicon glyphicon-search form-control-feedback "> </ span >
16
- </ div >
17
-
18
- {% include sidebar.html %}
19
- </ div >
20
-
21
- < div class ="col-sm-8 col-md-9 " id ="content ">
4
+ ---
22
5
< header >
23
6
< h2 > {{ page.title }}</ h2 >
24
7
</ header >
25
-
8
+
26
9
< article class ="content ">
27
10
{{ content }}
28
11
</ article >
29
-
30
- </ div > <!-- content -->
31
- </ div > <!-- row -->
32
- </ div > <!-- cont -->
33
- < div class ="push "> </ div >
34
- </ div > <!-- wrapper -->
35
-
36
- {% include footer.html %}
37
-
38
- </ body >
39
- </ html >
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: wrapper
3
+ ---
4
+
5
+ < header >
6
+ < h2 > Posts in < strong > {{ page.date | date: "%B %Y" }}</ strong > </ h2 >
7
+ </ header >
8
+
9
+ < article class ="content ">
10
+ < ul class ="postlist ">
11
+ {% for post in page.posts %}
12
+
13
+ {% include post-item.html %}
14
+
15
+ {% endfor %}
16
+ </ ul >
17
+
18
+ < br />
19
+ < ul class ="pager ">
20
+ {% if page.previousArchive %}
21
+ < li class ="previous "> < a href ="{{ site.baseurl }}/news/{{ page.previousArchive }} "> ← Older</ a > </ li >
22
+ {% endif %}
23
+ {% if page.nextArchive %}
24
+ < li class ="next "> < a href ="{{ site.baseurl }}/news/{{ page.nextArchive }} "> Newer →</ a > </ li >
25
+ {% endif %}
26
+ </ ul >
27
+ </ article >
28
+
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: wrapper
3
+ ---
4
+
5
+ < div class ="posts content ">
6
+ {% assign post = page %}
7
+ {% include post.html %}
8
+
9
+ < br />
10
+ < ul class ="pager ">
11
+ {% if post.previous %}
12
+ < li class ="previous "> < a href ="{{ post.previous.url | prepend: site.baseurl }} "> ← Older</ a > </ li >
13
+ {% endif %}
14
+ {% if post.next %}
15
+ < li class ="next "> < a href ="{{ post.next.url | prepend: site.baseurl }} "> Newer →</ a > </ li >
16
+ {% endif %}
17
+ </ ul >
18
+ </ div > <!-- posts -->
19
+
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: wrapper
3
+ ---
4
+
5
+ < header >
6
+ < h2 > {{ page.title }}</ strong > </ h2 >
7
+ </ header >
8
+
9
+ < article class ="content ">
10
+ < ul class ="postlist ">
11
+ {% for post in page.posts %}
12
+
13
+ {% include post-item.html %}
14
+
15
+ {% endfor %}
16
+ </ ul >
17
+ </ article >
18
+
Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html >
3
+ {% include head.html %}
4
+ < body class ="{{ page.dir | replace: '/', ' p-' | replace_first: ' ', '' }} ">
5
+ < div id ="wrapper ">
6
+
7
+ {% include header.html %}
8
+
9
+ < div class ="container ">
10
+ < div class ="row ">
11
+ < div class ="col-sm-4 col-md-3 " id ="sidebar ">
12
+
13
+ < div class ="form-group input-group has-feedback ">
14
+ < input type ="hidden " class ="form-control select2 ">
15
+ < span class ="glyphicon glyphicon-search form-control-feedback "> </ span >
16
+ </ div >
17
+
18
+ {% include sidebar.html %}
19
+ </ div >
20
+
21
+ < div class ="col-sm-8 col-md-9 " id ="content ">
22
+ {{ content }}
23
+
24
+ </ div > <!-- content -->
25
+ </ div > <!-- row -->
26
+ </ div > <!-- cont -->
27
+ < div class ="push "> </ div >
28
+ </ div > <!-- wrapper -->
29
+
30
+ {% include footer.html %}
31
+
32
+ </ body >
33
+ </ html >
Original file line number Diff line number Diff line change
1
+ ---
2
+ layout: wrapper
3
+ ---
4
+
5
+ < header >
6
+ < h2 > Posts in < strong > {{ page.date | date: "%Y" }}</ strong > </ h2 >
7
+ </ header >
8
+
9
+ < article class ="content ">
10
+ < ul class ="postlist ">
11
+ {% assign month = "" %}
12
+ {% for post in page.posts %}
13
+
14
+ {% assign post_month = post.date || date: "%B" %}
15
+ {% if post_month != month %}
16
+
17
+ {% assign month = post_month %}
18
+ < h2 > {{ post_month }}</ h2 >
19
+
20
+ {% endif %}
21
+
22
+ {% include post-item.html %}
23
+
24
+ {% endfor %}
25
+ </ ul >
26
+
27
+ < br />
28
+ < ul class ="pager ">
29
+ {% if page.previousArchive %}
30
+ < li class ="previous "> < a href ="{{ site.baseurl }}/news/{{ page.previousArchive }} "> ← Older</ a > </ li >
31
+ {% endif %}
32
+ {% if page.nextArchive %}
33
+ < li class ="next "> < a href ="{{ site.baseurl }}/news/{{ page.nextArchive }} "> Newer →</ a > </ li >
34
+ {% endif %}
35
+ </ ul >
36
+ </ article >
You can’t perform that action at this time.
0 commit comments