shithub: img

Download patch

ref: 286920de144e0ead5eee32e4930906545a2e8d73
parent: 11af90dd977234152adb4bc72ae7f438cb80a200
author: Alex Musolino <alex@musolino.id.au>
date: Wed Aug 23 23:31:42 EDT 2023

mkyearidx.rc: smaller montage tiles and place holders for empty months

--- a/mkyearidx.rc
+++ b/mkyearidx.rc
@@ -14,7 +14,7 @@
 	background-color: black;
 	text-align: center;
 }
-a{
+div>p, a{
 	color: white;
 }
 div{
@@ -21,12 +21,20 @@
 	float: left;
 	text-align: center;
 	padding: 0.25cm;
-	width: 400px;
-	height: 400px;
+	width: 200px;
+	height: 200px;
 }
+div.bordered{
+	float: none;
+	display: inline-block;
+	width: 160px;
+	height: 160px;
+	padding: 0px;
+	border: 1px solid white;
+}
 img{
-	width: 320px;
-	height: 320px;
+	width: 160px;
+	height: 160px;
 }
 .disabled{
 	color: grey;
@@ -66,6 +74,8 @@
 for(m in `{seq -w 1 12}){
 	if(test -d $m)
 		echo '<div><a href="'^$m^'/index.html"><img src="'^$m^'/montage.jpg"/><p>'^$months($m)^'</p></a></div>'
+	if not
+		echo '<div><div class="bordered"></div><p>'^$months($m)^'</p></div>'
 }
 
 cat <<EOF