소스 검색

Moved OtaClock to projects

Thomas Buck 8 년 전
부모
커밋
c789ef8b7d
2개의 변경된 파일6개의 추가작업 그리고 3개의 파일을 삭제
  1. 2
    2
      input/blog/2015/2015_08_31_otaclock.md
  2. 4
    1
      input/projects.md

+ 2
- 2
input/blog/2015/2015_08_31_otaclock.md 파일 보기

5
 flattr: true
5
 flattr: true
6
 twitter: xythobuz
6
 twitter: xythobuz
7
 github: https://github.com/xythobuz/OtaClock
7
 github: https://github.com/xythobuz/OtaClock
8
-parent: stuff
9
-position: 88
8
+parent: projects
9
+position: 40
10
 ---
10
 ---
11
 
11
 
12
 ## {{ page["post"] }}
12
 ## {{ page["post"] }}

+ 4
- 1
input/projects.md 파일 보기

9
 mpages = [p for p in pages if p.get("parent", "") == "projects" and p.lang == "en"]
9
 mpages = [p for p in pages if p.get("parent", "") == "projects" and p.lang == "en"]
10
 mpages.sort(key=lambda p: int(p["position"]))
10
 mpages.sort(key=lambda p: int(p["position"]))
11
 for p in mpages:
11
 for p in mpages:
12
-    print "  * **[%s](%s)**" % (p.title, p.url) # markdown list item
12
+    if p.title == "Blog":
13
+        print "  * **[%s](%s)**" % (p.post, p.url) # markdown list item
14
+    else:
15
+        print "  * **[%s](%s)**" % (p.title, p.url) # markdown list item
13
 %-->
16
 %-->
14
 
17
 
15
 ### Abandoned Projects
18
 ### Abandoned Projects

Loading…
취소
저장