Skip to content

Commit 9e811b7

Browse files
committed
重构博客链接,增加分类功能,分为work 和life两个分类
1 parent 213d356 commit 9e811b7

11 files changed

+40
-53
lines changed

_data/blog.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# blog page sections
22
- name: Work
3-
href: /blog/
3+
href: /work/
44
i18n: nav.blog
55

66
# edit following lines to custom your blog page, make sure name is the same as href but capitalized first letter(except HTML)

_data/landing.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
i18n: nav.blog
55
name: Blog
66
tpl: blog.html
7-
page: blog/
7+
page: work/
88
# css: testimonials navy-section
99
css:
1010

_includes/sections/blog.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="row">
33
<div class="col-lg-12 text-center wow zoomIn" id="i18_blog">
44
<div style="height: 80px;"></div>
5-
<a class="btn btn-lg btn-default btn-rounded btn-outline wow bounceIn" href="{{ "/blog/" | prepend: site.baseurl }}"><span data-i18n="blog.my_blog">{{ blog.name }}</span></a>
5+
<a class="btn btn-lg btn-default btn-rounded btn-outline wow bounceIn" href="{{ "/work/" | prepend: site.baseurl }}"><span data-i18n="blog.my_blog">{{ blog.name }}</span></a>
66
<div style="height: 80px;"></div>
77
</div>
88
</div>

_posts/2017-01-31-3-steps-to-setup-website-with-Jalpc.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "3 Steps (2 minutes) to Setup Your Personal Website "
44
date: 2017-01-31
55
desc: "3 Steps (2 minutes) to Setup Your Personal Website "
66
keywords: "Jalpc,Jekyll,reveal.js, gh-pages,website,blog,easy, online presentation"
7-
categories: [work]
7+
categories: [Life]
88
tags: [Jalpc,Jekyll,Reveal.js,presentation]
99
icon: icon-html
1010
---

_posts/2020-09-02-DDD-DomainDriveDesignOrDeadlineDrivenDesign.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "DDD-Domain Driven Design or Deadline Driven Design?"
44
date: 2020-09-02
55
desc: "DDD practise series-1 "
66
keywords: "ddd,eventstorming,innovationlab"
7-
categories: [work]
7+
categories: [Work]
88
tags: [ddd,eventstorming,innovationlab]
99
icon: icon-html
1010
---

_posts/2020-09-12-DDD-SoftwareDesign-A-TwoPersonJob.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "DDD-Software Design, A two person job"
44
date: 2020-09-12
55
desc: "DDD practise series-2 "
66
keywords: "ddd,eventstorming,innovationlab"
7-
categories: [work]
7+
categories: [Work]
88
tags: [ddd,eventstorming,innovationlab]
99
icon: icon-html
1010
---

_posts/2020-09-12-DDD-敢死队驱动开发的故事.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "领域驱动设计与敢死队驱动设计 --Domain Driven Desigin vs D
44
date: 2020-09-12
55
desc: "领域驱动系列 中文版本 "
66
keywords: "ddd,eventstorming,innovationlab"
7-
categories: [work]
7+
categories: [Work]
88
tags: [ddd,eventstorming,innovationlab]
99
icon: icon-html
1010
---
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
layout: post
3+
title: "Monitoring Github Page Traffic via Google Analytics"
4+
date: 2020-09-16
5+
desc: ""
6+
keywords: "gh-page, google-analytics"
7+
categories: [Life]
8+
tags: [gh-page,google-analytics]
9+
icon: icon-html
10+
---
11+
# Problem:
12+
I want to know the traffic about my github page.
13+
14+
# Solution:
15+
It's pretty straight forward since I used jekyll framework.
16+
So all you need to do is to add your google analitics trackid into
17+
_config.yml
18+
```yaml
19+
# analytics
20+
## google analytics
21+
ga: # if you wanna this feature, go to https://www.google.com/analytics/ to get your configuration; if not, comment following line.
22+
id: your_tracking_id
23+
```
24+
25+
# Note:

blog/blog.html

-46
This file was deleted.

blog/life.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
title: Life
44
permalink: /life/
55
---
6+
67
{% include category.html %}

blog/work.html

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
layout: blog
3+
title: Work
4+
permalink: /work/
5+
---
6+
7+
{% include category.html %}

0 commit comments

Comments
 (0)