~darklands/teal

971252e3d42a9f4f87594239714f8bc90c0f989e — Ben O'Neill 2 months ago fae04de
fix when no sidebar sources
1 files changed, 1 insertions(+), 1 deletions(-)

M teal
M teal => teal +1 -1
@@ 38,7 38,7 @@ teal_sidebar() { \
<div id="side-bar">
<span>
EOF
	for file in $(echo $SIDEBAR_SOURCES | tr ' ' '\n' | sed "s|^|$SRC/|"); do
	[ ! -z "$SIDEBAR_SOURCES" ] && for file in $(echo $SIDEBAR_SOURCES | tr ' ' '\n' | sed "s|^|$SRC/|"); do
		. $(echo $file | sed 's/md$/sh/')
		cat >> $1 << EOF
<a href="$(echo $file | sed "s,$SRC/,,;s/\.md/\.html/")">$NAME</a>