aboutsummaryrefslogtreecommitdiff
path: root/generate.sh
diff options
context:
space:
mode:
Diffstat (limited to 'generate.sh')
-rwxr-xr-xgenerate.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/generate.sh b/generate.sh
index 6bca952..103f2f9 100755
--- a/generate.sh
+++ b/generate.sh
@@ -24,7 +24,7 @@ link_wrapper() {
24 # 4 - read time 24 # 4 - read time
25 echo -ne " 25 echo -ne "
26 <tr> 26 <tr>
27 <td> 27 <td class="table-post">
28 <div class=\"date\"> 28 <div class=\"date\">
29 $3 29 $3
30 </div> 30 </div>
@@ -32,7 +32,7 @@ link_wrapper() {
32 <span class=\"post-link\">$2</span> 32 <span class=\"post-link\">$2</span>
33 </a> 33 </a>
34 </td> 34 </td>
35 <td> 35 <td class="table-stats">
36 <span class=\"stats-number\"> 36 <span class=\"stats-number\">
37 $4 37 $4
38 </span> 38 </span>
@@ -95,7 +95,6 @@ for f in $posts; do
95 post_title=$(title_wrapper "$id") 95 post_title=$(title_wrapper "$id")
96 post_date=$(date -r "$file" "+%d/%m/%y") 96 post_date=$(date -r "$file" "+%d/%m/%y")
97 post_link=$(link_wrapper "${id%.*}" "$post_title" "$post_date" "$r_time" "$height") 97 post_link=$(link_wrapper "${id%.*}" "$post_title" "$post_date" "$r_time" "$height")
98
99 echo -ne "$post_link" >> docs/index.html 98 echo -ne "$post_link" >> docs/index.html
100 99
101 id="${id%.*}" 100 id="${id%.*}"