summaryrefslogtreecommitdiff
path: root/lists
diff options
context:
space:
mode:
authorViktor Kleen <viktor@kleen.org>2015-01-07 16:42:28 +0000
committerViktor Kleen <viktor@kleen.org>2015-01-07 16:42:28 +0000
commit88ee48c053f996679983f9fdbe806f7a15b41c4d (patch)
treefef8fa03a985f45e91ecac4e6025fc95663d9217 /lists
parentc4eb2e17d6d89def1c012c9719879e2f0cea786f (diff)
downloaddirty-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/0011
-rw-r--r--lists/blog/title1
-rw-r--r--lists/default.md.do5
l---------lists/zz_all/001 (renamed from lists/all/001)0
l---------lists/zz_all/0021
-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"
29done 29done
30 30
31>"$2/preview"
31prev_no=3 32prev_no=3
32if [[ ${#POSTS[@]} -gt $prev_no ]]; then 33if [[ ${#POSTS[@]} -gt $prev_no ]]; then
33 printf "* …\n" > "$2/preview" 34 printf "* …\n" >> "$2/preview"
34else 35else
35 prev_no=${#POSTS[@]} 36 prev_no=${#POSTS[@]}
36fi 37fi
37 38
38for n in $(seq $prev_no -1 1); do 39for 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"
40done 41done
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