make style of sitemap cleaner & more elegant.
prompted by <https://www.pell.portland.or.us/~orc/sitemap.html>
This commit is contained in:
parent
8533f44378
commit
daa2e098ad
|
@ -31,7 +31,7 @@ fn listDir {
|
||||||
siblings=`{get_children $d}
|
siblings=`{get_children $d}
|
||||||
numsiblings = $#siblings
|
numsiblings = $#siblings
|
||||||
if(! ~ $numsiblings 0 && ! ~ $numsiblings 1){
|
if(! ~ $numsiblings 0 && ! ~ $numsiblings 1){
|
||||||
echo '<ul class="sitemap-list">'
|
echo '<ul class="sitemap-list" style="list-style-type: none; list-style-position: outside;" >'
|
||||||
}
|
}
|
||||||
for(i in $siblings) {
|
for(i in $siblings) {
|
||||||
ownchildren= `{get_children $i}
|
ownchildren= `{get_children $i}
|
||||||
|
@ -42,7 +42,7 @@ fn listDir {
|
||||||
|
|
||||||
## Open list?
|
## Open list?
|
||||||
if(! ~ $numsiblings 1){
|
if(! ~ $numsiblings 1){
|
||||||
echo '<li>'
|
echo '<li style="list-style-type: none; list-style-position: outside; ">'
|
||||||
}
|
}
|
||||||
|
|
||||||
if(! ~ $#filename 0 && ! ~ $filename '') {
|
if(! ~ $#filename 0 && ! ~ $filename '') {
|
||||||
|
@ -51,7 +51,7 @@ fn listDir {
|
||||||
}
|
}
|
||||||
if not {
|
if not {
|
||||||
if(! ~ $"dirname $filtereddirs)
|
if(! ~ $"dirname $filtereddirs)
|
||||||
echo '<a href="'$url'">'^$"dirname^'</a>'
|
echo '<a href="'$url'" style="text-decoration: none;" >'^$"dirname^'</a>'
|
||||||
}
|
}
|
||||||
|
|
||||||
## echo $numsiblings' '$numownchildren
|
## echo $numsiblings' '$numownchildren
|
||||||
|
@ -62,7 +62,8 @@ fn listDir {
|
||||||
echo '</li>'
|
echo '</li>'
|
||||||
}
|
}
|
||||||
if not {
|
if not {
|
||||||
echo '/'
|
# echo '/'
|
||||||
|
echo ' '
|
||||||
}
|
}
|
||||||
|
|
||||||
echo $base_url^$url >> $tmpfile
|
echo $base_url^$url >> $tmpfile
|
||||||
|
|
Loading…
Reference in New Issue
Block a user