Output bugfixes
This commit is contained in:
parent
c2d8782354
commit
486af48ae8
@ -3,4 +3,4 @@ divert(-1)
|
|||||||
define(`_ytv',`<iframe width="ifdef(`$3',$1,560)" height="ifdef(`$3',$3,315)" src="$1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')
|
define(`_ytv',`<iframe width="ifdef(`$3',$1,560)" height="ifdef(`$3',$3,315)" src="$1" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')
|
||||||
define(`_wrap',<$1>$2</$1>)
|
define(`_wrap',<$1>$2</$1>)
|
||||||
define(`_empty',`')
|
define(`_empty',`')
|
||||||
divert dnl
|
divert`'dnl
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
dnl template.m4.html v2.0-p1
|
dnl template.m4.html v2.0-p1
|
||||||
dnl Part of the tape-and-string suite used to construct the website
|
dnl Part of the tape-and-string suite used to construct the website
|
||||||
ifdef(`DEBUG',`traceon')dnl
|
ifdef(`DEBUG',`traceon')dnl
|
||||||
ifdef(`_INFILE',`dnl ',`errprint(`Macro _INFILE is not defined')
|
ifdef(`_INFILE',`dnl',`errprint(`Macro _INFILE is not defined')m4exit(1)')
|
||||||
m4exit(1)')dnl
|
ifdef(`TITLE',`dnl',`define(`TITLE',`Atlas48 Archives')dnl)')
|
||||||
include(`m4/lib.m4')dnl
|
include(`m4/lib.m4')dnl
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<style>
|
<style>
|
||||||
@import url("/css/CSSI().css'");
|
@import url("/css/CSSI().css");
|
||||||
</style>
|
</style>
|
||||||
<title>TITLE</title>
|
<title>TITLE</title>
|
||||||
</head>
|
</head>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# render.sh: part of the tape-and-string framework.
|
# render.sh: part of the tape-and-string framework.
|
||||||
# v3.4-p4
|
# v3.4-p5
|
||||||
#B: Load
|
#B: Load
|
||||||
enable -f /usr/lib/bash/csv csv
|
enable -f /usr/lib/bash/csv csv
|
||||||
declare -A title
|
declare -A title
|
||||||
@ -34,11 +34,12 @@ function docs {
|
|||||||
inf "Rendering document files..."
|
inf "Rendering document files..."
|
||||||
for i in ${doc[@]}; do
|
for i in ${doc[@]}; do
|
||||||
o="${i/in/out}"
|
o="${i/in/out}"
|
||||||
|
o="${o%.*}.html"
|
||||||
echo "'$i' -> '$o'"
|
echo "'$i' -> '$o'"
|
||||||
if test -z "${title[$i]}"; then
|
if test -z "${title[$i]}"; then
|
||||||
m4 -D_INFILE="$i" -DCSSI=$(awk -f awk/getsd.awk <<< "$i") m4/main.html.m4 > ${o%.*}.html
|
m4 -D_INFILE="$i" -DCSSI=$(awk -f awk/getsd.awk <<< "$i") m4/main.html.m4 > $o
|
||||||
else
|
else
|
||||||
m4 -D_INFILE="$i" -DCSSI=$(awk -f awk/getsd.awk <<< "$i") -DTITLE="${title[$i]}" m4/main.html.m4 > ${o%.*}.html
|
m4 -D_INFILE="$i" -DCSSI=$(awk -f awk/getsd.awk <<< "$i") -DTITLE="${title[$i]}" m4/main.html.m4 > $o
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user