diff options
author | Case Duckworth | 2023-01-02 00:32:54 -0600 |
---|---|---|
committer | Case Duckworth | 2023-01-02 00:32:54 -0600 |
commit | ff5ab35683aa1151db700e40b266d44150195d0c (patch) | |
tree | c812fb321db123365f9c1a5d96d14f23a76ee3d1 | |
parent | Use meta date instead of pubdate (diff) | |
download | vienna-ff5ab35683aa1151db700e40b266d44150195d0c.tar.gz vienna-ff5ab35683aa1151db700e40b266d44150195d0c.zip |
Fix bug with linking
-rwxr-xr-x | vienna | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vienna b/vienna index dc83c14..1a52a7d 100755 --- a/vienna +++ b/vienna | |||
@@ -284,11 +284,12 @@ genpage() { # genpage PAGE... | |||
284 | genlist() { # genlist PERITEM_FUNC TEMPLATE_FILE PAGE... | 284 | genlist() { # genlist PERITEM_FUNC TEMPLATE_FILE PAGE... |
285 | peritem_func="$1" | 285 | peritem_func="$1" |
286 | template_file="$2" | 286 | template_file="$2" |
287 | tmpf="$TMPD/$1" | ||
287 | shift 2 || return 2 | 288 | shift 2 || return 2 |
288 | test -f "$template_file" || return 1 | 289 | test -f "$template_file" || return 1 |
289 | for FILE; do | 290 | for FILE; do |
290 | log genlist "$peritem_func: $template_file: $FILE" | 291 | log genlist "$peritem_func: $template_file: $FILE" |
291 | LINK="$DOMAIN${DOMAIN:+/}${1%.PAGE_RAW_EXT}" | 292 | LINK="$DOMAIN${DOMAIN:+/}${FILE%.$PAGE_RAW_EXT}" |
292 | "$peritem_func" "$FILE" | 293 | "$peritem_func" "$FILE" |
293 | done | expand "$template_file" | 294 | done | expand "$template_file" |
294 | } | 295 | } |