diff options
author | Akshay <[email protected]> | 2020-01-27 09:36:10 +0000 |
---|---|---|
committer | Akshay <[email protected]> | 2020-01-27 09:36:10 +0000 |
commit | 455357cd9fe344ebb0d0c15c546c414eb2d981c2 (patch) | |
tree | 39d27a42e362be2f467384812f8a3f2ef1eefe92 /generate.sh | |
parent | ab6d72b78ef4ecb77715217b04aed09c0342a684 (diff) |
reduce font requests, table align numbers
Diffstat (limited to 'generate.sh')
-rwxr-xr-x | generate.sh | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/generate.sh b/generate.sh index a326059..6bca952 100755 --- a/generate.sh +++ b/generate.sh | |||
@@ -23,20 +23,22 @@ link_wrapper() { | |||
23 | # 3 - date | 23 | # 3 - date |
24 | # 4 - read time | 24 | # 4 - read time |
25 | echo -ne " | 25 | echo -ne " |
26 | <div class=\"post\"> | 26 | <tr> |
27 | <div class=\"date\"> | 27 | <td> |
28 | $3 | 28 | <div class=\"date\"> |
29 | </div> | 29 | $3 |
30 | <a href=\"/posts/$1\" class=\"post-link\"> | 30 | </div> |
31 | <span class=\"post-link\">$2</span> | 31 | <a href=\"/posts/$1\" class=\"post-link\"> |
32 | </a> | 32 | <span class=\"post-link\">$2</span> |
33 | <div class="stats"> | 33 | </a> |
34 | </td> | ||
35 | <td> | ||
34 | <span class=\"stats-number\"> | 36 | <span class=\"stats-number\"> |
35 | $4 | 37 | $4 |
36 | </span> | 38 | </span> |
37 | <span class="stats-unit">min</span> | 39 | <span class="stats-unit">min</span> |
38 | </div> | 40 | </td> |
39 | </div> | 41 | </tr> |
40 | " | 42 | " |
41 | } | 43 | } |
42 | 44 | ||
@@ -69,6 +71,7 @@ echo " | |||
69 | echo " | 71 | echo " |
70 | <div class=\"posts\"> | 72 | <div class=\"posts\"> |
71 | <div class="separator"></div> | 73 | <div class="separator"></div> |
74 | <table> | ||
72 | " >> docs/index.html | 75 | " >> docs/index.html |
73 | 76 | ||
74 | # posts | 77 | # posts |
@@ -90,7 +93,7 @@ for f in $posts; do | |||
90 | height="$(height $lines)" | 93 | height="$(height $lines)" |
91 | 94 | ||
92 | post_title=$(title_wrapper "$id") | 95 | post_title=$(title_wrapper "$id") |
93 | post_date=$(date -r "$file" "+%d/%m %Y") | 96 | post_date=$(date -r "$file" "+%d/%m/%y") |
94 | 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") |
95 | 98 | ||
96 | echo -ne "$post_link" >> docs/index.html | 99 | echo -ne "$post_link" >> docs/index.html |
@@ -109,6 +112,7 @@ for f in $posts; do | |||
109 | done | 112 | done |
110 | 113 | ||
111 | echo " | 114 | echo " |
115 | </table> | ||
112 | <div class="separator"></div> | 116 | <div class="separator"></div> |
113 | <div class="footer"> | 117 | <div class="footer"> |
114 | <a href="https://github.com/nerdypepper">Github</a> · | 118 | <a href="https://github.com/nerdypepper">Github</a> · |