#!/usr/bin/zsh hugo find public | \ grep index.html | \ sed 's/^public//' | \ sed 's/index.html$//' | \ awk '{ print $0 "\n Onion-Location: http://tvin5bvfwew3ldttg5t6ynlif4t53y3mbmb7sgbyud7h5q6gblrpsnyd.onion" $0 }' \ > static/_headers # Limited compatibility with Healthy Onions add-on sed -i 's,^ Onion-Location: http://tvin5bvfwew3ldttg5t6ynlif4t53y3mbmb7sgbyud7h5q6gblrpsnyd.onion/$, Onion-Location: http://tvin5bvfwew3ldttg5t6ynlif4t53y3mbmb7sgbyud7h5q6gblrpsnyd.onion,' static/_headers