aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/index.html36
-rw-r--r--docs/style.css11
-rwxr-xr-xgenerate.sh5
3 files changed, 30 insertions, 22 deletions
diff --git a/docs/index.html b/docs/index.html
index b82d8b7..f26aa21 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -25,7 +25,7 @@
25 25
26 26
27 <tr> 27 <tr>
28 <td> 28 <td class=table-post>
29 <div class="date"> 29 <div class="date">
30 31/12/19 30 31/12/19
31 </div> 31 </div>
@@ -33,7 +33,7 @@
33 <span class="post-link">Color Conundrum</span> 33 <span class="post-link">Color Conundrum</span>
34 </a> 34 </a>
35 </td> 35 </td>
36 <td> 36 <td class=table-stats>
37 <span class="stats-number"> 37 <span class="stats-number">
38 1.3 38 1.3
39 </span> 39 </span>
@@ -42,7 +42,7 @@
42 </tr> 42 </tr>
43 43
44 <tr> 44 <tr>
45 <td> 45 <td class=table-post>
46 <div class="date"> 46 <div class="date">
47 23/11/19 47 23/11/19
48 </div> 48 </div>
@@ -50,7 +50,7 @@
50 <span class="post-link">Static Sites With Bash</span> 50 <span class="post-link">Static Sites With Bash</span>
51 </a> 51 </a>
52 </td> 52 </td>
53 <td> 53 <td class=table-stats>
54 <span class="stats-number"> 54 <span class="stats-number">
55 1.5 55 1.5
56 </span> 56 </span>
@@ -59,7 +59,7 @@
59 </tr> 59 </tr>
60 60
61 <tr> 61 <tr>
62 <td> 62 <td class=table-post>
63 <div class="date"> 63 <div class="date">
64 07/11/19 64 07/11/19
65 </div> 65 </div>
@@ -67,7 +67,7 @@
67 <span class="post-link">My Setup</span> 67 <span class="post-link">My Setup</span>
68 </a> 68 </a>
69 </td> 69 </td>
70 <td> 70 <td class=table-stats>
71 <span class="stats-number"> 71 <span class="stats-number">
72 1.0 72 1.0
73 </span> 73 </span>
@@ -76,7 +76,7 @@
76 </tr> 76 </tr>
77 77
78 <tr> 78 <tr>
79 <td> 79 <td class=table-post>
80 <div class="date"> 80 <div class="date">
81 12/10/19 81 12/10/19
82 </div> 82 </div>
@@ -84,7 +84,7 @@
84 <span class="post-link">WPA Woes</span> 84 <span class="post-link">WPA Woes</span>
85 </a> 85 </a>
86 </td> 86 </td>
87 <td> 87 <td class=table-stats>
88 <span class="stats-number"> 88 <span class="stats-number">
89 1.1 89 1.1
90 </span> 90 </span>
@@ -93,7 +93,7 @@
93 </tr> 93 </tr>
94 94
95 <tr> 95 <tr>
96 <td> 96 <td class=table-post>
97 <div class="date"> 97 <div class="date">
98 07/08/19 98 07/08/19
99 </div> 99 </div>
@@ -101,7 +101,7 @@
101 <span class="post-link">Bye Bye BDFs</span> 101 <span class="post-link">Bye Bye BDFs</span>
102 </a> 102 </a>
103 </td> 103 </td>
104 <td> 104 <td class=table-stats>
105 <span class="stats-number"> 105 <span class="stats-number">
106 1.0 106 1.0
107 </span> 107 </span>
@@ -110,7 +110,7 @@
110 </tr> 110 </tr>
111 111
112 <tr> 112 <tr>
113 <td> 113 <td class=table-post>
114 <div class="date"> 114 <div class="date">
115 02/08/19 115 02/08/19
116 </div> 116 </div>
@@ -118,7 +118,7 @@
118 <span class="post-link">Onivim Sucks</span> 118 <span class="post-link">Onivim Sucks</span>
119 </a> 119 </a>
120 </td> 120 </td>
121 <td> 121 <td class=table-stats>
122 <span class="stats-number"> 122 <span class="stats-number">
123 1.3 123 1.3
124 </span> 124 </span>
@@ -127,7 +127,7 @@
127 </tr> 127 </tr>
128 128
129 <tr> 129 <tr>
130 <td> 130 <td class=table-post>
131 <div class="date"> 131 <div class="date">
132 31/07/19 132 31/07/19
133 </div> 133 </div>
@@ -135,7 +135,7 @@
135 <span class="post-link">Bash Harder With Vim</span> 135 <span class="post-link">Bash Harder With Vim</span>
136 </a> 136 </a>
137 </td> 137 </td>
138 <td> 138 <td class=table-stats>
139 <span class="stats-number"> 139 <span class="stats-number">
140 1.6 140 1.6
141 </span> 141 </span>
@@ -144,7 +144,7 @@
144 </tr> 144 </tr>
145 145
146 <tr> 146 <tr>
147 <td> 147 <td class=table-post>
148 <div class="date"> 148 <div class="date">
149 30/07/19 149 30/07/19
150 </div> 150 </div>
@@ -152,7 +152,7 @@
152 <span class="post-link">Hold Position!</span> 152 <span class="post-link">Hold Position!</span>
153 </a> 153 </a>
154 </td> 154 </td>
155 <td> 155 <td class=table-stats>
156 <span class="stats-number"> 156 <span class="stats-number">
157 1.0 157 1.0
158 </span> 158 </span>
@@ -161,7 +161,7 @@
161 </tr> 161 </tr>
162 162
163 <tr> 163 <tr>
164 <td> 164 <td class=table-post>
165 <div class="date"> 165 <div class="date">
166 29/07/19 166 29/07/19
167 </div> 167 </div>
@@ -169,7 +169,7 @@
169 <span class="post-link">Get Better At Yanking And Putting In Vim</span> 169 <span class="post-link">Get Better At Yanking And Putting In Vim</span>
170 </a> 170 </a>
171 </td> 171 </td>
172 <td> 172 <td class=table-stats>
173 <span class="stats-number"> 173 <span class="stats-number">
174 0.9 174 0.9
175 </span> 175 </span>
diff --git a/docs/style.css b/docs/style.css
index c7347a0..fd7e37f 100644
--- a/docs/style.css
+++ b/docs/style.css
@@ -39,8 +39,17 @@ table {
39 border-collapse: collapse; 39 border-collapse: collapse;
40} 40}
41 41
42.table-post {
43 width: 70%;
44}
45
46.table-stats {
47 width: 30%;
48 text-align: right;
49}
50
42td { 51td {
43 padding: 0.7rem 0; 52 padding: 0.5rem 0;
44} 53}
45 54
46/* mobile devices */ 55/* mobile devices */
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%.*}"