web output formatted for text browsers too
This commit is contained in:
parent
723deaff4b
commit
dab019ed02
|
@ -52,7 +52,7 @@ if [ "$run_user" -eq 0 ]; then
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="page-wrapper">
|
<div class="page-wrapper">
|
||||||
<div class="inner-wrapper">
|
<pre class="inner-wrapper">
|
||||||
END
|
END
|
||||||
} > "${file_html}"
|
} > "${file_html}"
|
||||||
|
|
||||||
|
@ -120,15 +120,15 @@ ENTRY
|
||||||
printf " <title>%s</title>\\n" "$title"
|
printf " <title>%s</title>\\n" "$title"
|
||||||
printf " <link rel=\"canonical\" href=\"https://cosmic.voyage%s.html\">\\n" "$loghtml"
|
printf " <link rel=\"canonical\" href=\"https://cosmic.voyage%s.html\">\\n" "$loghtml"
|
||||||
|
|
||||||
printf "</head>\\n<body>\\n<div class=\"page-wrapper\"><div class=\"inner-wrapper\">\\n"
|
printf "</head>\\n<body>\\n<div class=\"page-wrapper\"><pre class=\"inner-wrapper\">\\n"
|
||||||
printf "<a href="/"><<< BACK TO RELAY ONE</a>\\n\\n\\n"
|
printf "<a href="/"><<< BACK TO RELAY ONE</a>\\n\\n\\n"
|
||||||
cat "/var/gopher${log}"
|
cat "/var/gopher${log}"
|
||||||
# close up the entry footer
|
# close up the entry footer
|
||||||
printf "</div></div></body></html>"
|
printf "</pre></div></body></html>"
|
||||||
} >> "${entry_html}"
|
} >> "${entry_html}"
|
||||||
|
|
||||||
done < "/var/gopher/listing.gophermap"
|
done < "/var/gopher/listing.gophermap"
|
||||||
printf "</div>" >> "${file_html}"
|
printf "</pre>" >> "${file_html}"
|
||||||
|
|
||||||
# close up the footer
|
# close up the footer
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue