diff options
author | Viktor Kleen <viktor@kleen.org> | 2015-01-07 16:42:28 +0000 |
---|---|---|
committer | Viktor Kleen <viktor@kleen.org> | 2015-01-07 16:42:28 +0000 |
commit | 88ee48c053f996679983f9fdbe806f7a15b41c4d (patch) | |
tree | fef8fa03a985f45e91ecac4e6025fc95663d9217 /lists | |
parent | c4eb2e17d6d89def1c012c9719879e2f0cea786f (diff) | |
download | dirty-haskell.org-88ee48c053f996679983f9fdbe806f7a15b41c4d.tar dirty-haskell.org-88ee48c053f996679983f9fdbe806f7a15b41c4d.tar.gz dirty-haskell.org-88ee48c053f996679983f9fdbe806f7a15b41c4d.tar.bz2 dirty-haskell.org-88ee48c053f996679983f9fdbe806f7a15b41c4d.tar.xz dirty-haskell.org-88ee48c053f996679983f9fdbe806f7a15b41c4d.zip |
Post blog architecture
Diffstat (limited to 'lists')
l--------- | lists/blog/001 | 1 | ||||
-rw-r--r-- | lists/blog/title | 1 | ||||
-rw-r--r-- | lists/default.md.do | 5 | ||||
l--------- | lists/zz_all/001 (renamed from lists/all/001) | 0 | ||||
l--------- | lists/zz_all/002 | 1 | ||||
-rw-r--r-- | lists/zz_all/title (renamed from lists/all/title) | 0 |
6 files changed, 6 insertions, 2 deletions
diff --git a/lists/blog/001 b/lists/blog/001 new file mode 120000 index 0000000..0583396 --- /dev/null +++ b/lists/blog/001 | |||
@@ -0,0 +1 @@ | |||
../../posts/blog-architecture.md \ No newline at end of file | |||
diff --git a/lists/blog/title b/lists/blog/title new file mode 100644 index 0000000..657adaa --- /dev/null +++ b/lists/blog/title | |||
@@ -0,0 +1 @@ | |||
"Blog" Documentation | |||
diff --git a/lists/default.md.do b/lists/default.md.do index daf7453..fffd6e2 100644 --- a/lists/default.md.do +++ b/lists/default.md.do | |||
@@ -28,13 +28,14 @@ for n in $(seq 0 $((${#POSTS[@]}-1))); do | |||
28 | printf "* [%s](%s)\n" "${POST_TITLES[$n]}" "${POSTS[$n]%.md}.html" | 28 | printf "* [%s](%s)\n" "${POST_TITLES[$n]}" "${POSTS[$n]%.md}.html" |
29 | done | 29 | done |
30 | 30 | ||
31 | >"$2/preview" | ||
31 | prev_no=3 | 32 | prev_no=3 |
32 | if [[ ${#POSTS[@]} -gt $prev_no ]]; then | 33 | if [[ ${#POSTS[@]} -gt $prev_no ]]; then |
33 | printf "* …\n" > "$2/preview" | 34 | printf "* …\n" >> "$2/preview" |
34 | else | 35 | else |
35 | prev_no=${#POSTS[@]} | 36 | prev_no=${#POSTS[@]} |
36 | fi | 37 | fi |
37 | 38 | ||
38 | for n in $(seq $prev_no -1 1); do | 39 | for n in $(seq $prev_no -1 1); do |
39 | printf "* [%s](%s)\n" "${POST_TITLES[-$n]}" "${POSTS[-$n]%.md}.html" >"$2/preview" | 40 | printf "* [%s](%s)\n" "${POST_TITLES[-$n]}" "${POSTS[-$n]%.md}.html" >>"$2/preview" |
40 | done | 41 | done |
diff --git a/lists/all/001 b/lists/zz_all/001 index 659bc10..659bc10 120000 --- a/lists/all/001 +++ b/lists/zz_all/001 | |||
diff --git a/lists/zz_all/002 b/lists/zz_all/002 new file mode 120000 index 0000000..0583396 --- /dev/null +++ b/lists/zz_all/002 | |||
@@ -0,0 +1 @@ | |||
../../posts/blog-architecture.md \ No newline at end of file | |||
diff --git a/lists/all/title b/lists/zz_all/title index 73a5267..73a5267 100644 --- a/lists/all/title +++ b/lists/zz_all/title | |||