Fix adding nofollows on sponsored single-page colophons

This commit is contained in:
Robin Whittleton 2021-07-25 22:20:46 +02:00 committed by Alex Cabal
parent 6916728393
commit b60d795e82

View file

@ -291,7 +291,7 @@ do
se recompose-epub --xhtml --output "${workDir}"/single-page.xhtml --extra-css-file="${webRoot}/www/css/web.css" "${workDir}"
# Adjust sponsored links in the colophon
sed --in-place 's|<p><a href="http|<p><a rel="nofollow" href="http|g' "${workDir}"/single-page.
sed --in-place 's|<p><a href="http|<p><a rel="nofollow" href="http|g' "${workDir}"/single-page.xhtml
if [ "${verbose}" = "true" ]; then
printf "Done.\n"